@php $configData = Helper::appClasses(); @endphp @extends('layouts/layoutMaster') @section('title', 'Roles') @section('vendor-style') @endsection @section('vendor-script') @endsection @section('page-script') {{-- --}} @endsection @section('content')
@if($roles->count() > 0) @foreach($roles as $role) @php $userCount = $role->users->count(); $displayName = Str::title($role->name); $totalCount = $role->id === 3 ? $branchCount : $userCount; @endphp
Total {{ $totalCount }} {{ Str::plural($displayName, $totalCount) }}
@if($role->id !== 3)
    @foreach($role->users->take(5) as $user)
  • Avatar
  • @endforeach
@endif

{{ $role->name }}

Edit Role
@endforeach
Image

Add role, if it does not exist

@else
No roles found.
Image

Add role, if it does not exist

@endif
@include('_partials/_modals/modal-add-role') {{-- Edit Role Modal --}} @endsection