{{ __('messages.pdf.reference') }} | {{ __('messages.pdf.client') }} | {{ __('messages.pdf.warehouse') }} | {{ __('messages.pdf.total') }} | {{ __('messages.pdf.paid') }} | {{ __('messages.pdf.due') }} | {{ __('messages.pdf.payment_status') }} | ||
---|---|---|---|---|---|---|---|---|
{{$sale->reference_code}} | {{$sale->customer->name}} | {{$sale->warehouse->name}} | {{number_format($sale->grand_total,2)}} | {{number_format((float)$sale->payments->sum('amount'), 2)}} | {{number_format((float)$sale->due_amount, 2)}} | @if($sale->status == \App\Models\Sale::PAID)paid | @elseif($sale->status == \App\Models\Sale::UNPAID)unpaid | @elseif($sale->status == \App\Models\Sale::PARTIAL_PAID)partial | @endif