@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') Booked Appointment @endslot @endcomponent
{{ __('Back') }}
{{ __('Book Appointment') }}
@csrf @if ($role != 'patient')
@error('appointment_for') {{ $message }} @enderror
@else @endif @if ($role != 'doctor')
@error('appointment_with') {{ $message }} @enderror
@else @endif
@error('appointment_date') {{ $message }} @enderror
@if ($role !== 'doctor')
@error('available_time') {{ $message }} @enderror @if ($errors->has('available_time')) @endif
@elseif ($role == 'doctor')
@foreach ($doctor_available_time as $item) @endforeach
@error('available_time') {{ $message }} @enderror @if ($errors->has('available_time')) @endif
@endif
@error('available_slot') {{ $message }} @enderror @if ($errors->has('available_slot')) @endif
@endsection @section('script') @endsection