@php use App\Models\WashCategory; @endphp @php $fetchCwoName=DB::table('cwo_master')->where('id',$cwo_id)->first(); @endphp

{{$fetchCwoName->cwo_name??''}}

{!! str_replace(',', '
', e($fetchCwoName->address??'')) !!}

Phone: {{$fetchCwoName->cwo_phone??''}}
Email: {{$fetchCwoName->cwo_email??''}}

Bank Info:

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

Invoice

@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(!empty($data)) @php $i =1; $tot_amount = 0; @endphp @foreach($data as $d) @php $tot_amount = $tot_amount + $d['total_amount']; if($d['payment_status']=='1'){ $p_status = 'Paid'; }else{ $p_status = 'Unpaid'; } if($d['wash_type_id'] > 0){ $getWashType = WashCategory::where('id', $d['wash_type_id'])->select('wash_name')->first(); if($getWashType != ''){ $wash_name = $getWashType->wash_name; } else { $wash_name = ''; } }else{ $wash_name = ''; } @endphp @php $i++ @endphp @endforeach @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'] }}