@extends("admin.layout.base") @extends("admin.layout.header") @section("title") Bruger - Vis @endsection @section("path") Vis Brugere / @endsection @section("content")
@if(auth()->user()->can('user.create')) CreateOpret Bruger @endif
@csrf
@if(auth()->user()->can('user.edit')) @endif @if(auth()->user()->can('user.delete')) @endif @foreach($users as $user) @if($user->resource_id !== null) @else @endif @if(auth()->user()->can('user.edit')) @endif @if(auth()->user()->can('user.delete')) @endif @endforeach
Fornavn Efternavn Email Tlf nr Rolle(r) ShowImageUpdateDelete
{{ $user->name_first }} {{ $user->name_last }} {{ $user->email }} {{ $user->phone }} @for($i = 0; $i < count($user->roles); $i++) @if(count($user->roles)-1 != $i) {{$user->roles[$i]->name}}, @else {{$user->roles[$i]->name}} @endif @endfor $user->id ]) }}">Update
$user ]) }}" class="w-100 nostyle"> @csrf @method("delete")
{{ $users->links() }} @endsection