37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
@extends('backend.template')
|
|
@section('content')
|
|
<div class='card'>
|
|
<div class='card-header d-flex justify-content-between align-items-center'>
|
|
<h2><?php echo label('View Details'); ?></h2>
|
|
<?php createButton('btn-primary btn-cancel', '', 'Back to List', route('options.index')); ?>
|
|
</div>
|
|
<div class='card-body'>
|
|
<p><b>Students Name : </b> <span>{!! getFieldData('tbl_students', 'name', 'student_id', $student_id) !!}</span></p>
|
|
</div>
|
|
<div class='card-body'>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 5%;">S.N.</th>
|
|
<th style="width: 20%;">Programs</th>
|
|
<th>Advice</th>
|
|
<th>Description</th>
|
|
<!-- Add more table headers as needed -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php $serialNumber = 1; @endphp
|
|
@foreach ($data as $option)
|
|
<tr>
|
|
<td>{{ $serialNumber++ }}</td>
|
|
<td style="width: 30%;">{{ getFieldData('tbl_programs', 'title', 'program_id', $option->programs_id) }}</td>
|
|
<td>{{ $option->advice }}</td>
|
|
<td>{{ $option->description }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@endsection
|