@extends('app') @section('extra-css') @endsection @section('content-header') Edit Doctor Home HR Edit Doctor @endsection @section('content') @can('doctor-view') View Doctor @endcan @canany(['doctor-edit','doctor-update']) {{csrf_field()}} Step 1Basic Information Step 2Doctor Profile Full Name: User Name: Father's Name: Mother's Name: Mobile No: DOB: Gender: {!! Form::select('gender', [ '1'=>'Male', '2'=>'Female', '3'=>'Other', ] ,$doctor->user->gender, ['class'=> 'form-control','placeholder'=> 'Please Select Gender']) !!} Profile Image: @if(file_exists($doctor->user->profile_image)) @endif Doctor Signature: Designation: {!! Form::select('designation', $designations ,$doctor->designation_id, ['class'=> 'form-control','placeholder'=> 'Please Select Designation']) !!} Department: {!! Form::select('department', $departments ,$doctor->department_id, ['class'=> 'form-control','placeholder'=> 'Please Select Department']) !!} Educational Qualification: {!! Form::select('educational_qualification', $educational_qualifications ,$doctor->educational_qualification_id, ['class'=> 'form-control','placeholder'=> 'Please Select Designation']) !!} Medical Degree: {{-- {!! Form::select('medical_degree', $medical_degrees ,$doctor->medical_degree_id, ['class'=> 'form-control','placeholder'=> 'Please Select Degree']) !!} --}} {{-- {!! Form::select('medical_degree[]', $medical_degrees ,null, ['class'=> 'form-control select2', 'multiple']) !!}--}} @foreach($medical_degrees as $key=>$val) @if(isset($doctor->medical_degree_ids)) @if (in_array($key, $doctor->medical_degree_ids)) {{ $val }} @else {{ $val }} @endif @else {{ $val }} @endif @endforeach Specialist: {{$doctor->speciality}} {!! Form::checkbox('allow_prescription_fee', $doctor->allow_prescription_fee, $doctor->allow_prescription_fee=='1'?true:null, ['id'=> 'allow_fee', 'onclick'=>'PrescriptionFeeAction();']) !!} Allow Prescription Fees Prescription Fee: {!! Form::radio('payment_receiving_process', $doctor->payment_receiving_process, ($doctor->payment_receiving_process=='1')) !!} Received By Hospital With Appointment {!! Form::radio('payment_receiving_process', $doctor->payment_receiving_process, ($doctor->payment_receiving_process=='2')) !!} Received By Doctor With Appointment Doctor Commision {!! Form::radio('commission_type', $doctor->commission_type, ($doctor->payment_receiving_process=='1'), ['onclick'=>'doctorCommision();']) !!} Comission Type 1 {!! Form::radio('commission_type', $doctor->commission_type, ($doctor->payment_receiving_process=='2'), ['onclick'=>'doctorCommision();']) !!} Comission Type 2 Comission Fee: @endcanany @endsection @section('extra-js') @endsection @section('script') @endsection