{{-- Knowing others is intelligence; knowing yourself is true wisdom. --}}
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')}}
@if(Carbon\Carbon::parse($filterr)->format('d-m-Y') != Carbon\Carbon::today()->format('d-m-Y'))

Sale on {{Carbon\Carbon::parse($filterr)->format('d-m-Y')}}

₹{{\App\Models\invoices::whereDate('created_at', Carbon\Carbon::parse($this->filterr))->orderBy('id', 'DESC')->sum('total')}}
@endif

Invoices

@foreach($invc as $a) @endforeach
Table Number Status Time Total

@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