@foreach($order as $key=>$row)
@if($row->by=='R')
RequestVat->status==1) style="background-color: #00bcd4;" @elseif($row->status=='Delivered') style="background-color: #e26c36;" @elseif($row->status=='Shipped') style="background-color: #718bff;" @endif>
| {{$key+1}} |
{{$row->reference }} |
@if(empty($row->created_at)) @else {{date('d M, Y h:i:s', strtotime($row->created_at))}} @endif |
{{@$row->agentData->name}} |
{{@$row->userData->areaData->name}} |
{{@$row->userData->id}} |
{{@$row->userData->name}} |
£ {{$row->totalAmt-$row->taxAmt}} |
£ {{$row->totalAmt}} |
@if($row->discount) £ {{$row->discount}} @else N/A @endif |
@if($row->paymentStatus=='cod') @if(TotalPartPayment($row->id,$row->totalAmt)==0) N/A @else £ {{TotalPartPayment($row->id,$row->totalAmt)}} @endif @else Paid @endif |
@if($row->paymentStatus=='cod') £ {{(($row->totalAmt)-(TotalPartPayment($row->id,$row->totalAmt)+$row->discount))}} @else DONE @endif |
{{$row->paymentStatus}} |
{{$row->status}} |
{{$row->by}} |
@if($row->paymentStatus=='cod')
@endif
|
@if(@$RequestVatInvoice->status==1)
@endif
|
@if(empty(@$row->RequestVat->id))
@elseif(@$row->RequestVat->status==0)
@elseif(@$row->RequestVat->status==1)
@endif
|
@else
RequestVat->status==1) style="background-color: #00bcd4;" @elseif($row->status=='Delivered') style="background-color: #e26c36;" @elseif($row->status=='Shipped') style="background-color: #718bff;" @endif>
| {{$key+1}} |
{{$row->reference }} |
@if(empty($row->created_at)) @else {{date('d M, Y h:i:s', strtotime($row->created_at))}} @endif |
{{@$row->agentData->name}} |
{{@$row->userData->areaData->name}} |
{{@$row->userData->id}} |
{{@$row->userData->name}} |
£ {{$row->totalAmt-$row->taxAmt}} |
£ {{$row->totalAmt}} |
@if($row->discount) £ {{$row->discount}} @else N/A @endif |
@if($row->paymentStatus=='cod') @if(TotalPartPayment($row->id,$row->totalAmt)==0) N/A @else £ {{TotalPartPayment($row->id,$row->totalAmt)}} @endif @else Paid @endif |
@if($row->paymentStatus=='cod') £ {{(($row->totalAmt)-(TotalPartPayment($row->id,$row->totalAmt)+$row->discount))}} @else DONE @endif |
{{$row->paymentStatus}} |
{{$row->status}} |
{{$row->by}} |
@if($row->paymentStatus=='cod')
@endif
|
@if(@$RequestVatInvoice->status==1)
@endif
|
@if(empty(@$row->RequestVat->id))
@elseif(@$row->RequestVat->status==0)
@elseif(@$row->RequestVat->status==1)
@endif
|
@endif
@endforeach