{{-- @php $company = \App\Models\Company::first(); @endphp --}} {{-- --}} {{--
--}}

MEDITOX PHARMACY AND STORES LTD

{{--

{{\Illuminate\Support\Str::upper($company->company_address)}}

--}} {{--

{{\Illuminate\Support\Str::upper($branch->branch_name)}}

--}}

{{$contact->contact_name}}

{{\Illuminate\Support\Carbon::make($order->created_at)->format('D, j M Y, h:i A')}}

@if(isset($payments)) @php $user = \App\Models\User::find($payments->first()->user_id); @endphp @else @endif
INFO
INVOICE NO {{$order->order_number}} TOTAL ITEM {{$orderItemsCount}}
CLEARED BY {{$user->name}} ISSUED BY {{\Illuminate\Support\Str::upper($staff->name)}}
CART
@php $itemOrders = \App\Models\ItemOrder::where("order_id", $order->id)->get(); @endphp @foreach($itemOrders as $itemOrder) @php $item = \App\Models\Item::find($itemOrder->itemPurchase->item_id); @endphp @endforeach
Item Description
{{$itemOrder->order_quantity}} {{\Illuminate\Support\Str::upper($item->item_name)}} ₦{{number_format($itemOrder->order_price, 2)}}
SUMMARY
@foreach($payments as $payment) @php $paymentMethod = \App\Models\PaymentMethod::find($payment->payment_method_id); @endphp @endforeach
Item Description
SUB TOTAL ₦{{number_format($order->itemOrders->sum("order_price"), 2)}}
{{\Illuminate\Support\Str::upper($paymentMethod->payment_method_name)}} ₦{{number_format($payment->payment_amount, 2)}}

------------------------------

PLEASE WATCH OUT FOR GREAT DEALS!