@include('admin.header')

Host information

@forelse($hosts as $host) @empty @endforelse
ID Company Name Contact Person Email Phone Trade License No Category Status Actions
{{ $host->id }} {{ $host->company_name }} {{ $host->contact_name }} {{ $host->contact_email }} {{ $host->contact_mobile }} {{ $host->trade_license_number }} @if($host->categories_offered) @php $categories = is_array($host->categories_offered) ? $host->categories_offered : json_decode($host->categories_offered, true); @endphp @if(is_array($categories)) {{ implode(', ', $categories) }} @else {{ $host->categories_offered }} @endif @else N/A @endif @switch($host->status) @case('approved') Approved @break @case('rejected') Rejected @break @case('suspended') Suspended @break @default Pending @endswitch
@if($host->status !== 'approved') @endif @if($host->status !== 'suspended') @endif
No hosts found
@include('admin.footer')