@if (app('request')->input('print') == 'y') @endif
INTERNATIONAL QUALITY STANDARDS for CONTRACTING
C.R.: 1010501408
VAT.: 310410759300003
{{-- --}} logo
مؤسسة معايير الجودة العالمية للمقاولات
C.R.: ١٠١٠١٥٠١٤٠٨
VAT.: ٣١٠٤١٠٧٥٩٣٠٠٠٠٣
TAX INVOICE / فاتورة الضريبة
@foreach ($data as $k => $v) @php $slno = 1; @endphp
@php $stringvalue = $v['customer_details']['name']; $str_arr = explode('?', $stringvalue); $result = count($str_arr); $address = $v['customer_details']['address']; $add_arr = explode('?', $address); $count = count($add_arr); @endphp
Cust Details / عميل:
@for ($i = 0; $i < $result; $i++) {{ $str_arr[$i] }}
@endfor
رقم الفاتورة / Invoice No : {{ $v['bill_no'] }}
@for ($i = 0; $i < $count; $i++) {{ $add_arr[$i] }}
@endfor
تاريخ الفاتورة / Invoice Date : {{ $v['bill_date'] }}
نوع /Payment Terms : {{ $v['payment_mode'] }}
VAT No : {{ $v['customer_details']['gstin'] }}
نوع /PO No : {{ $v['ponumber'] }}
@foreach ($v['sold_items'] as $vv) @php $slno++; @endphp @endforeach
SL.No
رقم
Description
اسم المنتج
Qty
كمية
Unit
وحدة
Price/SR
سعر
Total Price
السعر الكلي
@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 if ($v['discount_amount'] == null) { $v['discount_amount'] = '0.00'; } $grandTotal = (float) $v['taxable_amt'] + (float) $v['discount_amount']; $grnd = $grandTotal; if (strpos($grandTotal, '.') !== false) { $grandTotalArray = explode('.', $grandTotal); if (strlen($grandTotalArray[1]) < 2) { $grandTotal = $grandTotalArray[0] . '.' . $grandTotalArray[1] . '0'; } else { $grandTotal = $grandTotalArray[0] . '.' . $grandTotalArray[1]; } } else { $grandTotal = (string) $grandTotal . '.00'; } @endphp
{{-- --}} logo
Remarks: {{ $v['remarks'] }}
المبلغ الإجمالي/Grand Total: {{ $grandTotal }}
خصم/Discount: {{ $v['discount_amount'] }}
خاضع للضريبة/Taxable: {{ $v['taxable_amt'] }}
ضريبة/VAT@15%: {{ $v['tax'] }}
المجموع الصافي/Net Total: {{ $v['net_total'] }}

Customer Sign

@php $en = new NumberFormatter('en', NumberFormatter::SPELLOUT); $enamt = $en->format($v['net_total']); $enamt = ucwords($enamt); $ar = new NumberFormatter('ar', NumberFormatter::SPELLOUT); $aramt = $ar->format($v['net_total']); if (strpos($v['net_total'], '.') !== false && strpos($enamt, 'Point') !== false) { $net = explode('.', $v['net_total']); $enamtArray = explode('Point', $enamt); if ($net[1] === '10') { $amt = 'Ten'; } elseif ($net[1] === '20') { $amt = 'Twenty'; } elseif ($net[1] === '30') { $amt = 'Thirty'; } elseif ($net[1] === '40') { $amt = 'Fourty'; } elseif ($net[1] === '50') { $amt = 'Fifty'; } elseif ($net[1] === '60') { $amt = 'Sixty'; } elseif ($net[1] === '70') { $amt = 'Seventy'; } elseif ($net[1] === '80') { $amt = 'Eighty'; } elseif ($net[1] === '90') { $amt = 'Ninety'; } else { if (strpos($enamtArray[1], 'Zero') !== false) { $amt = $enamtArray[1]; $amt = explode('Zero', $amt); $amt = $amt[1]; } else { $amt = explode('.', $v['net_total']); $amt = $en->format($amt[1]); $amt = ucwords($amt); } } $enamt = $enamtArray[0] . ' Riyals and ' . $amt . ' Halalas Only'; // $arabic = new GoogleTranslate(); // $arabic->setSource('en'); // $arabic->setTarget('ar'); // $arabic = $arabic->translate($enamt); } else { $enamt = $enamt . ' Riyals Only'; } @endphp
{{ $enamt }}
ريال سعودي: {{ $aramt }}
Authorised Signatory
BANK DETAILS: Bank Al Bilad IBAN : SA2015000443128616290001
Riyadh , K S A
@endforeach