@foreach ($accountingVouchers as $accountingVoucher) @php $chunks = $accountingVoucher->items->chunk(10); $pages = count($chunks); @endphp @foreach ($chunks as $chunkIndex => $chunk)
| Page: {{ $chunkIndex + 1 }} of {{ $pages }} | Estimate | ||
{{ $company->name }}{{ $company->address }} PH: {{ $company->phone }}, Email: {{ $company->email }} GST: {{ $company->gst }} State: {{ $company->state }} |
|||
|
CUSTOMER: {{ $accountingVoucher->customer ? $accountingVoucher->customer->name : $accountingVoucher->debitLedger->name }} ADDRESS: {{ $accountingVoucher->customer ? $accountingVoucher->customer->address : $accountingVoucher->debitLedger->address }} PHONE: {{ $accountingVoucher->customer ? $accountingVoucher->customer->mobile : $accountingVoucher->debitLedger->mobile_no }} |
@if(Auth::user()->company_profile->show_seller == 1)
GSTIN No: {{ $accountingVoucher->customer ? '' : $accountingVoucher->debitLedger->gst }} State: {{ $accountingVoucher->customer ? $accountingVoucher->customer->state : $accountingVoucher->debitLedger->state }} PO No: {{ $accountingVoucher->customer ? '' : $accountingVoucher->debitLedger->pin_code }} |
@else
@endif |
Invoice No: {{ $accountingVoucher->voucher_number }} Invoice Date: {{ date('d-m-Y', strtotime($accountingVoucher->voucher_date))}} Sales Man: {{ $accountingVoucher->user ? $accountingVoucher->user->name : '' }} |
| s no | Product | MRP | Qty | Unit | Price | @if($accountingVoucher->items->sum('disc_amount') > 0)Disc | @endifTotal | ||
|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $item->stockItem->name }} | {{ $item->stockItem->getMrp($accountingVoucher->voucher_date) }} | {{ $item->quantity }} | {{ $item->unit->symbol }} | {{ number_format($item->price_inc_tax, 2) }} | @if($accountingVoucher->items->sum('disc_amount') > 0){{ number_format($item->disc_amount, 2) }} | @endif{{ number_format($item->total, 2) }} | ||
| {{ $accountingVoucher->items->sum('quantity') }} | @if($accountingVoucher->items->sum('disc_amount') > 0) | @endif | {{ number_format($accountingVoucher->items->sum('total'), 2) }} | ||||||
| {{ $words }} | {{-- @if($company->bankLedger != null)
|
@endif --}}
@if($accountingVoucher->discount > 0) | Bill Discount : {{ $accountingVoucher->discount }} | @endif||
| Freight : {{ $accountingVoucher->freight }} | |||||
| Round Off : {{ $accountingVoucher->round_off }} | |||||
| Bill Total : {{ number_format($accountingVoucher->amount) }} | |||||
| Previous Balance : {{ number_format($accountingVoucher->previousBalance) }} {{ $accountingVoucher->previousBalanceDrCr }} | |||||
| Grand Total : {{ number_format($accountingVoucher->totalOutstanding) }} {{ $accountingVoucher->totalOutstandingDrCr }} |
| Remarks : {{ $accountingVoucher->remarks }} | ||
| Received In Good Condition | Party Signature | @if(Auth::user()->company_profile->show_seller == 1)FOR : {{ $company->name }} | @endif