@extends('layouts.admin') @section('title', 'Manage Centers') @section('content')
All Centers Add Center
@if(request('search') || request('verification') || request('activity')) Clear @endif
@forelse($centers as $i => $center) @empty @endforelse
# Code Location & Contact Center Owner Status Actions
{{ $centers->firstItem() + $i }} {{ $center->code }}
{{ $center->location }}
{{ $center->email ?: '—' }} | {{ $center->mobile_no ?: '—' }}
@php $owner = $center->users->first(); @endphp @if($owner)
{{ $owner->name }}
{{ $owner->email }} @else @endif
@if($center->is_verified) Verified @else Pending @endif
@if($center->is_active) Active @else Disabled @endif
@csrf @method('PATCH')
@csrf @method('DELETE')
No centers found. Add one now!
{{ $centers->links() }}
@endsection