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