@extends('layouts.app') @section('content')
User @include('component.breadcrumb', ['items' => ['Auth', 'User', 'All Users']])
@include('component.flash')
@foreach($users as $user) @endforeach
Username Email Role Status Actions
{{$user->username}} {{$user->email}} @foreach($user->roles->sortBy('name') as $role) {{$role->name }} @endforeach @if ($user->is_active) Active @else Inactive @endif
{{ csrf_field() }} {{ method_field('DELETE') }} @include('component.sweetalert-delete', ['button' => '.btn-delete-'.$user->id, 'form' => '.form-delete-'.$user->id, 'text' => 'This item '.$user->username.' will be permanently deleted'])
@stop