@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', count($class_names) > 0 ? $class_names : ['' => 'Not Data Available'], 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 }}

Read more
--}}
{{ __('id') }} {{ __('no.') }} {{ __('title') }} {{ __('description') }}

{{ __('exam_result') }}

{{ __('fees_over_due') }}

{!! Form::select('class_section_id', $class_section_names, null, [ 'class' => 'form-control form-control-sm fees-over-due-class', 'id' => 'fees-over-due-class-section' ]) !!}
@hasNotFeature('Fees Management') @endHasNotFeature @hasFeature('Fees Management') @endHasFeature
{{ __('Purchase') . ' ' . __('Fees Management') . ' ' . __('to Continue using this functionality') }}
@hasFeature('Fees Management') @endHasFeature

{{ __('fees_details') }}

{{ __('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') }}

@hasNotFeature('Holiday Management') @endHasNotFeature @hasFeature('Holiday Management') @forelse ($holiday as $holiday) @empty @endforelse @endHasFeature
{{ __('Purchase') . ' ' . __('Holiday Management') . ' ' . __('to Continue using this functionality') }}
{{ $holiday->title }} {{ \Carbon\Carbon::createFromFormat($originalDateFormat, $holiday->date)->format('d - M') }}
{{ __('No Data Available') }}

{{ __('student_gender') }}

@if (($boys and $girls and $total_students) == 0 || ($boys == null && $girls == null && $total_students == null))
{{ __('no_student_found') }}.
@else
@endif
@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'] }}

@if (($settings['database_root_user'] ?? 0) == 0 || ($settings['laravel_queue_setup'] ?? 0) == 0 || ($settings['wildcard_domain'] ?? 0) == 0 || ($settings['web_socket_setup'] ?? 0) == 0 || ($settings['notification_settings'] ?? 0) == 0)

{{ __('server_configuration') }} - {{ __('required_for_full_system_functionality') }}

    @foreach ($server_configuration as $key => $value) @if (($settings[$key] ?? 0) == 0)
  • {{ $value['description'] ?? '' }}

  • @endif @endforeach
@endif

{{ __('transaction') }}

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

{{ __('schools') }}

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

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

@if (collect($package_graph)->filter()->isNotEmpty())
@else
{{ __('no_subscription_details_available') }}
@endif

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

@if ($staffs->isNotEmpty())
@hasNotFeature('Staff Management') {{-- @endHasNotFeature @hasFeature('Staff Management') --}} @foreach ($staffs as $staff) @endforeach @endHasNotFeature
{{ __('name') }} {{ __('role') }} {{ __('assign_schools') }}
image {{ $staff->full_name }} {{ $staff->roles->first()->name ?? '' }} {{ $staff->school_names }}
@else
{{ __('no_staff_details_available') }}
@endif

{{ __('addon') }}

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