@foreach ($purchaseRequests as $purchaseRequest)
@if ($pageLogo != null) Logo @endif

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 }}
@if($purchaseRequest->items->sum('igst') > 0) @else @endif @foreach ($purchaseRequest->items as $key => $item) @if($purchaseRequest->items->sum('igst') > 0) @else @endif @endforeach @if($purchaseRequest->items->count() < 6) @if($purchaseRequest->items->sum('igst') > 0) @else @endif @endif @if($purchaseRequest->items->sum('igst') > 0) @else @endif
sno Items HSN Qty Rate Unit Disc %IgstCgst SgstAmount
{{ $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) }}{{ number_format( $item->igst,2) }}{{ number_format( $item->cgst,2) }} {{ number_format( $item->sgst,2) }}{{ number_format( $item->total,2) }}
{{ $purchaseRequest->items->sum('quantity') }} {{ number_format($purchaseRequest->items->sum('total'),2) }}
@if ($purchaseRequests->last() != $purchaseRequest)
@endif @endforeach