@foreach ($data as $k => $v)
@php
$slno = 1;
$rowcount = 1;
$rc = 0;
@endphp
@endforeach
VAT: 302126337400003
|
الرقم الضريبي: ٣٠٢١٢٦٣٣٧٤٠٠٠٠٣
|
TAX INVOICE / فاتورة الضريبة |
@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] }}
@if($v['customer_details']['mobile'])
@endfor Mob: {{ $v['customer_details']['mobile'] }}
@endif
@if($v['customer_details']['telephone'])
Telephone: {{ $v['customer_details']['telephone'] }}
@endif
|
@php
$remarks = $v['remarks'];
$rm_arr = explode('?', $remarks);
if (strpos($remarks, '?') !== true) {
$prno = $rm_arr[0];
} else {
$prno = '';
}
if (strpos($remarks, '?') !== false) {
$qtno = $rm_arr[1];
} else {
$qtno = '';
}
@endphp
رقم الفاتورة / Invoice No : {{ $v['bill_no'] }}
تاريخ الفاتورة / Invoice Date : {{ $v['bill_date'] }}
نوع /Payment Terms : {{ $v['payment_mode'] }}
@if ($prno)
PR No: {{ $prno }}
@endif
@if ($v['ponumber'])
نوع /PO No : {{ $v['ponumber'] }}
@endif
@if ($qtno)
Quote No: {{ $qtno }}
@endif
|
الرقم ضريبي للعميل/Cust VAT No:
{{ $v['customer_details']['gstin'] }}
|
S/N
رقم |
Description
اسم المنتج |
Qty
كمية |
Unit
وحدة |
Rate
السعر |
Amount
مجموع |
---|---|---|---|---|---|
@php
echo $slno;
@endphp
|
@php
$myString = $vv['remarks'];
$myArray = explode('?', $myString);
$result = count($myArray);
@endphp
@for ($i = 0; $i < $result; $i++)
{{ $myArray[$i] }}
@endfor |
{{ $vv['quantity'] }}
|
{{ $vv['mesuring_details']['name'] }}
|
{{ $vv['price_per_quantity'] }}
|
{{ $vv['gtotal'] }}
|
@php
$slno++;
$rowcount++;
@endphp