@extends('store.layout.main') @section('title', 'Branches') @section('page-header') @endsection @section('main-container')

All Branches

@if($storeRole === 'business_owner') @endif
@forelse($branches as $branch) @empty @endforelse
Branch Name Manager Niches Status Actions
{{ $branch->name }}
@if($currentStore->id === $branch->id) Current @endif
@php $mgr = $branch->managers->first(); @endphp @if($mgr)
{{ $mgr->name }}
{{ $mgr->email }}
@else @endif
@forelse($branch->niches as $niche) {{ $niche->name }} @empty Not set @endforelse
@if($branch->is_active) Active @else Inactive @endif
@if($currentStore->id !== $branch->id && $branch->is_active)
@csrf
@endif @if($storeRole === 'business_owner')
@csrf
@endif
No branches found.
@if($availableNiches->isEmpty())
No niches available. Your business does not have an active subscription package yet. Contact your administrator to assign a package.
@endif {{-- Add Branch Modal --}} @if($storeRole === 'business_owner') {{-- Edit Branch Modal --}} @endif @endsection