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

Edit Doctor

@if ($errors->any())
@endif {!! html()->form('POST', route('doctors.update', $doctor->id))->acceptsFiles()->attribute('enctype', 'multipart/form-data')->open() !!} @csrf @method('PUT')
{!! html()->text('doctorname', old('doctorname',$doctor->doctorname))->class('form-control')->placeholder('Doctor Name')->required() !!}
{!! html()->text('designation', old('designation',$doctor->designation))->class('form-control')->placeholder('Doctor Designation')->required() !!}
{!! html()->text('hospitalname', old('hospitalname',$doctor->hospitalname))->class('form-control')->placeholder('Hospital Name & Address')->required() !!}
{!! html()->select( 'subject', [ '' => 'Select Subject/Topics', 'Introduction' => 'Introduction', 'Other' => 'Other', ], old('subject',$doctor->subject), )->class('form-control')->required() !!}
{!! html()->select( 'speciality', [ '' => 'Select Speciality', 'Ortho' => 'Ortho', 'Cardio' => 'Cardio', 'Cp' => 'Cp', 'Gastro' => 'Gastro', 'Other'=> 'Other', ], old('speciality',$doctor->speciality), )->class('form-control')->id('speciality')->required() !!}
@if ($doctor->photo)
Doctor Photo
@endif
{!! html()->submit('Update Doctor')->class('btn btn-lg btn-default shadow-sm btn-rounded') !!}
{!! html()->form()->close() !!} @endsection @section('footer') @endsection