Sales Invoice List {{ ucfirst($business_name) }}
Invoice list From {{ !empty($from) ? date('d F Y', strtotime($from)) : '' }} till {{ !empty($to) ? date('d F Y', strtotime($to)) : '' }}


@if($sales_type == "bo_sales") @endif @php($i=1) @php($total_amount_sum = 0) @php($total_discount_amount = 0) @php($tax_amount_sum = 0) @php($total_paid = 0) @php($total_balance = 0) @foreach($salesinvoice as $key=>$salesdata) @if($sales_type == "bo_sales") @php($balance =$salesdata->total_amount- $salesdata->paid) @php($total_paid += $salesdata->paid ) @php($total_balance += $balance) @endif @php($tax_amount_sum += $salesdata->tax_amount) @php($total_amount_sum +=$salesdata->total_amount) @php($total_discount_amount +=$salesdata->discount_amount) @if($sales_type == "bo_sales") @else @endif @if($sales_type == "bo_sales") @endif @php($i++) @endforeach @if($sales_type == "bo_sales") @endif @if($sales_type == "bo_sales") @endif
Serial Sales Invoice Contact Name Invoice Date Amount VAT DiscountPaid Balance
{{ $i }} {{ !empty($salesdata->invoice_no) ? $salesdata->invoice_no : '' }}{{ !empty($salesdata->display_name) ? ucfirst($salesdata->display_name) : '' }}{{ !empty($salesdata->fname) ? ucfirst($salesdata->fname) : 'General Customer' }} {{ !empty($salesdata->invoice_date) ? date("d-m-Y",strtotime($salesdata->invoice_date)) : '' }} {{ !empty($salesdata->total_amount) ? number_format($salesdata->total_amount,$decimal_point) : number_format(0,$decimal_point)}} {{ !empty($salesdata->tax_amount) ? number_format($salesdata->tax_amount,$decimal_point): number_format(0,$decimal_point) }} {{ !empty($salesdata->discount_amount) ? number_format($salesdata->discount_amount,$decimal_point) : number_format(0,$decimal_point) }} {{ !empty($salesdata->paid) ? number_format($salesdata->paid,$decimal_point) : number_format(0,$decimal_point) }} {{ number_format($balance,$decimal_point) }}
                
Total       {{ number_format($total_amount_sum, $decimal_point) }} {{ number_format($tax_amount_sum, $decimal_point) }} {{ number_format($total_discount_amount, $decimal_point) }}{{ number_format($total_paid, $decimal_point) }} {{ number_format($total_balance, $decimal_point) }}