Branch Management

Manage branch locations and settings

@can('create', App\Models\Branch::class) Add Branch @endcan
Total Branches
{{ $branches->total() }}
Active
{{ $branches->where('is_active', true)->count() }}
Inactive
{{ $branches->where('is_active', false)->count() }}
Total Users
{{ $branches->sum(function($branch) { return $branch->users()->count(); }) }}
@if(session()->has('success'))
{{ session('success') }}
@endif @if(session()->has('error'))
{{ session('error') }}
@endif
@forelse($branches as $branch) @empty @endforelse
Code @if($sortField === 'code') @if($sortDirection === 'asc') @else @endif @endif Name @if($sortField === 'name') @if($sortDirection === 'asc') @else @endif @endif Location @if($sortField === 'city') @if($sortDirection === 'asc') @else @endif @endif Manager @if($sortField === 'manager_name') @if($sortDirection === 'asc') @else @endif @endif Status Users Actions
{{ $branch->code }}
{{ $branch->name }}
@if($branch->phone)
{{ $branch->phone }}
@endif
{{ $branch->city }}@if($branch->state), {{ $branch->state }}@endif
@if($branch->address)
{{ $branch->address }}
@endif
{{ $branch->manager_name ?? 'Not assigned' }}
@if($branch->email)
{{ $branch->email }}
@endif
{{ $branch->is_active ? 'Active' : 'Inactive' }} {{ $branch->users()->count() }} users
@can('update', $branch) @endcan @can('update', $branch) @endcan @can('delete', $branch) @endcan

No branches found

Get started by creating a new branch.

@can('create', App\Models\Branch::class) @endcan
{{ $branches->links() }}