@foreach ($purchaseRequests as $purchaseRequest)
| @if ($pageLogo != null)
|
PURCHASE REQUEST |
|---|
{{ $company->name }}{{ $company->address }} PH:{{ $company->phone }} GST:{{ $company->gst }} State:{{ $company->state }} |
Invoice No | {{ $purchaseRequest->accounting_voucher_id != null ? $purchaseRequest->accountingVoucher->voucher_number : '' }} |
| Invoice Date | {{ $purchaseRequest->accounting_voucher_id != null ? \Carbon\Carbon::parse($purchaseRequest->accountingVoucher->voucher_date)->format('d M Y') : '' }} | |
| _____ | ||
| ______ |
| Details of Supplier | |
| Name: | {{ $purchaseRequest->creditLedger->name }} |
| Address: | {{ $purchaseRequest->creditLedger->address }} |
| State: | {{ $purchaseRequest->creditLedger->state }} |
| Mobile: | {{ $purchaseRequest->creditLedger->mobile_no }} |
| GST No: | {{ $purchaseRequest->creditLedger->gst }} |
| sno | Items | HSN | Qty | Rate | Unit | Disc % | @if($purchaseRequest->items->sum('igst') > 0)Igst | @elseCgst | Sgst | @endifAmount |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $item->stockItem->name }} @if($item->remarks != null) ({{ $item->remarks }}) @endif | {{$item->stockItem->hsn_code }} | {{ $item->quantity }} | {{ number_format($item->price, 2) }} | {{ $item->unit->symbol }} | {{ number_format( $item->disc_percentage,2) }} | @if($purchaseRequest->items->sum('igst') > 0){{ number_format( $item->igst,2) }} | @else{{ number_format( $item->cgst,2) }} | {{ number_format( $item->sgst,2) }} | @endif{{ number_format( $item->total,2) }} |
| @if($purchaseRequest->items->sum('igst') > 0) | @else | @endif | ||||||||
| {{ $purchaseRequest->items->sum('quantity') }} | @if($purchaseRequest->items->sum('igst') > 0) | @else | @endif | {{ number_format($purchaseRequest->items->sum('total'),2) }} | ||||||