@extends('layouts.app-admin') @section('content')

Manage Orders

Manage Orders
Sent Vat Invoice Customer
@foreach($order as $key=>$row) @if($row->by=='R') sentVat=='1') style="background-color:#6ec00f;" @elseif($row->status=='Delivered') style="background-color: #e26c36;" @elseif($row->status=='Shipped') style="background-color: #718bff;" @endif> @else sentVat=='1') style="background-color:#6ec00f;" @elseif($row->status=='Delivered') style="background-color: #e26c36;" @elseif($row->status=='Shipped') style="background-color: #718bff;" @endif> @endif @endforeach
# Order Id Date Agent Area Shop Id Shop Amount Vat Amount Discount Paid Due Amount Type Status Transaction Id By
{{$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->transaction_id) #{{$row->transaction_id}} @endif @if($row->paymentStatus=='cod') @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}} @if($row->transaction_id) #{{$row->transaction_id}} @endif {{$row->by}} @if($row->paymentStatus=='cod') @endif
@endsection @section('script') @endsection