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