Skip to content

Commit 53194e5

Browse files
authored
Create search.blade.php
1 parent a5a547e commit 53194e5

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@extends('layouts.app')
2+
3+
4+
@section('content')
5+
6+
<div class="container">
7+
@if(count($details) > 0)
8+
<p> The Search results for your query <b> {{ $query }} </b> are :</p>
9+
<h2>Task details</h2>
10+
<table class="table table-striped">
11+
<thead>
12+
<tr>
13+
<th>Title</th>
14+
<th>Created_at</th>
15+
<th>Category</th>
16+
<th>Start_Date</th>
17+
<th>End_Date</th>
18+
</tr>
19+
</thead>
20+
<tbody>
21+
@foreach($details as $task)
22+
<tr>
23+
<td>{{$task->title}}</td>
24+
<td>{{$task->create_at}}</td>
25+
<td>{{$task->category}}</td>
26+
<td>{{$task->start_date}}</td>
27+
<td>{{$task->end_date}}</td>
28+
</tr>
29+
@endforeach
30+
</tbody>
31+
</table>
32+
@else
33+
No results found
34+
@endif
35+
</div>
36+
37+
38+
39+
@endsection

0 commit comments

Comments
 (0)