@extends('layouts.master') @section('title') {{__('dashboard')}} @endsection @section('content')
@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(isset($rankers) && !empty($rankers))

{{__('top_rankers')}}

@foreach($rankers as $key=>$row) @endforeach
{{__('no.')}} {{__('class_name')}} {{__('student_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->first_name}} {{$row->student->user->last_name}} {{$row->max_percentage}} %
@endif @if($attendance)

{{__('attendance')}}



@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($boys || $girls)

{{__('gender')}}

@endif
@canany(['class-teacher'])
@if($class_sections)

{{__('Class Teachers')}}

@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
@endcanany @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 {{-- @if ($class) @endif --}}
@endsection @section('script') @if($boys || $girls) @endif @if ($attendance) @endif @endsection