New Estimate
{{-- dd($invoice) --}} @php $invoice_items = array_chunk( $invoice->sale_client_details, 15 ); $count = count($invoice->sale_client_details); $c=0; @endphp
@foreach($invoice_items as $orders)
{{ $invoice->branch->name }}
{{ $invoice->branch->address }}, {{ $invoice->branch->city }}, {{ $invoice->branch->state }}-{{ $invoice->branch->pincode }}
PH:{{ $invoice->branch->phone }}, E-mail : {{ $invoice->branch->email }}
Estimate Bill
Bill No: {{ $invoice->invoice_no }}
Customer: {{ $invoice->customer->name }}
@php $itemTotal = 0; @endphp @foreach($orders as $orderItems) @php $c++; $itemRate = ($orderItems->item_total / $orderItems->quantity); $itemTotal = $itemTotal + $itemRate; @endphp @endforeach
No Description Qty Rate Total
{{ $c }} {{ $orderItems->product->name }} {{ $orderItems->quantity }} {{ ucfirst(strtolower($orderItems->product->unit->unit)) }} {{ round($itemRate, 2) }} {{ round($orderItems->item_total, 2) }}
Total
{{ collect($orders)->sum('quantity') }}
{{ round($itemTotal, 2) }}
{{ number_format(round(collect($orders)->sum('item_total')), 2, '.', '') }}
Rupees:
Net Amount
{{ number_format(round($invoice->grand_total), 2, '.', ''); }}
@endforeach