@extends('front.student.profile.master') @section('page-title')

{{ $student->name }}'s Home Work List

@endsection @section('content')

Subject Wise Home Work List

@php($sectionId = $studentClass->classInfo->section_id) @php($sl=1) @if($sectionId==1 or $sectionId==2) @foreach($classSubjects as $classSubject) @php($hws = homeWorks($studentClass->year,$studentClass->class_id,$classSubject->subject_id)) @endforeach @else @foreach($classSubjects as $classSubject) @php($status = subjectCheck($student->id,$studentClass->class_id,$classSubject->subject_id)) @if($status===true) @php($hws = homeWorks($studentClass->year,$studentClass->class_id,$classSubject->subject_id)) @endif @endforeach @endif
Sl Code Subject Name Home Works Last Date Status Action
{{ $sl++ }} {{ $classSubject->sub_code }} {{ $classSubject->subject->name }} @php($hwLoop=1) @foreach($hws as $hw) @endforeach
{{ $hw->title }} {{ dateFormat($hw->submission_date,'d-M-Y') }} @php($shw = studentHomeWork($studentClass->student_id,$hw->id)) @if(isset($shw)) Submitted @else Not Submitted @endif View
{{ $sl++ }} {{ $classSubject->sub_code }} {{ $classSubject->subject->name }} @php($hwLoop=1) @foreach($hws as $hw) @endforeach
{{ $hw->title }} {{ dateFormat($hw->submission_date,'d-M-Y') }} @php($shw = studentHomeWork($studentClass->student_id,$hw->id)) @if(isset($shw)) Submitted @else Not Submitted @endif View
@endsection