FEATURE: add search

This commit is contained in:
Michal Kváček
2016-09-04 03:56:35 +02:00
parent 9029f14523
commit aa4161e451
8 changed files with 92 additions and 7 deletions
@@ -0,0 +1,37 @@
<div class="search-result">
@if (count($pages))
<table class="table item-list full-width content-overview table-striped table-bordered table-hover">
<tr>
<th></th>
<th>@lang('admin/contents.title')</th>
<th>@lang('admin/contents.status')</th>
<th>@lang('admin/contents.createdAt')</th>
</tr>
@foreach($pages as $page)
<tr>
<td class="text-center with-placeholder">
<a href="{{route('content.edit', ['id' => $page->id])}}">
@if(!empty($page->title_photo))
<img src="@upload($page->title_photo)" class="placeholder" alt="{{$page->title}}" />
@else
<img src="{{asset('resources/assets/admin/img/placeholder.png')}}" class="placeholder"
alt="{{$page->title}}" />
@endif
</a>
</td>
<td>
<a href="{{route('content.edit', ['id' => $page->id])}}">
{{$page->title}}
</a>
</td>
<td>{{$statuses[$page->status]}}</td>
<td>@date($page->created_at)</td>
</tr>
@endforeach
</table>
@else
<div class="alert alert-info">
@lang('admin/contents.noPagesAvailable')
</div>
@endif
</div>