@forelse ($reports as $report) @empty @endforelse
{{ __('SL') }} {{ __('Date') }} {{ __('Course') }} {{ __('Category') }} {{ __('Price') }} {{ __('Total Enroll') }} {{ __('Total Transactions') }} {{ __('Grand Total') }}
{{ $loop->iteration }} {{ $report?->created_at }} {{ $report?->title }} {{ $report?->category?->title }} {{ $report?->price }} {{ $report->enrollments->count() }} {{ $report->transactions->count() }} {{ $report->transactions->pluck('payment_amount')->toArray() ? array_sum($report->transactions->pluck('payment_amount')->toArray()) : 'N/A' }}
{{ __('No data found') }}