FEATURE: add search
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user