@if (app('request')->input('print') == 'y') @endif
@foreach ($company as $n => $c)
@if ($c['name'])
{{ $c['name'] }}
@endif @if ($c['second_name'])
{{ $c['second_name'] }}
@endif @if ($c['third_name'])
{{ $c['third_name'] }}
@endif @if ($c['cr'])
C.R.: {{ $c['cr'] }}
@endif @if ($c['gstin'])
VAT.: {{ $c['gstin'] }}
@endif
@if ($c['arabic_name'])
{{ $c['arabic_name'] }}
@endif @if ($c['arabic_second_name'])
{{ $c['arabic_second_name'] }}
@endif @if ($c['arabic_third_name'])
{{ $c['arabic_third_name'] }}
@endif @if ($c['arabic_cr'])
C.R.: {{ $c['arabic_cr'] }}
@endif @if ($c['arabic_gstin'])
VAT: {{ $c['arabic_gstin'] }}
@endif
PAYMENT / دفع
@foreach ($data as $k => $v) @php $slno = 1; @endphp
@php $stringvalue = $v['supplier']['address']; $str_arr = explode('?', $stringvalue); $result = count($str_arr); $cust = $v['supplier']['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['supplier']['gstin'] }} --}}
Payment No: {{ $v['payment_no'] }}
Date : {{ $v['date'] }}
@foreach ($v['payment_bills'] as $vv) @php $slno++ @endphp @endforeach
SL.No
رقم
Bill No
Bill Date
Due
Paid Amount
Balance
@php echo $slno; @endphp
{{ $vv['order_num'] }}
{{ $vv['invoice_date'] }}
{{ $vv['old_due'] }}
{{ $vv['amount'] }}
@php $balance = $vv['old_due'] - $vv['amount']; @endphp {{ $balance }}
Overall Due: {{ $v[0]['over_all_due'] }}
{{--
Remarks: {{ $v['remarks'] }}
--}}
Customer Sign
@php $en = new NumberFormatter('en', NumberFormatter::SPELLOUT); $enamt = $en->format($v['paid']); $ar = new NumberFormatter('ar', NumberFormatter::SPELLOUT); $aramt = $ar->format($v['paid']); @endphp
SAR: {{ $enamt }}
ريال سعودي: {{ $aramt }}

{{ $c['name'] }}

Authorised Signatory

@endforeach @endforeach