Manage State
{{ Form::open( array('url' => action('StateController@searchState'), 'method'=>'post', 'id' => 'searchForm') ) }}
{{ Form::close() }}
{{-- START ALERT BLOCK --}}
@if(Session::has('successMessage'))
{{ Form::submit('Search', ['id' => 'searchBtn', 'class' => 'btn btn-primary']) }}
+
{!! html_entity_decode(session('successMessage')) !!}
@endif
@if(Session::has('dangerMessage') || count($errors))
{!! html_entity_decode(session('dangerMessage')) !!}
{{ $errors->first() }}
@endif
{{-- END ALERT BLOCK --}}
ID. | State Long | State Short | Header Image | Thumb Image | Slogan | Length | Active |
---|---|---|---|---|---|---|---|
{{ ++$n }} | {{ $state->state_long or 'NA' }} | {{ $state->state_short or 'NA' }} |
@if(is_null($state->header_image))
{{ 'NA' }}
@else
|
@if(is_null($state->thumb_image))
{{ 'NA' }}
@else
|
{{ $state->slogan or 'NA' }} | {{ $state->length or 'NA' }} | {!! html_entity_decode(link_to_route('admin-del-state', '', [$state->id], ['onclick' => 'return checkDelete()', 'title' => 'Delete'])) !!} @if($state->status == 1) {!! html_entity_decode(link_to_route('admin-active-state', '', [$state->id], [ 'onclick' => 'return checkInActive()', 'title' => 'Activate'])) !!} @elseif($state->status == 0) {!! html_entity_decode(link_to_route('admin-inactive-state', '', [$state->id], [ 'onclick' => 'return checkActive()', 'title' => 'Deactivate'])) !!} @endif |
No Records Found. |