@if ($selectFilter == 'upcoming') Upcoming @elseif ($selectFilter == 'previous') Previous @elseif ($selectFilter == 'cancelled') Cancelled @endif Appointments

{{-- --}} {{-- Create--}} {{-- --}}
@if (session()->has('message'))
{{ session('message') }}
@endif
@if(auth()->user()->role->name == 'Customer') @elseif (auth()->user()->role->name == 'Admin' || auth()->user()->role->name == 'Employee') @endif @if($appointments->count() == 0) @else @foreach ($appointments as $appointment) @if(auth()->user()->role->name == 'Customer') @elseif (auth()->user()->role->name == 'Admin' || auth()->user()->role->name == 'Employee') @endif @endforeach @endif
Code Service Date Time Slot LocationAddress Contact NoCustomer Contact No EmailActions
No Appointments Found
{{ $appointment->appointment_code }} {{ $appointment->service->name}} {{ $appointment->date}} {{ $appointment->timeSlot->start_time }} - {{ $appointment->timeSlot->end_time }} {{ $appointment->location->name}}{{ $appointment->location->address}} {{ $appointment->location->telephone_number}}{{ $appointment->user->name}} {{ $appointment->user->phone_number}} {{ $appointment->user->email}}
{{-- --}} {{-- {{ __('Edit') }}--}} {{-- --}} @if ($selectFilter == 'upcoming') {{ __('Cancel') }} @endif
{{ $appointments->links() }}
{{ __('Cancel Appointment') }} {{ __('Are you sure you want to cancel the appointment?') }}
{{ __('Back') }} {{ __('Cancel') }}
{{-- --}} {{-- --}} {{-- {{ isset($this->appointment->id) ? 'Edit Appointment' : 'Add Appointment' }}--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{-- @error('appointment.name') {{ $message }}@enderror--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- {{ __('Cancel') }}--}} {{-- --}} {{-- Save--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}}