@php $canManageBranches = app(\App\Services\Frontdesk\FrontdeskPermissions::class)->can( auth()->user() ? app(\App\Services\Frontdesk\OrganizationResolver::class)->memberFor(auth()->user(), $organization) : null, 'admin.branches.manage' ); @endphp
@if ($canManageBranches) Add branch @endif

All branches

@forelse ($branches as $branch)

{{ $branch->name }}

{{ $branch->address ?? 'No address' }} · {{ $branch->buildings_count }} building(s)

@empty

No branches yet.

@endforelse