Files
fotospiel-app/app/Exports/PurchaseHistoryExporter.php
Codex Agent a949c8d3af - Wired the checkout wizard for Google “comfort login”: added Socialite controller + dependency, new Google env
hooks in config/services.php/.env.example, and updated wizard steps/controllers to store session payloads,
attach packages, and surface localized success/error states.
- Retooled payment handling for both Stripe and PayPal, adding richer status management in CheckoutController/
PayPalController, fallback flows in the wizard’s PaymentStep.tsx, and fresh feature tests for intent
creation, webhooks, and the wizard CTA.
- Introduced a consent-aware Matomo analytics stack: new consent context, cookie-banner UI, useAnalytics/
useCtaExperiment hooks, and MatomoTracker component, then instrumented marketing pages (Home, Packages,
Checkout) with localized copy and experiment tracking.
- Polished package presentation across marketing UIs by centralizing formatting in PresentsPackages, surfacing
localized description tables/placeholders, tuning badges/layouts, and syncing guest/marketing translations.
- Expanded docs & reference material (docs/prp/*, TODOs, public gallery overview) and added a Playwright smoke
test for the hero CTA while reconciling outstanding checklist items.
2025-10-19 11:41:03 +02:00

38 lines
1.4 KiB
PHP

<?php
namespace App\Exports;
use App\Models\PurchaseHistory;
use Filament\Actions\Exports\ExportColumn;
use Filament\Actions\Exports\Exporter;
use Filament\Actions\Exports\Models\Export;
class PurchaseHistoryExporter extends Exporter
{
public static function getModel(): string
{
return PurchaseHistory::class;
}
public static function getColumns(): array
{
return [
ExportColumn::make('tenant.name')->label(__('admin.purchase_history.fields.tenant')),
ExportColumn::make('package_id')->label(__('admin.purchase_history.fields.package')),
ExportColumn::make('credits_added')->label(__('admin.purchase_history.fields.credits')),
ExportColumn::make('price')->label(__('admin.purchase_history.fields.price')),
ExportColumn::make('currency')->label(__('admin.purchase_history.fields.currency')),
ExportColumn::make('platform')->label(__('admin.purchase_history.fields.platform')),
ExportColumn::make('transaction_id')->label(__('admin.purchase_history.fields.transaction_id')),
ExportColumn::make('purchased_at')->label(__('admin.purchase_history.fields.purchased_at')),
];
}
public static function getCompletedNotificationBody(Export $export): string
{
return __('admin.purchase_history.export_success', [
'count' => $export->successful_rows,
]);
}
}