users buttons
This commit is contained in:
@@ -11,10 +11,12 @@
|
||||
<div class="p-6 bg-white border-b border-gray-200">
|
||||
|
||||
<a href="{{ route('users.create')}}">
|
||||
<x-button class="m-2">{{__('Create user')}}</x-button>
|
||||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full">
|
||||
<i class="fa fa-add pr-2"></i>{{__('Create user')}}
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<div align="center">
|
||||
<div align="center" class="pt-4">
|
||||
<table class="table table-sm border-b border-gray-200">
|
||||
<tr class="border border-gray-200">
|
||||
<th class="p-2 border border-gray-200">
|
||||
@@ -32,12 +34,23 @@
|
||||
</tr>
|
||||
@foreach ( $users as $user)
|
||||
<tr class="border border-gray-200">
|
||||
<td class="p-2 border border-gray-200"><a href="{{ route('users.show',$user->id)}}" class="underline">{{ $user->username }}</a></td>
|
||||
<td class="p-2 border border-gray-200">{{ $user->username }}</td>
|
||||
<td class="p-2 border border-gray-200">{{ $user->name }}</td>
|
||||
<td class="p-2 border border-gray-200">{{ $user->email }}</td>
|
||||
<td class="p-2 border border-gray-200"> </td>
|
||||
<td class="p-2 border border-gray-200">
|
||||
<div class="text-center">
|
||||
<a href="{{ route('users.show',$user->id) }}">
|
||||
<i class="fa fa-eye text-green-500 hover:text-green-700 px-2 text-lg"></i>
|
||||
</a>
|
||||
<a href="{{ route('users.edit',$user->id) }}">
|
||||
<i class="fa fa-edit text-blue-500 hover:text-blue-700 px-2 text-lg"></i>
|
||||
</a>
|
||||
<a href="{{ route('users.destroy',$user->id) }}">
|
||||
<i class="fa fa-trash text-red-500 hover:text-red-700 px-2 text-lg"></i>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
@@ -45,4 +58,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
</x-app-layout>
|
||||
Reference in New Issue
Block a user