@forelse($data as $invoice) @empty @endforelse
{{ __('#') }} {{ __('invoice number') }} {{ __('payment account') }} {{ __('date') }} {{ __('terms') }} {{ __('status') }} {{ __('amount') }} {{ __('profit') }}
{{ $loop->iteration }} {{ $invoice->invoice_number }} {{ $invoice->account ? $invoice->account->name : '' }} {{ date(AdminBaseDashboard::format_date() , strtotime($invoice->date))}} {{ $invoice->term }} {{ Invoice::status_type($invoice->status)['title'] }} {{ Invoice::format_payment($invoice->amount) }} {{ Invoice::format_payment($invoice->profit) }}
You do not have any sales within this period
Total {{ Invoice::format_payment($data->sum('amount')) }} {{ Invoice::format_payment($data->sum('profit')) }}