@if (app('request')->input('print') == 'y') @endif
ADVANCE RECEIPT / إيصال مسبق
@foreach ($data as $k => $v) @php $slno = 1; @endphp
@php $stringvalue = $v['customer_details']['address']; $str_arr = explode('?', $stringvalue); $result = count($str_arr); $cust = $v['customer_details']['name']; $cust_arr = explode('?', $cust); $cust_count = count($cust_arr); @endphp
عميل / Customer Details:
@for ($i = 0; $i < $cust_count; $i++) {{ $cust_arr[$i] }}
@endfor
@for ($i = 0; $i < $result; $i++) {{ $str_arr[$i] }}
@endfor
VAT No : {{ $v['customer_details']['gstin'] }}
نوع /Payment Terms : {{ $v['type'] }}
@php $slno++; @endphp
SL.No
رقم
Advance No
اسم المنتج
Date
اسم المنتج
Amount
كمية
Description
اسم المنتج
@php echo $slno; @endphp
{{$v['advance_no']}}
{{ $v['date'] }}
{{ $v['advance_amount'] }}
{{ $v['remarks'] }}
Customer Sign
@php $en = new NumberFormatter('en', NumberFormatter::SPELLOUT); $enamt = $en->format($v['advance_amount']); $ar = new NumberFormatter('ar', NumberFormatter::SPELLOUT); $aramt = $ar->format($v['advance_amount']); @endphp
SAR: {{ $enamt }}
ريال سعودي: {{ $aramt }}

Anwar Bahran Contracting Est.

Authorised Signatory

@endforeach