Loading Slip

{{ $company->name }}

{{ $company->address }}

PH:{{ $company->phone }}

GST:{{ $company->gst }}       State:{{ $company->state }}
Order No {{ $order->order_code }}
Order Date {{ \Carbon\Carbon::parse($order->order_date)->format('d M Y') }}
Invoice Date {{ $order->accounting_voucher_id != null ? \Carbon\Carbon::parse($order->accountingVoucher->voucher_date)->format('d M Y') : '' }}
Invoice No {{ $order->accounting_voucher_id != null ? $order->accountingVoucher->voucher_number : '' }}
{{-- --}}
Customer Name : {{ $order->debitLedger->name }}
Mobile No :{{ $order->debitLedger->mobile_no }} @if( $order->shipping_address != null)
Shipping Address : {{ $order->shipping_address }} @endif
Address : {{ $order->debitLedger->address }}
GSTIN:{{ $order->debitLedger->gst }}
@foreach ($order->items as $key => $item) @endforeach
SL. No. Item Name Quantity
{{ $key + 1 }} {{ $item->stockItem->name }}{{ $item->variant_id != null ? ' ('.$item->variant->name.')' : '' }} {{ $item->quantity }}
Total Quantity {{ $order->items->sum('quantity') }}

Loading Summary

@foreach ($attributes as $attribute) @endforeach @foreach($variantAttributes as $variantAttribute) @php $cloned = clone $variants; $filtered = $cloned->whereHas('attributes', function ($query) use ($variantAttribute) { $query->where('attribute_value_id', $variantAttribute); })->pluck('id')->toArray(); $items = App\Models\OrderItem::whereIn('variant_id', $filtered)->where('order_id', $order->id)->get(); if($items->isEmpty()){ dd($filtered); } @endphp @foreach($items as $item) @foreach($attributes as $attribute) @php // $variant_id = App\Models\OrderItem::find($item['order_item_id'])->variant_id; $variant = App\Models\Variant::find($item->variant_id); $variantvalues = App\Models\VariantAttribute::where('variant_id', $variant->id)->where('attribute_id', $attribute->id)->first(); @endphp @if($variantvalues) @else @endif @endforeach @endforeach @endforeach
{{ $attribute->name }}Quantity
{{ $variantvalues->attributeValue->value }}{{ $item['quantity'] }}
Total {{ $items->sum('quantity') }}
Driver Name: {{ $order->driver_name }}
Driver Mobile: {{ $order->driver_mobile }}
Vehicle No: {{ $order->vehicle_no }}

Authorized Signature