@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('patients.reschedule_appointment') }}

@include('flash::message') @include('errors.list')

{{ __('patients.patient_information') }}


{{ __('patients.first_name') }}: {{ get_name($appointment->patient_id, 'id', 'first_name', 'patients') }}

{{ __('patients.last_name') }}: {{ get_name($appointment->patient_id, 'id', 'last_name', 'patients') }}

{{ __('patients.patient_number') }}: {{ get_name($appointment->patient_id, 'id', 'number', 'patients') }}

{{ __('patients.phone') }}: {{ get_name($appointment->patient_id, 'id', 'phone', 'patients') }}

{{ __('patients.previous_details') }}

{{ Form::label('clinic_allocation', __('patients.assigned_clinic')) }} @if($appointment->clinic_allocation == 0) {{ Form::text('clinic_allocation_previous', __('patients.not_assigned'), ['class' => 'form-control col-sm-12 compulsory', 'readonly']) }} @else {{ Form::text('clinic_allocation_previous', $clinics[$appointment->clinic_allocation], ['class' => 'form-control col-sm-12 compulsory', 'readonly']) }} @endif
{{ Form::label('in_charge', __('patients.assigned_incharge')) }} @if($appointment->incharge_id == 0) {{ Form::text('in_charge_previous', __('patients.not_assigned'), ['class' => 'form-control col-sm-12 compulsory', 'readonly']) }} @else {{ Form::text('in_charge_previous', get_full_name($appointment->incharge_id, 'id', 'first_name', 'last_name', 'users'), ['class' => 'form-control col-sm-12 compulsory', 'readonly']) }} @endif
{{ Form::label('appointment_date_previous',__('patients.appointment_date')) }} {{ Form::text('appointment_date_previous', streamline_date($appointment->appointment_date), ['class' => 'form-control col-sm-12 compulsory', 'readonly']) }}
{{ Form::label('appointment_time_previous',__('patients.appointment_time')) }} {{ Form::text('appointment_time_previous', $appointment->appointment_time, ['class' => 'form-control col-sm-12 compulsory', 'readonly']) }}
{{ Form::label('comments_previous',__('patients.comments')) }} {{ Form::text('comments_previous', $appointment->comments, ['class' => 'form-control col-sm-12 compulsory', 'readonly']) }}

{{ __('patients.new_details') }}

{{ Form::open(['route' => 'patients.save_rescheduled_appointment']) }} {{ Form::hidden('appointment_id', $appointment->id, ['class' => 'patient_id']) }}
{{ Form::label('clinic_allocation', __('patients.assign_clinic')) }} {{ Form::select('clinic_allocation', $clinics, $appointment->clinic_allocation, ['class' => 'form-control col-sm-12 compulsory search_criteria', 'id' => 'clinic_allocation']) }}
{{ Form::label('in_charge', __('patients.assign_incharge')) }}
{{ Form::label('appointment_date',__('patients.appointment_date')) }}
{{ Form::text('appointment_date', date('d-m-Y', strtotime($appointment->appointment_date)),['class' => 'compulsory form-control','readonly','id'=>'appointment_date', 'required']) }}
{{ Form::label('appointment_time',__('patients.appointment_time')) }} {{ Form::time('appointment_time',$appointment->appointment_time,['class' => 'compulsory form-control','required']) }}
{{ Form::label('comments',__('patients.comments')) }} {{ Form::textarea('comments',$appointment->comments,['class' => 'form-control', 'data-error'=>'','id'=>'comments']) }}
{{ Form::button(__('patients.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }} {{ Form::button(__('patients.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }} {{ Form::close() }}
@endsection @push('scripts') @endpush