@extends('layouts.app') @section('title', 'المواعيد') @section('content')

المواعيد

إدارة مواعيد العملاء والمكالمات المجدولة

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Create Appointment Modal --}}

موعد جديد

@csrf
{{-- Appointment List --}}
@forelse($appointmentList as $appointment) @php $a = (array) $appointment; @endphp

{{ $a['customerName'] ?? $a['customer_name'] ?? 'عميل' }}

{{ $a['status'] ?? 'scheduled' }}
📞 {{ $a['customerPhone'] ?? $a['customer_phone'] ?? '---' }} 📅 {{ $a['appointmentDate'] ?? $a['appointment_date'] ?? '---' }} ⏰ {{ $a['appointmentTime'] ?? $a['appointment_time'] ?? '---' }}
@if(!empty($a['notes']))

{{ $a['notes'] }}

@endif
@if(($a['status'] ?? 'scheduled') === 'scheduled')
@csrf
@endif
@empty

لا توجد مواعيد

قم بإضافة أول موعد لعميل

@endforelse
@endsection @push('scripts') @endpush