@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 }} {{ date('d - M',strtotime($holiday->date)) }}
@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') }}

{{-- Expense Graph --}} @if (Auth::user()->can('expense-create'))

{{ __('expense') }}

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

{{ __('today_schedule') }}

@foreach ($timetables as $timetable)
{{ $timetable->start_time }} - {{ $timetable->end_time }}
{{ $timetable->subject->name_with_type }}
{{ $timetable->class_section->full_name }}
@endforeach
@endif {{-- Class section wise attendance --}}

{{ __('attendance') }}

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

{{ __('exam_result') }}

{{ __('announcement') }}

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