@extends('layouts.app') @section('title') {{ __('messages.schedule.edit') }} @endsection @section('header_toolbar')

@yield('title')

@if (!(getLoggedInUser()->hasRole('Doctor'))) {{ __('messages.common.back') }} @endif
@endsection @section('content')
@include('layouts.errors') @include('flash::message')
{{Form::hidden('hospitalSchedule',json_encode($data['hospitalSchedule']),['id'=>'editHospitalSchedule','class'=>'hospitalSchedule'])}} {{ Form::model($schedule, ['route' => ['schedules.update', $schedule->id], 'method' => 'patch', 'id' => 'editScheduleForm' ,'class'=>'scheduleForm']) }} @include('schedules.fields') {{ Form::close() }}
@endsection {{--let hospitalSchedule = @JSON($data['hospitalSchedule']);--}} {{-- --}}