@extends('layouts.app') @section('title', 'Dashboard') @section('headSource') @endsection @section('content')

Dashboard

Welcome {{Auth::user()->name}},

@if(Auth::user()->role=='SuperAdmin')

Super Admins

{{$superAdminCount ?? 0}}

Coordinators

{{$coordinatorCount ?? 0}}

@endif @if(Auth::user()->role == 'SuperAdmin' || Auth::user()->role == 'Coordinator' || Auth::user()->role == 'Executive') @if(Auth::user()->role != 'Executive')

Executives

{{$executiveCount ?? 0}}

@endif

Managers

{{$managerCount ?? 0}}

@endif @if(Auth::user()->role!='Admin')

Total Admins

{{$adminCount ?? 0}}

@endif

Total Staffs

{{$staffCount ?? 0}}

Total Clients

{{$clientCount ?? 0}}

@if(Auth::user()->role=='SuperAdmin')

Assigned Clients

{{$assignedClientsCount ?? 0}}

{{$dataSheetCount ?? 0}}

Total Data Sheets

{{$submitSheetCount ?? 0}}

Total Submit Sheets

{{$todaySubmitSheetCount ?? 0}}

Today Total Submit Sheets

@endif @if(Auth::user()->role=='SuperAdmin' || Auth::user()->role=='Coordinator' || Auth::user()->role=='Executive')

Last 7 days total submit sheets

@endif @if(Auth::user()->role=='SuperAdmin')

Last 7 days which staff submit how much sheets

@foreach($last7DaysStaff as $staff) @endforeach
Sr Name Email Total Sheet Submits Action
{{$loop->iteration}} {{$staff->name}} {{$staff->email}} {{$staff->sheetCount}}
@endif
@endsection @section('footerSource') @endsection