@extends('layouts.main') @push('title') Dashboard @endpush @section('main-section')

Dashboard

@php $role = Auth::user()->role; @endphp {{-- ===================================================== TOTAL SCHOOLS ADMIN / SUPERADMIN ONLY ====================================================== --}} @if (in_array($role, ['ADMIN', 'SUPERADMIN'])) @endif {{-- ===================================================== TOTAL TEACHERS ====================================================== --}}
@if (in_array($role, ['ADMIN', 'SUPERADMIN'])) @else @endif
Total Teachers {{ $totalTeachers }}
{{-- ===================================================== TOTAL NURSING STAFF ====================================================== --}}
@if (in_array($role, ['ADMIN', 'SUPERADMIN'])) @else @endif
Total Nursing Staff {{ $totalNursingStaff }}
{{-- pie chart scripts --}} {{-- apex chart --}} @endsection