IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/students/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/students/homework.blade.php

@extends('students.student_layout')
@section('content')
<div class="row clearfix">

<!--</div>
<div class="row clearfix">-->
    <div class="col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong>List Of Homeworks</strong></h2>
            </div>
            <div class="body table-responsive">
                {!! Form::open(['method' => 'GET',  'action' => ['Student\ViewOnlyController@viewHomework'], 'class' => 'form-horizontal']) !!}
                <div class="row clearfix">
                    <div class="col-sm-3 form-control-label">
                        <label for="classname">From Date</label>
                    </div>
                    <div class="col-sm-5">
                        <div class="form-group">
                           {!! Form::text('fromDate',null,['class' => 'form-control datepicker']) !!}
                        </div>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-sm-3 form-control-label">
                        <label for="classname">To Date</label>
                    </div>
                    <div class="col-sm-5">
                        <div class="form-group">
                           {!! Form::text('toDate',null,['class' => 'form-control datepicker']) !!}
                        </div>
                    </div>
                     <div class="col-sm-2">
                        {!! Form::submit('Search',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!}
                        {!! Form::close() !!} 
                    </div>
                </div>
                <table class="table table-bordered table-striped table-hover js-basic-example dataTable">
                    <thead>
                        <tr>
                            <th>S. No.</th>
                            <th>Date</th>
                            <th>Class</th>
                            <th>Section</th>
                            <th>EC No.</th>
                            <th>Subject</th>
                            <th>Homework</th>
                            <th>Homework Doc</th>
                            <!--<th>Action</th>-->
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i = 1; ?>
                        @foreach($homeworks as $value)
                        <tr>
                            <th scope="row">{{$i}}</th>
                            <td>{{$value->created_at->format('d-m-Y')}}</td>
                            <td>{{$value->classM->className}}</td>
                            <td>{{$value->section->sectionName}}</td>
                            <td>{{$value->student->ecNo or 'All'}}</td>
                            <td>{{$value->subject}}</td>
                            <td><span style="word-wrap: break-word;">{{$value->homework}}</span></td>
                            @if(isset($value->homeworkFile))
                            <td><a href="{{url('/student/homeworks/' . $value->idHomework.'/viewdoc')}}" target="_blank">View</a></td>
                            @else
                            <td>No File Attached</td>
                            @endif
                        </tr>
                        <?php $i++; ?>
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
@stop

Copyright © 2021 - 2025 IMMREX7