@extends('admin.layouts.layout') @section('content')

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) }})

Print Prev
@php $imgs = $scheduleImageUrls ?? []; @endphp @if(!empty($imgs)) @else
No images available
@endif

Fees

Amount
@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) }}

@csrf

Discounts

@if($existingDiscounts->count()) @foreach($existingDiscounts as $d)
@endforeach @endif

Additional Fees

@if($existingAdditionalFees->count()) @foreach($existingAdditionalFees as $af)
@endforeach @else
@endif

Sub Total

$ {{ number_format($__feesTotal,2) }}

Total

$ {{ number_format($__feesTotal,2) }}

Invoice Note

Inspection Configuration

Do you want the insurance carrier to make payments?

insurance_carrier ?? 'no')==='yes') checked @endif>
insurance_carrier ?? 'no')!=='yes') checked @endif>

Do you want appliance widgets visible on agent/client login?

widget_visiable ?? 'no')==='yes' || ($schedule->widget_visiable ?? 0)==1) checked @endif>
widget_visiable ?? 'no')!=='yes' && ($schedule->widget_visiable ?? 0)!=1) checked @endif>
  • 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

Agreements

@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') @endpush