@extends('layouts.printukbreceipt') @section('pageSize','A4') @section('content') @foreach($data as $k => $v) @php $slno = 1 @endphp
RECEIPT
@php $stringvalue =$v['customer_details']['address']; $str_arr = explode (",", $stringvalue); $result = count($str_arr); @endphp
Customer : {{$v['customer_details']['name']}}
Receipt No : {{$v['receipt_no']}}
@for ($i = 0; $i < $result; $i++)

{{$str_arr[$i]}}

@endfor
Date : {{$v['date']}}
Sl.No
Bill No
Bill Date
Due
Paid Amount
Balance
@foreach($v['receipt_bills'] as $vv)
@php echo $slno @endphp
{{$vv['bill_no']}}
{{$vv['bill_date']}}
{{$vv['old_due']}}
{{$vv['amount']}}
@php $balance = $vv['old_due'] -$vv['amount']; @endphp {{$balance}}
@php $slno++ @endphp @endforeach
Overall Due : {{$v[0]['over_all_due']}}
Remarks: {{$v['remarks']}}
For UKB SUPPLIERS

Authorised Signatory

@endforeach