@extends('home_layout.master_sidebar')
@section('page_styles')
@stop
@section('breadcrumbs')
@include('home_layout.breadcrumb', [
'title' => 'Groups',
'breadcrumbs' => [
['title' => 'Home', 'link' => route('home.index')],
['title' => 'Groups', 'link' => route('groups.index')]
]
])
@stop
@section('content')
@foreach($groups as $group)
{{ $group->status ? 'Active' : 'Inactive' }}
{{ $group->name }}
{{ $group->description }}
Region: {{ $group->region }}
Sub Region: {{ $group->sub_region }}
@php
$users = $group->users;
$userCount = $users->count();
$maxAvatars = 4;
$shownUsers = $users->take($maxAvatars);
@endphp
@foreach($shownUsers as $user)
 }})
@endforeach
@if($userCount > $maxAvatars)
+{{ $userCount - $maxAvatars }}
@endif
@endforeach
@stop
@section('page_modals')
@stop
@section('page_scripts')
@stop