@php $isModal = isset($relationColumn) && array_key_exists('column', $relationColumn) && $relationColumn['column'] === 'branch_id'; @endphp @if (!$isModal) @include('livewire.forms.branch-form') @endif
@if (!$isModal) @can('viewAny', \App\Models\Branch::class) @unless ($this->selectedBranch)
@php $canCreateBranch = auth()->user()->can('create', \App\Models\Branch::class); @endphp @foreach ($branches as $branch) @endforeach @if ($canCreateBranch) @endif
@endunless @endcan @endif