@extends('layouts.master') @section('title') {{ __('dashboard') }} @endsection @section('content')
{{-- School Dashboard --}} @if (Auth::user()->hasRole('School Admin') || Auth::user()->school_id)
{{-- License expire message --}} @if (Auth::user()->hasRole('School Admin')) @if ($license_expire <= ($settings['current_plan_expiry_warning_days'] ?? 7) && $subscription)
@endif
@foreach ($previous_subscriptions as $subscription) @if ($subscription->status == 3) @break @endif @if ($subscription->status == 4) @break @endif @endforeach
@endif
@if (Auth::user()->hasRole('School Admin'))
{{-- Teachers --}}
{{ __('total_teachers') }}

{{ $teacher }}

{{-- Students --}}
{{ __('total_students') }}

{{ $student }}

{{-- Guardians --}}
{{ __('Total Guardians') }}

{{ $parent }}

{{-- Class --}}
{{ __('total_classes') }}

{{ $classes_counter }}

{{-- Stream --}}
{{ __('total_streams') }}

{{ $streams }}

@endif {{-- End Counter --}}
{{-- Expense Graph --}} @if (Auth::user()->canany(['expense-create', 'expense-list']))

{{ __('expense') }}

@hasNotFeature('Expense Management')
{{ __('Purchase') . ' ' . __('Expense Management') . ' ' . __('to Continue using this functionality') }}
@endHasNotFeature @hasFeature('Expense Management')
@endHasFeature
@endif

{{ __('leaves') }}

@hasNotFeature('Staff Leave Management') @endHasNotFeature @hasFeature('Staff Leave Management') @endHasFeature
{{ __('Purchase') . ' ' . __('Staff Leave Management') . ' ' . __('to Continue using this functionality') }}

{{ __('attendance') }}

{!! Form::select('class_id', $class_names, null, [ 'class' => 'form-control form-control-sm class-section-attendance', ]) !!}

{{ __('announcement') }}

@if (!empty($announcement)) @foreach ($announcement as $key => $row) @endforeach @endif
{{ __('no.') }} {{ __('title') }} {{ __('description') }}
{{ $key + 1 }} {{ $row->title }} {{ $row->description }}

{{ __('birthday') }}

{!! Form::select( 'birthday_filter', ['today' => __('today'), 'this_month' => __('this_month'), 'next_month' => __('next_month')], 'today', ['class' => 'form-control form-control-sm filter_birthday'], ) !!}

{{ __('holiday') }}

@foreach ($holiday as $holiday) @endforeach
{{ $holiday->title }} {{ date('d - M', strtotime($holiday->date)) }}

{{ __('student_gender') }}

{{ __('exam_result') }}

{{ __('fees_details') }}

@endif {{-- End School Dashboard --}} {{-- Super Admin Dashboard --}} @if (Auth::user()->hasRole('Super Admin') || !Auth::user()->school_id)
{{ __('total_schools') }}

{{ $super_admin['total_school'] }}

{{ __('active_schools') }}

{{ $super_admin['active_schools'] }}

{{ __('inactive_schools') }}

{{ $super_admin['inactive_schools'] }}

{{ __('total_packages') }}

{{ $super_admin['total_packages'] }}

{{ __('transaction') }}

{!! Form::selectRange('year', $start_year, date('Y'), date('Y'), [ 'class' => 'form-control form-control-sm year-filter', ]) !!}

{{ __('schools') }}

@foreach ($schools as $school) @endforeach
{{ __('school') }} {{ __('admin') }}
image {{ $school->name }} {{ $school->user->full_name }}

{{ __('subscription') }} {{ __('details') }}

{{ __('staff') }} {{ __('details') }}

@foreach ($staffs as $staff) @endforeach
{{ __('name') }} {{ __('role') }} {{ __('assign_schools') }}
image {{ $staff->full_name }} {{ $staff->roles->first()->name ?? '' }} {{ $staff->school_names }}

{{ __('addon') }}

@endif
@endsection @section('script') @if (Auth::user()->school_id) @endif @if (!Auth::user()->school_id) @endif @if ($boys || $girls) @endif @endsection