@extends ('backend.layouts.app') @section('page-header')

{{ trans('labels.backend.appointment.edit') }}

@endsection @section('content') {{ Form::model($appointment,['route' => ['admin.appointment.update',$appointment], 'class' => 'form-horizontal', 'role' => 'form', 'method' => 'put', 'id' => 'update-appointment']) }}

{{ trans('labels.backend.patients.details') }}

{!! Form::label('pacient_label','Pacient',['class' => 'col-lg-2 control-label']) !!}
@if(!empty($pacient)) {!! Form::select('patient_id',[$pacient->id=>$pacient->name],null,['class'=>'form-control areas', 'id'=>'patient_id']) !!} @else {!! Form::select('patient_id',[0=>'Alege un pacient'],null,['class'=>'form-control areas', 'id'=>'patient_id']) !!} @endif
@include('backend.appointments.form')
{{ link_to_route('admin.appointment.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-m']) }}
@permission('edit-appointment')
{{ Form::submit(trans('buttons.general.save'), ['class' => 'btn btn-success btn-m']) }}
@endauth
{{ Form::close() }} @endsection