@php $setting = App\Setting::first(); $city = \App\City::find($setting->city); @endphp @if (count($courier_orders) <= 4) @php $x = ceil(count($courier_orders) / 2); @endphp @else{ @php $y = ceil(count($courier_orders) / 2); $x = ceil(count($courier_orders) / $y); @endphp } @endif @foreach (array_chunk($courier_orders, $x) as $orders) @foreach ($orders as $data) @php $sale = \App\Sale::with('customer')->find($data['sale_id']); $business_location = App\BusinessLocation::find($sale->location); @endphp @endforeach @endforeach
Order No : {{ $sale->invoice_no }}

From
Name:{{ $business_location->name ?? $setting->name }}
Address: {{ $business_location->landmark ?? $setting->landmark }}, {{ $business_location->city ?? $city->name_en ?? '' }}
Contact No:{{ $business_location->mobile }}

To
@if ($setting->order_sale_note == '1') @endif
Name:{{ $sale->customer->name }}
Address: {{ $sale->customer->landmark }}, @if ($sale->customer->city_id->name_en != 'Other') {{ $sale->customer->city_id->name_en }} @endif
Sale Note: {{ $sale->sale_note }}
Contact No: {{ $sale->customer->mobile }} @if (!empty($sale->customer->mobile_2)) / {{ $sale->customer->mobile_2 }} @endif

@if ($sale->payment_status == 'due') COD : {!! number_format($sale->invoice_nettotal, 2) !!} {{ $sale->currency_type == 'usd' ? '$' : ' LKR' }} @elseif ($sale->payment_status == 'partial') COD BALANCE : {!! number_format($sale->invoice_balance, 2) !!} {{ $sale->currency_type == 'usd' ? '$' : ' LKR' }} @else FREE @endif

barcode
{{ $sale->waybill_prefix . $sale->waybill_no . $sale->waybill_postfix }}