...
Invoice {{$key}}


{{$type}} @if($type == \App\Enums\Invoice\InvoiceTypeEnum::INVOICE) @php $total = 0; $shipping = 0; @endphp @foreach($data as $item) @php $total += ($item['customer_paid'] - $item['fees']); $shipping += $item['fees']; @endphp @endforeach @else @endif
Tenant Type Courier name Date Invoice ID Operation ID Courier ID Customer Name City Mobile Collected Amount Shipping Fees Sub Total Shipping Status Admin Comments
{{$item['tenant']}} {{$item['operation_type']}} {{$item['courier_name']}} {{$item['invoice_date']}} {{$item['invoice_key']}} {{$item['operation_id']}} - {{$item['ft_operation']}} {{$item['courier_id']}} {{$item['customer_name']}} {{$item['state']}} {{$item['mobile']}} {{$item['customer_paid']}} - {{$item['fees']}} {{$item['customer_paid'] - $item['fees']}} {{$item['order_status']}} {{$item['comments']}}
Total {{$total}}
Tenant Type Description Date Invoice ID Grant total
{{$data['tenant']}} Credit Note {{$data['description']}} {{$data['invoice_date']}} {{$data['key']}} {{$data['grand_total']}}