@extends('shop.layouts.main') @extends('shop.layouts.top_bar') @section('page_title', 'Invoices') @section('header_styles') @endsection @section('content')
{{ number_format($totalSalesThisMonth, 2) }} AED
Total Sales this Month
{{ number_format($totalSalesTillNow, 2) }} AED
Total Sales till Now

Invoices

@forelse($invoices as $invoice) @empty @endforelse
ID Total Bill Discount Final Bill Customer Name Customer Phone Created At Action
{{ $invoice->id }} {{ $invoice->total_bill }} {{ $invoice->discount }} {{ $invoice->final_bill }} {{ $invoice->customer_name ? $invoice->customer_name : 'N/A' }} {{ $invoice->customer_phone ? $invoice->customer_phone : 'N/A' }} @if($invoice->created_at) {{ $invoice->created_at->setTimezone('Asia/Dubai')->format('F j, Y - g:i A') }} @else N/A @endif
No invoices available
@endsection @section('footer_scripts') @endsection