@php
$districtInfo = [];
try {
$user = Auth::user()->uuids;
$mdID = \App\Models\MedicalOfficer::where(['user_id' => $user])->select('district_id')->firstOrFail()->toArray();
$districtInfo = getAuthDistrictLocation($mdID['district_id']);
} catch (\Throwable $th) {
//throw $th;
echo ''.$th->getMessage().'';
}
@endphp
{{-- @dd($districtInfo) --}}
{{ __("WELCOME BACK: "). 'DMO'}}
@foreach ($districtInfo as $item)
District: {{ $item->d_name }}
Region: {{ $item->r_name }} @endforeach
District: {{ $item->d_name }}
Region: {{ $item->r_name }} @endforeach