@extends('layouts.master-layouts') @section('title') {{ __('Book Appointment') }} @endsection @section('css') @endsection @section('content') @component('components.breadcrumb') @slot('title') Book Appointment @endslot @slot('li_1') Dashboard @endslot @slot('li_2') Appointment @endslot @endcomponent
{{ __('New Appointment') }}

{{ __('Appointment List') }} |

@if ($role == 'patient') @elseif($role == 'doctor') @else @endif @php $i = 1; @endphp @if ($role == 'receptionist') @foreach ($appointments as $appointment) @php $i++; @endphp @endforeach @elseif ($role == 'doctor') @foreach ($appointments as $appointment) @php $i++; @endphp @endforeach @elseif ($role == 'patient') @foreach ($appointments as $appointment) @php $i++; @endphp @endforeach @endif
{{ __('Sr.No.') }}{{ __('Doctor Name') }} {{ __('Doctor Number') }}{{ __('Patient Name') }} {{ __('Patient Number') }}{{ __('Patient Name') }} {{ __('Doctor Name') }} {{ __('Patient Number') }}{{ __('Time') }}
{{ $i }} {{ $appointment->patient->first_name . ' ' . $appointment->patient->last_name }} {{ @$appointment->doctor->user->first_name . ' ' . @$appointment->doctor->user->last_name }} {{ $appointment->patient->mobile }} {{ $appointment->timeSlot->from . ' to ' . $appointment->timeSlot->to }}
{{ $i }} {{ $appointment->patient->first_name . ' ' . $appointment->patient->last_name }} {{ $appointment->patient->mobile }} {{ $appointment->timeSlot->from . ' to ' . $appointment->timeSlot->to }}
{{ $i }} {{ @$appointment->doctor->user->first_name . ' ' . @$appointment->doctor->user->last_name }} {{ @$appointment->doctor->user->mobile }} {{ $appointment->timeSlot->from . ' to ' . $appointment->timeSlot->to }}
@endsection @section('script') @endsection