Dashboard Statistics @php $user = auth()->user(); $role = $user->roles->pluck('name')[0]; @endphp
Total Applications

New Application

Approved

Pending

Rejected

@if ($role == 'Ward' || $role == 'Super Admin')

Ward Count

Ward Approved

Ward Rejected

@endif @if ($role == 'Ward' || $role == 'Traffic' || $role == 'Super Admin')

Traffic Count

Traffic Approved

Traffic Rejected

@endif
@if ($role == 'Ward' || $role == 'Police' || $role == 'Super Admin')

Police Count

Police Approved

Police Rejected

@endif @if ($role == 'Ward' || $role == 'Fire' || $role == 'Super Admin')

Fire Count

Fire Approved

Fire Rejected

@endif @if ($role == 'Ward' || $role == 'Malmatta' || $role == 'Super Admin')

Malmatta Count

Malmatta Approved

Malmatta Rejected

@endif @if ($role == 'Ward' || $role == 'Cidco' || $role == 'Super Admin')

Cidco Count

Cidco Approved

Cidco Rejected

@endif @push('scripts') @endpush