@extends('admin.layouts.layout')
{{--
IMPORTANT DEVELOPMENT GUIDELINES FOR SCHEDULE MODALS:
1. URL PATTERNS:
- Admin routes use prefix 'schedule/' NOT '/admin/schedule/'
- Example: fetch('/schedule/123/property-details') โ
- NOT: fetch('/admin/schedule/123/property-details') โ
2. MODAL STRUCTURE (Follow property-location modal pattern):
- Outer div: class="schedule-modal-overlay" id="uniqueId"
- Inner div: class="specific-modal-class" onclick="event.stopPropagation()"
- This works with global click handler on line 3109
3. EXISTING WORKING EXAMPLES:
- Property Location Modal (lines 3475+)
- Schedule Details Modal (lines 2647+)
- Reschedule Modal (lines 2984+)
4. COMMON MISTAKES TO AVOID:
- Don't add custom click handlers (use global system)
- Don't use different overlay class names
- Don't forget event.stopPropagation() on inner modal
- Don't use /admin/ prefix in fetch URLs
--}}
@section('content')
@if($show_tenant_dropdown ?? false)
@if($tenant_id)
@if(isset($inspectors) && $inspectors->count() > 0)
@foreach($inspectors as $inspector)
-
@php
$avatarUrl = asset('images/inspector_01.jpg'); // Default
if ($inspector->avatar && is_array($inspector->avatar) && isset($inspector->avatar['thumb'])) {
$avatarUrl = $inspector->avatar['thumb'];
} elseif ($inspector->avatar && is_string($inspector->avatar)) {
$avatarUrl = $inspector->avatar;
}
@endphp
{{ $inspector->full_name }}
@endforeach
@else
-
No inspectors found for selected tenant
@endif
@else
-
Select a tenant to view inspectors
@endif
@else
@if(isset($inspectors) && $inspectors->count() > 0)
@foreach($inspectors as $inspector)
-
@php
$avatarUrl = asset('images/inspector_01.jpg'); // Default
if ($inspector->avatar && is_array($inspector->avatar) && isset($inspector->avatar['thumb'])) {
$avatarUrl = $inspector->avatar['thumb'];
} elseif ($inspector->avatar && is_string($inspector->avatar)) {
$avatarUrl = $inspector->avatar;
}
@endphp
{{ $inspector->full_name }}
@endforeach
@else
-
No inspectors found
@endif
@endif
{{-- Service accordion removed --}}
@if($show_tenant_dropdown ?? false)
@endif
{{-- Type and customer/agent search removed --}}
{{ \Carbon\Carbon::now()->format('F Y') }}
| Sunday |
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Saturday |
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
|
29
|
30
|
1
|
2
|
3
|
4
|
5
|
| |
Mon 04 |
Tue 05 |
Wed 06 |
Thu 07 |
Fri 08 |
Sat 09 |
Sun 10 |
@endsection
@push('page_script')
@php($placeApiKey = \Config::get('settings.address_auto_populate_key'))
{{-- Include Schedule Details Modal Component --}}
@include('admin.components.schedule-details-modal-script')
@endpush