@extends('teacher.teacher_dashboard') @section('admin')
{{-- Breadcrumb --}}
{{-- Filter Box --}}
Filter
{{-- Add Button --}} {{-- Success Message --}} @if(session('success'))
{{ session('success') }}
@endif {{-- List Box --}}
Assigned Homework List
@forelse($homeworks as $key => $hw) @empty @endforelse
S.No Title Class Section Subject Due Date Actions
{{ $homeworks->firstItem() + $key }} {{ $hw->title }} {{ $hw->class->name ?? '-' }} {{ $hw->section->name ?? '-' }} {{ $hw->subject->name ?? '-' }} {{ \Carbon\Carbon::parse($hw->due_date)->format('d M Y') }}
@csrf @method('DELETE')
No homework found.
{{-- Pagination + Info --}}

@if($homeworks->total() > 0) Page {{ $homeworks->currentPage() }} of {{ $homeworks->lastPage() }}, showing {{ $homeworks->count() }} records out of {{ $homeworks->total() }} total, starting on record {{ $homeworks->firstItem() }}, ending on {{ $homeworks->lastItem() }} @else Showing 0 records @endif

{{ $homeworks->appends(request()->query())->links() }}
@endsection @section('customjs') {{-- Optional custom JS here --}} @endsection