@extends('backend.layouts.grid') @section('title', __('Class Homework')) @section('link', route('admin.homework.create')) @section('content') @if(count($assignmentList) > 0)
@php $count=0; @endphp @foreach ($assignmentList as $assignment) @php $count++; @endphp @if($assignment->homework_type == 'file') @elseif($assignment->homework_type == 'image') @else @endif @endforeach
{{ __('#') }} {{ __('Campus') }} {{ __('Shift') }} {{ __('Class') }} {{ __('Section') }} {{ __('Student') }} {{ __('Title') }} {{ __('Assignment') }} {{ __('Created Date') }} {{ __('Action') }}
{{ $count }} {{ $assignment->campus }} {{ $assignment->shift }} {{ $assignment->class_id }} @if($assignment->section == 0) {{ 'All' }} @else {{ studentSection($assignment->section) }} @endif {{ ($assignment->student_id == 0)?"All":$assignment->student_id }} {{ $assignment->title }} {!!shortertext($assignment->assignment, 70)!!}{{ vDate($assignment->created_at) }}
@else @include('backend.includes.empty') @endif @endsection