@extends('layouts.yellow')
@section('content')      
    <div class="container-fluid">
        
        <div class="row">
        <div class="col-12 p-3">
                @if (session('error'))
                    <div class="alert alert-danger">
                    {{ session('error') }}
                    </div>
                @endif
            </div>
            <div class="col-12 p-3">
                <div class="card">
                    <div class="card-header">
                        <h2>{{ __('create-appointment.titleView') }}</h2>
                    </div>
                </div>
                <div class="card-body">
                    
                </div>
            </div>
        </div>
    </div>
    <div class="container-fluid">
        <div class="row">
            <div class="col-12 p-0">
                <div>
                    <x-AppointmentForm 
                        :appointment="$appointment"
                        :patients="$patients" 
                        :especialities="$especialities"
                        :calendar="$calendar"
                        :doctors="$doctors" >
                        </x-AppointmentForm>
                </div>
            </div>
        </div>
    </div>
    {!! $calendar->script() !!}
<script src="{{ asset('js/create-appointment.js') }}"></script>
@endsection