@extends('admin.layout') @section('content')
@if($data) @foreach($data as $d) @endforeach
name email Role Actions Delete
{{$d->name}} {{$d->email}} @if($d->userrole){{$d->userrole->name}}@endif {{ Form::open(['method' => 'DELETE', 'action'=>['Admin\UsersController@destroy', $d->id]]) }} {{ Form::hidden('id', $d->id) }} {{ Form::submit('delete', ['class' => 'mt-1 btn btn-primary']) }} {{ Form::close() }}
@else No Data Avalible @endif {{$data->links()}}
@endsection