@extends('layouts.master') @section('title') {{ __('dashboard') }} @endsection @section('content')
@if ($class_sections)

{{ __('Class Teacher') }}

@php $colors = ['bg-gradient-danger', 'bg-gradient-success', 'bg-gradient-primary', 'bg-gradient-info', 'bg-gradient-secondary', 'bg-gradient-warning']; $colorIndex = 0; @endphp @foreach ($class_sections as $class_section) @php $currentColor = $colors[$colorIndex]; $colorIndex = ($colorIndex + 1) % count($colors); @endphp
circle-image

{{ $class_section->class->name }}-{{ $class_section->section->name }} {{ $class_section->class->medium->name }} {{ $class_section->class->streams->name ?? '' }}

@endforeach
@endif
@if ($teacher)
circle-image

{{ __('total_teachers') }}

{{ $teacher }}

{{--
Increased by 60%
--}}
@endif @if ($student)
circle-image

{{ __('total_students') }}

{{ $student }}

@endif @if ($parent)
circle-image

{{ __('total_parents') }}

{{ $parent }}

@endif
@if ($attendance)

{{ __('attendance') }}



@endif @if ($leaves)

{{ __('leave') }}

@foreach ($leaves as $key => $row) @endforeach
{{ __('no.') }} {{ __('image') }} {{ __('name') }} {{ __('type') }} {{ __('date') }}
{{ $key + 1 }} profile {{ $row->leave->user->first_name ?? '' }} {{ $row->leave->user->last_name ?? '' }} {{ $row->type }} {{ date('d M', strtotime($row->date)) }}
@endif
@if (isset($teachers) && !empty($teachers))

{{ __('teacher') }}

@foreach ($teachers as $row)
profile
{{ $row->user->first_name . ' ' . $row->user->last_name }}
{{ $row->qualification }}
@endforeach
@endif @if (isset($rankers) && !empty($rankers))

{{ __('top_rankers') }}

@foreach ($rankers as $key => $row) @endforeach
{{ __('no.') }} {{ __('class') }} {{ __('name') }} {{ __('percentage') }}
{{ $key + 1 }} {{ $row->class_section->class->name }} - {{ $row->class_section->section->name }} {{ $row->class_section->class->medium->name }} {{ $row->class_section->class->streams->name ?? '' }} {{ $row->student->user->full_name }} {{ $row->max_percentage }} %
@endif @if ($boys || $girls)

{{ __('gender') }}

@endif
@if ($announcement)

{{ __('noticeboard') }}

@foreach ($announcement as $key => $row) @endforeach
{{ __('no.') }} {{ __('title') }} {{ __('description') }} {{ __('date') }}
{{ $key + 1 }} {{ $row->title }} {{ $row->description }} {{ $row->created_at->format($date_format) }}
@endif
@endsection @section('script') @if ($boys || $girls) @endif @if ($attendance) @endif @if ($leaves) @endif @endsection