tag = 1 row,
= 1 extra row
$pCount = substr_count(strtolower($accountInfo), '
');
$brCount = substr_count(strtolower($accountInfo), '
');
$extraEndRows = max(1, $pCount + $brCount);
}
$chunks = \App\Helpers\DocumentPagination_Helper::paginateAdvanced($ET_ITEM, $extraEndRows);
} else {
// Fallback to legacy view logic if Bank Info is completely empty
$chunks = \App\Helpers\DocumentPagination_Helper::paginate($ET_ITEM, 'proforma_invoice');
}
@endphp
@foreach ($chunks as $pageIndex => $chunkData)
@php
$chunk = is_array($chunkData) && isset($chunkData['items']) ? $chunkData['items'] : (is_array($chunkData) ? $chunkData : []);
$isLastItems = is_array($chunkData) && isset($chunkData['is_last_items']) ? $chunkData['is_last_items'] : $loop->last;
$hasBankInfo = is_array($chunkData) && isset($chunkData['has_bank_info']) ? $chunkData['has_bank_info'] : $loop->last;
$hasFooter = is_array($chunkData) && isset($chunkData['has_footer']) ? $chunkData['has_footer'] : $loop->last;
@endphp
@if ($pageIndex > 0)
|
PROFORMA INVOICE |
|
Consignee
{{ $ET_HEADER->first()->CONSIGNEENAME1 ?? '' }}
@if ($ET_HEADER->first()->CONSIGNEENAME2 ?? null) {{ $ET_HEADER->first()->CONSIGNEENAME2 }} @endif @if ($ET_HEADER->first()->CONSIGNEESTREET ?? null) {{ $ET_HEADER->first()->CONSIGNEESTREET ?? '' }} @endif @if ($ET_HEADER->first()->CONSIGNEESTRSUPPL1 ?? null) {{ $ET_HEADER->first()->CONSIGNEESTRSUPPL1 ?? '' }} @endif @if ( $ET_HEADER->first()->CONSIGNEESTRSUPPL2 ?? null) {{ $ET_HEADER->first()->CONSIGNEESTRSUPPL2 ?? '' }} @endif @if ($ET_HEADER->first()->CONSIGNEESTRSUPPL3 ?? null) {{ $ET_HEADER->first()->CONSIGNEESTRSUPPL3 ?? '' }} @endif @if ($ET_HEADER->first()->CONSIGNEECITY ?? null) {{ $ET_HEADER->first()->CONSIGNEECITY ?? '' }} @endif {{ $ET_HEADER->first()->CONSIGNEECOUNTRY ?? '' }} |
|
||||||||||||||||||||||||
|
Buyer / Notify Party ( if other than consignee )
{{ $ET_HEADER->first()->BUYERNAME1 ?? '' }}
@if ($ET_HEADER->first()->BUYERNAME2 ?? null) {{ $ET_HEADER->first()->BUYERNAME2 }} @endif @if ($ET_HEADER->first()->BUYERSTREET ?? null) {{ $ET_HEADER->first()->BUYERSTREET ?? '' }} @endif @if ($ET_HEADER->first()->BUYERSTRSUPPL1 ?? null) {{ $ET_HEADER->first()->BUYERSTRSUPPL1 ?? '' }} @endif @if ( $ET_HEADER->first()->BUYERSTRSUPPL2 ?? null) {{ $ET_HEADER->first()->BUYERSTRSUPPL2 ?? '' }} @endif @if ($ET_HEADER->first()->BUYERSTRSUPPL3 ?? null) {{ $ET_HEADER->first()->BUYERSTRSUPPL3 ?? '' }} @endif @if ($ET_HEADER->first()->BUYERCITY ?? null) {{ $ET_HEADER->first()->BUYERCITY ?? '' }} @endif {{ $ET_HEADER->first()->BUYERCOUNTRY ?? '' }} |
|
||||||||||||||||||||||||
| PRODUCT DESCRIPTION | Price /
Unit {{ $ET_HEADER->first()->CURRENCY ?? 'JPY' }} / {{ ($ET_ITEM->first()->PRICECONDITIONBASEUOM ?? 'KG') === 'M' ? 'METER' : ($ET_ITEM->first()->PRICECONDITIONBASEUOM ?? 'KG') }} |
Amount ( {{ $ET_HEADER->first()->CURRENCY ?? 'JPY' }} ) |
|||||||
|---|---|---|---|---|---|---|---|---|---|
| Gsm | Color | Width (m) |
Length (m/Roll) |
Roll | Weight (kg) |
Length (mtr) |
Area (mtr2) |
||
| {{ $item->DESCRIPTION ?? '' }} @if($item->CUSTOMERMATERIAL ?? null) // {{ $item->CUSTOMERMATERIAL }} @endif | |||||||||
| {{ $item->GSM ?? '' }} | {{ $item->COLOR ?? '' }} | {{ number_format((float) ($item->WIDTHPERROLL ?? 0), 3, ',', '.') }} | {{ number_format((float) ($item->LENGTHPERROLL ?? 0), 0, ',', '.') }} | {{ $item->ORDERQTY ?? '' }} | {{ number_format((float) ($item->WEIGHT ?? 0), 2, ',', '.') }} | {{ number_format((float) ($item->LENGTHTOTAL ?? 0), 0, ',', '.') }} | {{ number_format((float) ($item->AREATOTAL ?? 0), 0, ',', '.') }} | {{ number_format((float) ($item->PRICECONDITIONRATE ?? 0), 2, ',', '.') }} / {{ $item->PRICECONDITIONBASEQTY ?? '1' }} | {{ number_format((float) ($item->NETAMOUNT ?? 0) * $amountMultiplier, 2, ',', '.') }} |
| TOTAL AMOUNT | {{ $totalRoll }} | {{ number_format($totalWeight, 2, ',', '.') }} | {{ number_format($totalLength, 0, ',', '.') }} | {{ number_format($totalArea, 0, ',', '.') }} | {{ number_format($backendTotalAmount, 2, ',', '.') }} | ||||
| Discount | {{ number_format($backendDiscountAmt, 2, ',', '.') }} | ||||||||
| Transportation Cost | {{ number_format($backendTransCostAmt, 2, ',', '.') }} | ||||||||
| TOTAL AMOUNT - Discount + Trans. Cost | {{ number_format($backendNetAmount, 2, ',', '.') }} | ||||||||
| Amount | {{ number_format($calculatedAmount, 2, ',', '.') }} | ||||||||
| @if(isset($is_no_amount_no_vat_rate_n_rate_unit) && $is_no_amount_no_vat_rate_n_rate_unit) VAT @else VAT {{ number_format($vatRate, 0) }}{{ $vatRateUnit }} @endif | {{ number_format($backendVatAmount, 2, ',', '.') }} | ||||||||
| TOTAL | {{ number_format($backendGrandTotal, 2, ',', '.') }} | ||||||||
| {{ numberToWords($backendGrandTotal, $currency) }} | |||||||||
Starting from October 25, 2023, please use our new corporate bank account as follow :
| Bank Name | : | {{ $bankInfo['bank_name'] ?? '' }} |
| Address | : | {{ $bankInfo['address'] ?? '' }} |
| In Favor Of | : | {{ $bankInfo['in_favor_of'] ?? '' }} |
| Account No | : | {{ $bankInfo['account_no'] ?? '' }} |
| Swift Code | : | {{ $bankInfo['swift_code'] ?? '' }} |