{{ Form::open(['url' => route('admin.sections.index'),'method' => 'get']) }}
{{ Form::select('status', ['' => 'All',1 => 'Active', 0 => 'Inactive'], app('request')->query('status'), ['class' => 'form-control']) }}
{{ Form::text('keyword', app('request')->query('keyword'), ['class' => 'form-control','placeholder' => 'Keyword e.g: title']) }}
{{ Form::close() }}
# |
@php
$sorting['sort'] = "title";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Title
|
Location |
@php
$sorting['sort'] = "status";
@endphp
Status |
Created |
Action |
@if($interests->count() > 0)
@php
$i = (($interests->currentPage() - 1) * ($interests->perPage()) + 1)
@endphp
@foreach($interests as $interest)
{{$i}}. |
{{ $interest->title }}
|
{{ $interest->locations['name'] }} |
{{ $interest->status == 1 ? "Active" : "In-Active" }} |
{{ $interest->created_at->format(config('get.ADMIN_DATE_TIME_FORMAT')) }} |
@php
$queryStr['id'] = $interest->id;
$queryStr = array_merge( $queryStr , request()->query());
@endphp
|
@php
$i++;
@endphp
@endforeach
@else
Record Not Available |
@endif