@extends('layouts.master')
@section('title')
{{__('dashboard')}}
@endsection
@section('content')
@if($teacher)
{{__('total_teachers')}}
{{$teacher}}
{{--
Increased by 60%
--}}
@endif
@if($student)
{{__('total_students')}}
{{$student}}
@endif
@if($parent)
{{__('total_parents')}}
{{$parent}}
@endif
@if(isset($rankers) && !empty($rankers))
{{__('top_rankers')}}
| {{__('no.')}} |
{{__('class_name')}} |
{{__('student_name')}} |
{{__('percentage')}} |
@foreach($rankers as $key=>$row)
| {{$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}} % |
@endforeach
@endif
@if($attendance)
@endif
@if(isset($teachers) && !empty($teachers))
{{__('teacher')}}
@foreach($teachers as $row)
{{$row->user->first_name.' '.$row->user->last_name}}
{{$row->qualification}}
@endforeach
@endif
@if($boys || $girls)
@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
{{$class_section->class->name}}-{{$class_section->section->name}} {{$class_section->class->medium->name}} {{$class_section->class->streams->name ?? ''}}
@endforeach
@endif
@endcanany
@if($announcement)
{{__('noticeboard')}}
| {{__('no.')}} |
{{__('title')}} |
{{__('description')}} |
{{__('date')}} |
@foreach($announcement as $key=>$row)
| {{$key+1}} |
{{$row->title}} |
{{$row->description}} |
{{$row->created_at->format($date_format)}} |
@endforeach
@endif
{{-- @if ($class)
@endif --}}
@endsection
@section('script')
@if($boys || $girls)
@endif
@if ($attendance)
@endif
@endsection