{!! str_replace(',', '
', e($fetchCwoName->address??'')) !!}
Phone: {{$fetchCwoName->cwo_phone??''}}
Email: {{$fetchCwoName->cwo_email??''}}
Account Holder: @if(isset($bankDetails)){{ $bankDetails->account_holder }}@endif
Account Number: @if(isset($bankDetails)){{ $bankDetails->account_number }}@endif
Bank Name: @if(isset($bankDetails)){{ $bankDetails->bank_name }}@endif
Account Type: @if(isset($bankDetails)){{ $bankDetails->account_type }}@endif
Branch Name: @if(isset($bankDetails)){{ $bankDetails->branch_name }}@endif
Branch Code: @if(isset($bankDetails)){{ $bankDetails->branch_code }}@endif
Swift Code/IBAN: @if(isset($bankDetails)){{ $bankDetails->swift_code }}@endif
@if(!empty($data))
@php
$i = 1;
$tot_amount = 0;
$paid_amount = 0;
$due_amount = 0;
@endphp
@foreach($data as $d1)
@php
$tot_amount += $d1['total_amount'];
if($d1['payment_status']=='1'){
$paid_amount += $d1['total_amount'];
}else{
$due_amount += $d1['total_amount'];
}
@endphp
@endforeach
@endif
@php $invoice_no = $id.'-'.$date_washed @endphp
@if(!empty($data->created_at))
Bill#: {{$data->invoice_no ?? ''}}
Bill Date: {{ \Carbon\Carbon::parse($created_at)->format('jS F, Y') }}
@else
Bill#: {{ $invoice_no ?? ''}}
Bill Date: {{ $date_washed }}
@endif
Client Name: {{ $co_fname }} {{ $co_lname }}
Phone: {{ $cwo_phone }}
@if($tot_amount > 0)
Amount Due:: {{ $symbol }}{{ $tot_amount }}
@endif
| Sl. No. | Car Reg. No. | Make | Model | Color | Body Type | Wash Type | Amount | Date Washed | Completed Date | Payment Status | Payment Type |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $i }} | {{ $d['car_registration_no'] }} | {{ $d['make'] }} | {{ $d['car_model'] }} | {{ $d['vehicle_color'] }} | {{ $d['body_type'] }} | {{ $wash_name }} | {{ $d['symbol'] }}{{ $d['total_amount'] }} | {{ $d['date_washed'] }} | {{ $d['date_washed'] }} | {{ $p_status }} | {{ $d['payment_details'] }} |