@extends($layout_path) @section('title', $app_setting['name'] . ' | ' . __('Report')) @section('header-title')
| {{ __('SL') }} | {{ __('Date') }} | {{ __('Course') }} | {{ __('Category') }} | {{ __('Price') }} | {{ __('Total Enroll') }} | {{ __('Total Transactions') }} | {{ __('Grand Total') }} |
|---|---|---|---|---|---|---|---|
| {{ $reports->firstItem() + $loop->index }} | {{ Carbon\Carbon::parse($report->created_at)->format('d,M Y') }} | {{ $report?->title }} | {{ $report?->category?->title }} | {{ $report?->price && $report?->regular_price ? currency($report?->price) : currency($report?->regular_price) }} | {{ $report->enrollments->count() }} | {{ $report->transactions->where('is_paid', true)->count() }} | {{ $report->transactions->where('is_paid', true)->pluck('payment_amount')->sum() ? currency($report->transactions->where('is_paid', true)->sum('payment_amount')) : 'N/A' }} |
| {{ __('No information available') }}. | |||||||