{{$sale->reference_code}} |
{{$sale->customer->name}} |
{{$sale->warehouse->name}} |
@if($sale->status == \App\Models\Sale::COMPLETED)
Completed |
@elseif($sale->status == \App\Models\Sale::PENDING)
Pending |
@elseif($sale->status == \App\Models\Sale::ORDERED)
Ordered |
@endif
{{number_format($sale->grand_total,2)}} |
{{number_format((float)$sale->payments->sum('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
|
@endforeach