@if ($c['name'])
{{ $c['name'] }}
@endif
@if ($c['second_name'])
{{ $c['second_name'] }}
@endif
@if ($c['third_name'])
{{ $c['third_name'] }}
@endif
@if ($c['mobile'])
Mob: {{ $c['mobile'] }}
@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['mobile'])
{{ $c['arabic_mobile'] }} : جوال
@endif
@if ($c['arabic_cr'])
{{ $c['arabic_cr'] }}:س.ت
@endif
@if ($c['arabic_gstin'])
{{ $c['arabic_gstin'] }}:رقم الضريبي
@endif
|
TAX INVOICE / فاتورة الضريبة |
@php
$custname = $v['customer_details']['name'];
$cust_arr = explode('?', $custname);
$cust = count($cust_arr);
$stringvalue = $v['customer_details']['address'];
$str_arr = explode('?', $stringvalue);
$result = count($str_arr);
@endphp
Cust Details / عميل:
@for ($i = 0; $i < $cust; $i++) {{ $cust_arr[$i] }} @endfor
@for ($i = 0; $i < $result; $i++)
{{ $str_arr[$i] }}
@endfor VAT No : {{ $v['customer_details']['gstin'] }}
|
رقم الفاتورة / Invoice No : {{ $v['bill_no'] }}
تاريخ الفاتورة / Invoice Date : {{ $v['bill_date'] }}
نوع /Payment Terms : {{ $v['payment_mode'] }}
نوع /PO No : {{ $v['ponumber'] }}
|
SL.No
رقم |
Description
اسم المنتج |
Unit
وحدة |
Qty
كمية |
Price
اسعر الوحده |
Before Dis.
قبل الخصم |
Disc Amt
خصم |
Total Price
اسعر الإجمالي |
---|---|---|---|---|---|---|---|
@php
echo $slno;
@endphp
|
@php
$myString = $vv['remarks'];
$myArray = explode('?', $myString);
$result = count($myArray);
$countLine = substr_count($myString, '?');
@endphp
@for ($i = 0; $i < $result; $i++)
{{ $myArray[$i] }}
@endfor
{{-- @if ($countLine > 1)
@for ($i = 0; $i < $countLine; $i++)
@endfor @endif --}} |
{{ $vv['mesuring_details']['name'] }}
|
{{ $vv['quantity'] }}
|
{{ $vv['price_per_quantity'] }}
|
{{ $vv['taxable_before_disc'] }}
|
{{ $vv['item_discount'] }}
|
{{ $vv['gtotal'] }}
|
@php
$slno++;
@endphp
{!! QrCode::size(120)->generate($v['qrcode']) !!} |
Bank Details:
{{ $v['banks']['account_name'] }}
{{ $v['banks']['account_no'] }}
{{ $v['banks']['name'] }}
{{ $v['banks']['branch_name'] }}
{{ $v['banks']['ibaan_no'] }}
{{ $v['banks']['address'] }}
{{ $v['banks']['details'] }}
|
Total Before Disc.
|
{{ $grandTotal }} |
الإجمالي قبل الخصم
|
Total Discount
|
{{ $v['discount_amount'] }} |
خصم الأعمال السابقة
|
||
Total Taxable Amount
|
{{ $v['taxable_amt'] }} |
إجمالي المبلغ الخاضع للضريبة
|
||
VAT Amount
|
{{ $v['tax'] }} |
قيمة الضريبة المضافة
|
||
Net Amount
|
{{ $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 |
{{ $c['name'] }}
Authorised Signatory
|
{{ $v['remarks'] }}
{{ $c['arabic_address'] }}
|
@endif
{{ $c['address'] }}
|
@endif