{{-- Knowing others is intelligence; knowing yourself is true wisdom. --}} @if (auth()->user()->id == 1)
Today's
₹{{\App\Models\invoices::whereDate('created_at', Carbon\Carbon::today())->sum('total')}}
Current Month
₹{{\App\Models\invoices::whereMonth('created_at', Carbon\Carbon::now()->month)->sum('total')}}
Total
₹{{\App\Models\invoices::sum('total')}}
@endif

Invoices

@foreach(array_reverse($invc) as $key => $e) @foreach($e as $a ) @endforeach @endforeach
Table Number Status Time Total

{{$key}}

@foreach($e as $y) @endforeach ₹{{$v}}

@if($a->table_id == 'DELIVERY' || $a->table_id == 'TTAKE AWAY') {{$a->table_id}} @else Table {{$a->table_id}}@endif

{{$a->bill_status}}

{{$a->created_at->format('h:i A')}}

₹{{$a->total}}

@push('src') @endpush