@extends('layouts.app') @section('content')

@lang('quickadmin.appointments.title')

{!! Form::model($appointment, ['method' => 'PUT', 'route' => ['admin.appointments.update', $appointment->id]]) !!}
@lang('quickadmin.qa_edit')
{!! Form::label('client_id', 'Client*', ['class' => 'control-label']) !!} {!! Form::select('client_id', $clients, old('client_id'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('client_id'))

{{ $errors->first('client_id') }}

@endif
{!! Form::label('employee_id', 'Employee*', ['class' => 'control-label']) !!} {!! Form::select('employee_id', $employees, old('employee_id'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('employee_id'))

{{ $errors->first('employee_id') }}

@endif
{!! Form::label('start_time', 'Start time*', ['class' => 'control-label']) !!} {!! Form::text('start_time', old('start_time'), ['class' => 'form-control datetime', 'placeholder' => '', 'required' => '']) !!}

@if($errors->has('start_time'))

{{ $errors->first('start_time') }}

@endif
{!! Form::label('finish_time', 'Finish time', ['class' => 'control-label']) !!} {!! Form::text('finish_time', old('finish_time'), ['class' => 'form-control datetime', 'placeholder' => '']) !!}

@if($errors->has('finish_time'))

{{ $errors->first('finish_time') }}

@endif
{!! Form::label('comments', 'Comments', ['class' => 'control-label']) !!} {!! Form::textarea('comments', old('comments'), ['class' => 'form-control ', 'placeholder' => '']) !!}

@if($errors->has('comments'))

{{ $errors->first('comments') }}

@endif
{!! Form::submit(trans('quickadmin.qa_update'), ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} @stop @section('javascript') @parent @stop