@extends('layouts.app') @section('title', 'Branches') @section('content')

Branches

Manage locations for {{ $hotel->name }}

All Branches

@if($canAddBranch) Add Branch @else Branch limit reached ({{ $hotel->branches()->count() }} / {{ $hotel->maxBranches() ?: '∞' }}) @endif

@if($hotel->maxBranches() > 0)

Plan limit: {{ $hotel->branches()->count() }} of {{ $hotel->maxBranches() }} branches used.

@endif
@forelse($branches as $branch) @empty @endforelse
# Branch Email Phone City Status HQ Actions
{{ $branches->firstItem() + $loop->index }} {{ $branch->name }} @if($branch->address)
{{ $branch->address }} @endif
{{ $branch->email ?? '—' }} {{ $branch->phone ?? '—' }} {{ $branch->city ?? '—' }} @if($branch->isActive()) Active @else Inactive @endif @if($branch->is_headquarters) HQ @else — @endif Edit
@csrf @method('DELETE')
No branches yet. Add your first branch.
{{ $branches->links() }}
@endsection