IMMREX7
@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 Practice Sheet</strong></h2>
</div>
<div class="body table-responsive">
{!! Form::open(['method' => 'GET', 'action' => ['Student\ViewOnlyController@viewPracticeSet'], '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>Message</th>
<th>Attached Document</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
@foreach($psets 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 style="word-wrap: break-word;">{{$value->message}}</td>
@if(isset($value->practiceFile))
<td><a href="{{url('/student/practiceset/' . $value->idSet.'/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 -