Fees, Review Order & Submit
@php
$datetime = '';
if($schedule->scheduled_date && $schedule->start_time){
$dt = is_string($schedule->start_time) ? $schedule->start_time : ($schedule->start_time?->format('H:i:s'));
$d = $schedule->scheduled_date instanceof \Illuminate\Support\Carbon ? $schedule->scheduled_date->format('Y-m-d') : $schedule->scheduled_date;
$datetime = $d.' '.$dt;
}
@endphp
(Appointment ID: {{ $schedule->appointment_id }}, Appointment Date: {{ \App\Helpers\Helper::showDate($datetime) }})
@php $imgs = $scheduleImageUrls ?? []; @endphp
@if(!empty($imgs))
@else
No images available
@endif
@php
// Total derived from persisted schedule_services.service_fee * quantity
$__feesTotal = isset($feesTotal) ? $feesTotal : 0;
$__persistedLineItems = [];
if(isset($schedule) && $schedule->relationLoaded('services')){
foreach($schedule->services as $ss){
$lineFee = $ss->service_fee ?? ($ss->service->fee ?? $ss->service->base_fee ?? 0);
$qty = (int)($ss->quantity ?? 1);
$__persistedLineItems[] = [
'id' => $ss->id,
'service_id' => $ss->service_id,
'name' => $ss->service->service_name ?? ('Service #'.$ss->service_id),
'fee' => (float)$lineFee,
'quantity' => $qty,
'total' => (float)$lineFee * $qty,
];
}
}
@endphp
Fees Total
$ {{ number_format($__feesTotal, 2) }}
Inspection Configuration
Do you want the insurance carrier to make payments?
Do you want appliance widgets visible on agent/client login?
-
Date/Time
{{ \App\Helpers\Helper::showDate($summaryData['date_time']) ?? '—' }}
-
Property Details
{{ $summaryData['property'] ?? 'No property details found.' }}
-
Customers
@if(!empty($summaryData['customers']))
{{ implode(', ', $summaryData['customers']) }}
@else
None
@endif
-
Agents
@if(!empty($summaryData['agents']))
{{ implode(', ', $summaryData['agents']) }}
@else
None
@endif
-
Services
@if(!empty($summaryData['services']))
{{ implode(', ', $summaryData['services']) }}
@else
No services added.
@endif
-
Inspectors
@if(!empty($summaryData['inspectors']))
{{ implode(', ', $summaryData['inspectors']) }}
@else
None
@endif
@if(isset($scheduleAgreements) && $scheduleAgreements->count())
@foreach($scheduleAgreements as $ag)
-
{{ $ag->name }}
@if($ag->service_id == 0)
@endif
@endforeach
@else
There are no agreements added yet.
@endif
{{-- Agreements Selection Modal --}}
{{-- Agreement Edit Modal --}}
@endsection
@push('page_script')
@php($placeApiKey = \Config::get('settings.address_auto_populate_key'))
@endpush
@push('styles')