@extends('layouts.print') @section('pageSize','A4') @section('content') @foreach($data as $k => $v) @php $slno = 1 @endphp @php $stringvalue =$v['customer_details']['address']; $str_arr = explode (",", $stringvalue); $result = count($str_arr); @endphp
Cust. Name : {{$v['customer_details']['name']}}
Invoice No : {{$v['bill_no']}}
@for ($i = 0; $i < $result; $i++) {{$str_arr[$i]}}
@endfor
Invoice Date :{{$v['bill_date']}}
VAT No : {{$v['customer_details']['gstin']}}
Payment Mode : {{$v['payment_mode']}}
@foreach($v['sold_items'] as $index=>$vvv) @if ($index==0) @foreach($vvv as $vv) @include('partials.salesinvoice_items') @php $slno++ @endphp @endforeach
SL1.No Description Unit Qty Price Total Price
@else @foreach($vvv as $vv) @include('partials.salesinvoice_items') @php $slno++ @endphp @endforeach
@endif @endforeach @endforeach