@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)
{{ __('Kindly note that your license will expire on') }}
{{ date('F d, Y', strtotime($subscription->end_date)) }} - 11:59 PM.
{{ __('If you want to modify your upcoming plan or remove any add-ons, please ensure that these changes are made before your current license expires') }}.
{{ __('If you want to activate or deactivate students, teachers, or staff members in your upcoming plan, Please') }}
{{ __('click here') }}.
@if ($prepiad_upcoming_plan && $prepiad_upcoming_plan->package->type == 0 && !$check_payment)
@if ($paymentConfiguration && $paymentConfiguration->payment_method == 'Stripe')
{{ __('We kindly request that you make the necessary payment for the upcoming prepaid plan to avoid any interruptions in service') }}
{{ __('click_here_to_pay') }}
@else
@endif
@endif
@endif
@foreach ($previous_subscriptions as $subscription)
@if ($subscription->status == 3)
{{ __('Please make the necessary payment as your license has expired on') }}
{{ date('F d, Y', strtotime($subscription->end_date)) }}.
@break
@endif
@if ($subscription->status == 4)
{{ __('We apologize for inconvenience but your payment was not successful Please try to process the payment again') }}.
@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') }}
@foreach ($sessionYear as $session)
@if ($session->default == 1)
{{ $session->name }}
@else
{{ $session->name }}
@endif
@endforeach
@hasNotFeature('Expense Management')
{{ __('Purchase') . ' ' . __('Expense Management') . ' ' . __('to Continue using this functionality') }}
@endHasNotFeature
@hasFeature('Expense Management')
@endHasFeature
@endif
{{ __('leaves') }}
{!! Form::select(
'leave_filter',
['Today' => __('today'), 'Tomorrow' => __('tomorrow'), 'Upcoming' => __('upcoming')],
'today',
['class' => 'form-control form-control-sm filter_leaves'],
) !!}
{{ __('attendance') }}
{!! Form::select('class_id', $class_names, null, [
'class' => 'form-control form-control-sm class-section-attendance',
]) !!}
{{ __('birthday') }}
{!! Form::select(
'birthday_filter',
['today' => __('today'), 'this_month' => __('this_month'), 'next_month' => __('next_month')],
'today',
['class' => 'form-control form-control-sm filter_birthday'],
) !!}
{{ __('student_gender') }}
{{ __('exam_result') }}
@foreach ($sessionYear as $session)
@if ($session->default == 1)
{{ $session->name }}
@else
{{ $session->name }}
@endif
@endforeach
{{ __('select') . ' ' . __('exam') }}
@foreach ($exams as $exam)
{{ $exam->name }}
@endforeach
@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',
]) !!}
{{ __('subscription') }} {{ __('details') }}
{{ __('staff') }} {{ __('details') }}
@endif
@endsection
@section('script')
@if (Auth::user()->school_id)
@endif
@if (!Auth::user()->school_id)
@endif
@if ($boys || $girls)
@endif
@endsection