@php $canManageBranches = app(\App\Services\Qms\QmsPermissions::class)->can( app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'admin.branches.manage' ); $canViewTeam = app(\App\Services\Qms\QmsPermissions::class)->can( app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'admin.members.view' ); @endphp
Settings / Branches @if ($canViewTeam) Team @endif
@if ($canManageBranches) Add branch @endif
@include('partials.flash') @forelse ($branches as $branch)

{{ $branch->name }}

{{ $branch->code ?? 'No code' }} · {{ $branch->departments_count }} department(s) · {{ $branch->is_active ? 'Active' : 'Inactive' }}

@if ($canManageBranches) Edit @endif
@empty

No branches yet.

@endforelse