@extends('admin.layouts.layout') @section('main')
Location List @if($permission['create']) Add New Location @endif
{!! Form::open(array('url' => ('admin/'.$routePrefix),'method'=>'GET', 'enctype'=>'multipart/form-data','id'=>'userForm')) !!}
Clear
{!! Form::close() !!} @if(count($data)) @foreach($data as $key=>$val) @php($st_class = ($val->status==1)?'badge-success':'badge-danger') @php($st_name = ($val->status==1)?'Active':'Inactive') @endforeach @else @endif
Location Status Created Date Actions
{{$val->location}} {{$st_name}} {{\App\Helpers\Helper::dateConvert($val->created_at)}} @if($permission['edit']) @endif @if($permission['destroy']) {!! Form::open([ 'method' => 'DELETE', 'route' => [ $routePrefix . '.destroy', $val->id ], 'style'=>'display:inline', 'id' => 'delete-form-' . $val->id ]) !!} {!! Form::close() !!} @endif
No record found
{!! $data->render() !!}
@endsection