@extends('layouts.print') @section('pageSize','A4') @section('content') @foreach($data as $k => $v) @php $slno = 1 @endphp
CASH INVOICE / الفاتورة النقدية
@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']}}
SL.No
رقم
Description
اسم المنتج
Unit
وحدة
Qty
كمية
Price
اسعر الوحده
Total Price
اسعر الإجمالي
@foreach($v['sold_items'] as $vv)
@php echo $slno @endphp
{{$vv['item_details']['name']}}
{{$vv['mesuring_details']['name']}}
{{$vv['quantity']}}
{{$vv['price_per_quantity']}}
{{$vv['total']}}
@php $slno++ @endphp @endforeach
@endforeach