@extends('layouts.app') @section('title', $app_setting['name'] . ' | ' . __('Report')) @section('content')
| {{ __('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->count() }} | {{ $report->transactions->pluck('payment_amount')->toArray() ? currency(array_sum($report->transactions->pluck('payment_amount')->toArray())) : 'N/A' }} |
| {{ __('No information available') }}. | |||||||