@extends('layouts.app') @section('title', '| Users') @section('content')
Name | Date/Time Added | User Roles | Operations | |
---|---|---|---|---|
{{ $user->name }} | {{ $user->email }} | {{ $user->created_at->format('F d, Y h:ia') }} | {{ $user->roles()->pluck('name')->implode(' ') }} | {{-- Retrieve array of roles associated to a user and convert to string --}}Edit {!! Form::open(['method' => 'DELETE', 'route' => ['users.destroy', $user->id] ]) !!} {!! Form::submit('Delete', ['class' => 'btn btn-sm btn-danger']) !!} {!! Form::close() !!} |