@extends('layouts.app') @section('content') {{-- Page Header --}} {{-- Transactions Table --}}

{{ __('Transactions') }} {{ __('(Latest)') }}

@forelse($transactions as $transaction) @empty @endforelse
{{ __('ID') }} {{ __('Identifier') }} {{ __('Selling Post') }} {{ __('Boost Plan ') }} {{ __('Payment Gateway') }} {{ __('Status') }} {{ __('Amount') }}
{{ $transaction->id }} {{ $transaction->identifier ?? 'N/A' }} {{ optional($transaction->sellingPost)->name ?? 'Wallet Recherge' }} {{ optional($transaction->boostPlan)->name ?? 'Wallet Recherge' }} {{ optional($transaction->payment_method)->name ?? 'Wallet' }} @php $className = 'bg-success'; if ($transaction->status == 'complete') { $className = 'text-success'; $icon = 'fas fa-check-circle'; } elseif ($transaction->status == 'pending') { $className = 'text-warning'; $icon = 'fas fa-clock'; } else { $className = 'text-danger'; $icon = 'fas fa-window-close'; } @endphp {{ currencyFormat($transaction->amount) }}
{{ __('No transactions found') }}
{{-- Pagination --}}
{{ $transactions->links() }}
@endsection