{{ __('dashboard.financial_operations.title') ?? 'Financial Operations' }}

@foreach ($types as $type) @endforeach @foreach ($methods as $method) @endforeach @foreach ($branches as $branch) @endforeach
{{ __('dashboard.id') }} {{ __('dashboard.order') }} {{ __('dashboard.type') }} {{ __('dashboard.payment_method') ?? 'Payment Method' }} {{ __('dashboard.amount') ?? 'Amount' }} {{ __('dashboard.user') ?? 'User' }} {{ __('dashboard.created_at') }} {{ __('dashboard.notes') ?? 'Notes' }} @forelse ($rows as $row) @php $isRefund = $row->type?->value === 'refund'; $isVoid = $row->type?->value === 'void'; $amountClass = $isRefund || $isVoid ? 'text-rose-600 dark:text-rose-300' : 'text-emerald-600 dark:text-emerald-300'; @endphp #{{ $row->id }} @if($row->order_id) #{{ $row->order_id }} @endif {{ $row->type?->label() }} {{ $row->paymentMethod?->name ?? '—' }} {{ $isRefund || $isVoid ? '-' : '' }}{{ currency((float) $row->amount) }} {{ $row->user?->name ?? '—' }} {{ $row->created_at?->format('M d, Y h:i A') }} {{ $row->notes ?? '—' }} @empty {{ __('dashboard.no') }} {{ __('dashboard.records') ?? 'records' }} {{ __('dashboard.found') }}. @endforelse
{{ $rows->links() }}