@foreach($users as $user) @endforeach
Name Email Active
{!! $user->name !!} {!! $user->email !!} @if($user->state == PilotState::ACTIVE) @elseif($user->state == PilotState::PENDING) @else @endif {!! PilotState::label($user->state) !!} {!! Form::open(['route' => ['admin.users.destroy', $user->id], 'method' => 'delete']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')"]) !!} {!! Form::close() !!}