Branches

@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif {{-- Create Branch Modal --}}

Add Branch

@csrf

Used to generate member IDs (e.g. MAIN-0001)

{{-- Edit Branch Modal --}}

Edit Branch

{{-- Branch cards --}} @if($branches->isEmpty())

No branches yet

Click "Add Branch" to create your first location.

@else
@foreach($branches as $branch)
{{ strtoupper(substr($branch->name, 0, 1)) }}

{{ $branch->name }}

{{ $branch->code }}

{{ $branch->is_active ? 'Active' : 'Inactive' }}
@if($branch->city || $branch->state)
{{ collect([$branch->city, $branch->state])->filter()->join(', ') }}
@endif @if($branch->phone)
{{ $branch->phone }}
@endif @if($branch->email)
{{ $branch->email }}
@endif @if($branch->capacity)
Capacity: {{ $branch->capacity }}
@endif
{{ $branch->staff_count ?? 0 }} staff
@if($branch->is_active)
@csrf
@else @endif
@endforeach
{{ $branches->links() }}
@endif