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(isset($order_receipts) && count($order_receipts) > 0) @foreach($order_receipts as $order) @if($order->customer_name != '') @php $firstRow = true; $rowspan = count($order->order_items); @endphp @foreach($order->order_items as $item) {{-- Show Order ID and Customer Name only once using rowspan --}} @if($firstRow) @php $firstRow = false; @endphp @endif @endforeach {{-- Totals --}} @php $total = collect($order->order_items)->sum(fn($item) => $item->used_quantity * $item->price); $discount = $order->customer_discount_amount ?? 0; $finalTotal = $total - $discount; @endphp @endif @endforeach {{-- Grand Total --}} @php $grandTotal = collect($order_receipts)->sum(function ($order) { $orderTotal = collect($order->order_items)->sum(function ($item) { return $item->used_quantity * $item->price; }); $discount = $order->customer_discount_amount ?? 0; return $orderTotal - $discount; }); @endphp @else @endif
OrdNo Order Date Customer Name Roll No Product-Varient Rate From Quantity Used Balance Status
{{ $order->id }} {{ date('d-m-Y',strtotime($order->order_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) }} {{ $item->installer_status }}
Total @if($discount > 0) {{ number_format($total, 2) }}
Discount: − {{ number_format($discount, 2) }}
{{ number_format($finalTotal, 2) }} @else {{ number_format($total, 2) }} @endif
Grand Total ₹{{ number_format($grandTotal, 2) }}
No data available to display.

@if(!$is_pdf) Download @endif