@foreach($company as $n => $c)
@foreach ($data as $k => $v)
@php
$slno = 1;
@endphp
@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
|
RECEIPT / المقبوضات |
@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'] }}
|
Receipt No:
{{ $v['receipt_no'] }}
Date : {{$v['date']}}
|
SL.No
رقم |
Bill No
|
Bill Date
|
Due
|
Paid Amount
|
Balance
|
---|---|---|---|---|---|
@php echo $slno; @endphp
|
{{$vv['bill_no']}}
|
{{$vv['bill_date']}}
|
{{$vv['old_due']}}
|
{{$vv['amount']}}
|
@php $balance = $vv['old_due'] -$vv['amount']; @endphp
{{$balance}}
|
@php $slno++ @endphp
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 |
{{ $c['name'] }} Authorised Signatory |