@extends('layouts.app') @section('title', 'Branch Details') @section('content') {{-- Page Header --}}

Branch Details

View complete branch information

@can('branch.edit') Edit @endcan Back to list
{{-- Branch Information --}}
Branch Information
Branch Name {{ $branch->name }}
Branch Code {{ $branch->code }}
Address {{ $branch->address ?? '—' }}
Phone {{ $branch->phone ?? '—' }}
Email {{ $branch->email ?? '—' }}
Branch Manager {{ $branch->manager?->name ?? '—' }}
Status @if ($branch->status === 'active') Active @else Inactive @endif
{{-- Statistics --}}
{{-- Agents List --}}
Agents in this Branch
@forelse ($branch->agents as $agent)
{{ $agent->name }}
{{ $agent->phone ?? 'No phone number' }}
Agent
@empty

No agents in this branch yet.

@endforelse
@endsection