Branches Management
@if (session('success'))
{{ session('success') }}
@endif

All Branches

Showing {{ $branches->count() }} branches

Create Branch

Branches List

@php $parents = $branches->whereNull('parent_id'); $children = $branches->whereNotNull('parent_id'); @endphp @forelse($parents as $branch) @foreach ($children->where('parent_id', $branch->id) as $child) @endforeach @empty @endforelse
Name Parent Children Created Actions
{{ $branch->name }}
— {{ $children->where('parent_id', $branch->id)->count() }} sub-branches
{{ $branch->created_at->format('M j, Y') }}
{{ $branch->created_at->diffForHumans() }}

No branches found

Get started by creating your first branch.

Create Branch