@php $defaultCenters = null; if(old('city_id', $patient->city_id)) { $defaultCenters = (new \App\Http\Resources\UoCollection( get_centers_by_city_id( old('city_id', $patient->city_id) )))->toJson(); $defaultCenters = json_decode($defaultCenters, true); $defaultCenters = $defaultCenters['data']; } /* if(!empty(old('center_id', $appointment->center_id))) { $defaultTc = (new \App\Http\Resources\UoResource(\App\Models\Uo::find(old('center_id', $appointment->center_id))))->toJson(); $defaultTc = json_decode($defaultTc, true); } else { $defaultTc = null; } */ @endphp @error('center_id') {{ $message }} @enderror
@error('dcc_type_id') {{ $message }} @enderror
@error('appointment_date') {{ $message }} @enderror