@extends('layouts.master') @section('title') {{ __('dashboard') }} @endsection @section('content')
{{-- School Dashboard --}} @if (Auth::user()->hasRole('School Admin') || Auth::user()->hasRole('Teacher') || Auth::user()->school_id)

{{ __('holiday') }}

@if (count($holiday)) @foreach ($holiday as $holiday)
{{ $holiday->title }} {{ \Carbon\Carbon::createFromFormat($originalDateFormat, $holiday->date)->format('d - M') }}
@endforeach @else
{{ __('no_holiday_found') }}.
@endif

{{ __('leaves') }}

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

{{ __('student_gender') }}

@if (($boys and $girls and $total_students) == 0 || ($boys == null && $girls == null && $total_students == null))
{{ __('no_student_found') }}.
@else
@endif
{{-- Expense Graph --}} @if (Auth::user()->can('expense-create'))

{{ __('expense') }}

@endif {{-- Teacher's Today Schedule #Timetable --}} @if (Auth::user()->hasRole('Teacher'))

{{ __('today_schedule') }}

@if (count($timetables)) @foreach ($timetables as $timetable)
{{ $timetable->start_time }} - {{ $timetable->end_time }}
{{ $timetable->subject->name_with_type }}
{{ $timetable->class_section->full_name }}
@endforeach @else
{{ __('no_timetable_found') }}.
@endif
@endif {{-- Class section wise attendance --}}

{{ __('attendance') }}

@if ($class_names->isEmpty()) {!! Form::select('class_id', ['' => __('no_data_found')], null, ['class' => 'form-control form-control-sm class-section-attendance']) !!} @else {!! Form::select('class_id', $class_names, null, ['class' => 'form-control form-control-sm class-section-attendance']) !!} @endif

{{ __('exam_result') }}

{{ __('announcement') }}

{{-- @if (count($announcement)) @foreach ($announcement as $key => $row) @endforeach @else @endif
{{ __('no.') }} {{ __('title') }} {{ __('description') }}
{{ $key + 1 }} {{ $row->title }} {{ $row->description }}
{{ __('no_announcement_found') }}
--}}
{{ __('id') }} {{ __('no.') }} {{ __('title') }} {{ __('description') }}
@endif
@endsection @section('script') @if ($boys || $girls) @endif @endsection