@if (app('request')->input('print') == 'y') @endif
@foreach ($data as $k => $v) @php $slno = 1 @endphp
{{ $v['bill_no'] }}
{{ $v['bill_date'] }}
{{ $v['customer_details']['name'] }}
@foreach ($v['sold_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['gtotal'] }}
@endforeach
{{ $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 }}
{!! QrCode::size(95)->generate($v['qrcode']) !!}
{{ $net_before_vat }}
{{ $v['tax'] }}
{{ $v['net_total'] }}