Logo @if(!$is_pdf) Back @endif
{{ $company->company_name ?? '' }}
{{ $company->address ?? '' }}, {{ $company->city ?? '' }}, {{ $company->state ?? '' }}
Phone: {{ $company->phone1 ?? '' }}
GST NO: {{ $company->gst_no ?? '' }}

Today's Cutting

@if(!$is_pdf)
Reset
@endif
@if($order_receipts->count()) @php $grandTotal = 0; @endphp @foreach($order_receipts as $order) @php $rowspan = count($order->order_items); $first = true; $orderTotal = 0; @endphp @foreach($order->order_items as $item) @php $orderTotal += $item->used_quantity * $item->price; @endphp @if($first) @php $first = false; @endphp @endif @endforeach {{-- ORDER TOTAL --}} @php $discount = $order->customer_discount_amount ?? 0; $final = $orderTotal - $discount; $grandTotal += $final; @endphp @endforeach {{-- GRAND TOTAL --}} @else @endif
Order No Order Date Cutting Date Customer Roll Product Variant Rate Qty Used Balance
{{ $order->id }} {{ date('d-m-Y', strtotime($order->order_date)) }} {{ date('d-m-Y', strtotime($order->cutting_date)) }} {{ $order->customer_name }}{{ $item->roll_id }} {{ $item->product_name }} {{ $item->varient_code }} - {{ $item->varient_name }} {{ number_format($item->price,2) }} {{ number_format($item->roll_quantity,2) }} {{ number_format($item->used_quantity,2) }} {{ number_format($item->available_quantity,2) }}
Total {{ number_format($orderTotal,2) }} @if($discount > 0)
Discount: {{ number_format($discount,2) }}
{{ number_format($final,2) }} @endif
Grand Total {{ number_format($grandTotal,2) }}
No Data Found

@if(!$is_pdf) Download PDF @endif