@if ($errors->has('department'))
{{ $errors->first('department') }}
@endif
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
@if ($errors->has('designation'))
{{ $errors->first('designation') }}
@endif
@if ($errors->has('hospital_location'))
{{ $errors->first('hospital_location') }}
@endif
@if ($errors->has('years_experience'))
{{ $errors->first('years_experience') }}
@endif
@if ($errors->has('languages_spoken'))
{{ $errors->first('languages_spoken') }}
@endif
@if ($errors->has('education'))
{{ $errors->first('education') }}
@endif
@if ($errors->has('overview'))
{{ $errors->first('overview') }}
@endif
@if ($errors->has('meta_title'))
{{ $errors->first('meta_title') }}
@endif
@if ($errors->has('meta_description'))
{{ $errors->first('meta_description') }}
@endif
@php
// $file_array=array();
$fileData = []; // Initialize as an array before appending
foreach($resgallery as $gallery){
// $file_array[]=$gallery->filename;
if (Storage::disk('public')->exists('uploads/gallery/' . $gallery->filename)) {
$fileData[] = [
'file_name' => $gallery->filename,
'file_size' => Storage::disk('public')->size('uploads/gallery/' . $gallery->filename),
'file_url' => asset('storage/uploads/gallery/' . $gallery->filename)
];
} else {
// Handle missing file case
Log::error('File not found: ' . $gallery->filename);
}
}
// $fileName = json_encode($file_array);
@endphp
@if($Doctor->innovations->count() > 0)
@foreach($Doctor->innovations as $key => $innovation)
@if($key == 0)
@else
@endif
@endforeach
@else
@endif
@php
$awards_recognitions = awards();
@endphp
@foreach($awards_recognitions as $key => $label)
@php
$existingAwards = $doctorAwards[$key] ?? collect([]);
@endphp
{{-- If records exist --}}
@if($existingAwards->count())
@foreach($existingAwards as $index => $award)
@if($index === 0)
@else
@endif
@endforeach
@else
{{-- No records yet --}}
@endif
@endforeach