Here is the view i need to fulfill.
So that i need to full table data and in under to that other details need to be fill once user fill it. So here is the view for that index.blade.php
<table class="table table-bordered">
<thead>
<th>Name</th>
<th>Data</th>
</thead>
<tbody>
<tr>
<td>Date</td>
<td></td>
</tr>
<tr>
<td>Time</td>
<td></td>
</tr>
<tr>
<td>Venue</td>
<td></td>
</tr>
</tbody>
</table>
<table class="table table-striped">
<thead>
<th>Trainee Programe ID</th>
<th>Presenter Name</th>
<th>Division</th>
<th>Date</th>
</thead>
<tbody>
@foreach($items as $item)
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
@endforeach
</tbody>
</table>
So here is the error i'm getting.
So this is my controller index function.
public function index()
{
$items = trainingprogramedetails::all();
return view('programesession.index',compact('items'));
}
So can anyone suggest me to solve this error? Thank you.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire