@if (app('request')->input('print') == 'y') @endif
@foreach ($data as $k => $v) @php $slno = 1 @endphp
Quotation-{{ $v['bill_no'] }}
{{ $v['bill_date'] }}
{{ $v['customer_details']['name'] }}
@foreach ($v['items'] as $vv) @php $slno++; @endphp @endforeach
@php echo $slno; @endphp
{{ $vv['item_details']['code'] }}
@php $myString = $vv['remarks']; $myArray = explode('?', $myString); $result = count($myArray); @endphp @for ($i = 0; $i < $result; $i++) {{ $myArray[$i] }}
@endfor
{{ $vv['quantity'] }}
{{ $vv['price_per_quantity'] }}
{{ $vv['total'] }}
{{ $v['taxable_amt'] }}
@php if ($v['discount_amount']) { $discount = $v['discount_amount']; $net_before_vat = $v['taxable_amt'] - $v['discount_amount']; } else { $discount = 0; $net_before_vat = $v['taxable_amt']; } @endphp
{{ $discount }}
{{ $net_before_vat }}
{{ $v['tax'] }}
{{ $v['net_total'] }}
@endforeach