@props(['offers', 'source' => 'contact', 'selected' => null]) @php $showPrices = $showPrices ?? false; $fmt = function ($offer) use ($showPrices) { if ($showPrices && $offer->price_from) { $unit = $offer->price_unit ? ' '.$offer->price_unit : ''; $to = $offer->price_to ? '–'.number_format($offer->price_to) : ''; return 'PKR '.number_format($offer->price_from).$to.$unit; } return 'Starting range on request'; }; $book = app(\App\Services\BookingCalendar::class); $oldDate = old('appointment_date', ''); @endphp