@extends('layouts.app')
@section('content')
user index with view
| # |
name |
email |
rolse |
control |
@foreach ($users as $item)
| {{ $item->id }} |
{{ $item->name }} |
{{ $item->email }} |
{{ implode(' - ',$item->roles()->get()->pluck('name')->toArray()) }} |
@can('edit-user')
@endcan
|
@endforeach
@endsection