{{ $branch->name }}

Admin Cabang

{{ $branch->users->count() }}

Total Santri

{{ $branch->students->count() }}

Total Guru

{{ $branch->teachers->count() }}

Informasi Cabang

Alamat {{ $branch->address ?: '-' }}
Telepon {{ $branch->phone ?: '-' }}

Periode Aktif

@if ($branch->periods->where('is_active', true)->isNotEmpty()) @php $activePeriod = $branch->periods->where('is_active', true)->first(); @endphp

{{ $activePeriod->name }}

{{ $activePeriod->academic_year }} - {{ $activePeriod->semester }}

@else

Belum ada periode aktif.

@endif

Kelompok

@if ($branch->groups->isNotEmpty())
@foreach ($branch->groups as $group) @endforeach
Nama Jumlah Santri
{{ $group->name }} {{ $group->students->count() }}
@else

Belum ada kelompok.

@endif