{{ Form::open(['url' => route('admin.community'),'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: name, email']) }}
{{ Form::close() }}
# |
@php
$sorting['sort'] = "title";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Community |
@php
$sorting['sort'] = "description";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Description |
@php
$sorting['sort'] = "color_code";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Color Code |
@php
$sorting['sort'] = "status";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Status |
@php
$sorting['sort'] = "created_at";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Created |
@php
$sorting['sort'] = "updated_at";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Updated |
Action |
@if($communities->count() > 0)
@php
$i = (($communities->currentPage() - 1) * ($communities->perPage()) + 1)
@endphp
@foreach($communities as $community)
@php
$i++;
@endphp
@endforeach
@else
Record Not Available |
@endif