@if ($hospitals->isNotEmpty())
# |
Name |
Hospital Info |
Action |
@foreach ($hospitals as $hospital)
{{ $loop->iteration }} |
{{ $hospital->name }} |
@if(!empty($hospital->country?->name))
- Country: {{ $hospital->country->name }}
@endif
@if(!empty($hospital->city?->name))
- City: {{ $hospital->city->name }}
@endif
@if(!empty($hospital->State?->name))
- Province: {{ $hospital->state->name }}
@endif
@if(!empty($hospital->district))
- District: {{ $hospital->district }}
@endif
@if(!empty($hospital->type))
- Type: {{ $hospital->type }}
@endif
@if(!empty($hospital->address))
- Address: {{ $hospital->address }}
@endif
|
|
@endforeach
@else
No records found.
@endif