@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['mobile'])
Mob: {{ $c['mobile'] }}
@endif @if ($c['cr'])
C.R.: {{ $c['cr'] }}
@endif @if ($c['gstin'])
VAT.: {{ $c['gstin'] }}
@endif
logo @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
QUOTATION / عرض سعر
@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
@for ($i = 0; $i < $count; $i++) {{ $add_arr[$i] }}
@endfor
VAT No : {{ $v['customer_details']['gstin'] }}
تاريخ /Quote Date : {{ $v['bill_date'] }}
رقم /Quote No : {{ $v['bill_no'] }}
نوع /Payment Terms : {{ $v['payment_mode'] }}
{{ $v['refno'] }}
@foreach ($v['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['total'] }}
صالح حتى /Validity : {{ $v['day_limit'] }} Days.
@php $stringvalue = $v['remarks']; $str_arr = explode('?', $stringvalue); $result = count($str_arr); @endphp
@for ($i = 0; $i < $result; $i++) {{ $str_arr[$i] }}
@endfor
{{--
المبلغ الإجمالي / Taxable : {{ $v['taxable_amt'] }}
ضريبة / VAT @ 15% : {{ $v['tax'] }}
--}}
المبلغ الإجمالي/Total Amount: {{ $v['taxable_amt'] }}
Customer Sign
@php $en = new NumberFormatter('en', NumberFormatter::SPELLOUT); $enamt = $en->format($v['taxable_amt']); $enamt = ucwords($enamt); $ar = new NumberFormatter('ar', NumberFormatter::SPELLOUT); $aramt = $ar->format($v['taxable_amt']); if (strpos($v['taxable_amt'], '.') !== false && strpos($enamt, 'Point') !== false) { $net = explode('.', $v['taxable_amt']); $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['taxable_amt']); $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 }}
logo
Authorised Signatory
{{ $c['arabic_address'] }}
{{ $c['address'] }}
@endforeach @endforeach