@extends('layouts.admin') {{ config('app.name', 'Laravel') }} | Co-ordinator | Home Work @section('main-content')
@if (Session::has('success')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Records / Home Work

@php $yearRange = session('year_range'); // Example: "2023-2024" $currentDate = now(); [$startYear, $endYear] = explode('-', $yearRange); $startDate = \Carbon\Carbon::create($startYear, 4, 1, 0, 0, 0); // April 1st $endDate = \Carbon\Carbon::create($endYear, 3, 31, 23, 59, 59); // March 31st @endphp @if ($currentDate->between($startDate, $endDate)) @endif
Home Work List
{{-- --}} @if ($currentDate->between($startDate, $endDate)) @endif @if (isset($homework) && count($homework) != 0) @foreach ($homework as $key => $value) @endforeach @else @endif
S.No Class Title Work Date StatusFileActions
{{ $key + 1 }} @if (isset($value->classPackageInformation)) {{ $value->classPackageInformation->class_name }} @endif

{{ $value->title }}

{{ dateformatter($value->created_at) }} {{ $value->is_approved === 1 ? 'Approved' : ($value->is_approved === 0 ? 'Disapproved' : 'Pending') }} @if ($currentDate->between($startDate, $endDate)) @endif
{{ 'No record found' }}
@endsection