users buttons
This commit is contained in:
@@ -57,9 +57,14 @@
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
<x-button class="ml-4">
|
||||
{{ __('Register') }}
|
||||
</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>
|
||||
<div class="pl-2">
|
||||
<a href="{{ route('users.index') }}" class="btn bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded-full">
|
||||
<i class="fa fa-cancel pr-2"></i>{{__('Cancel')}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -45,15 +45,15 @@
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
<!-- <button type="submit" class="btn">{{ __('Save') }}</button> -->
|
||||
<x-button class="ml-4">
|
||||
{{ __('Save') }}
|
||||
</x-button>
|
||||
<!-- <a href="{{ route('users.index') }}">
|
||||
<x-button class="ml-4">
|
||||
{{ __('Cancel') }}
|
||||
</x-button>
|
||||
</a> -->
|
||||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full">
|
||||
<i class="fa fa-save pr-2"></i>{{ __('Save') }}
|
||||
</button>
|
||||
<div class="pl-2">
|
||||
<a href="{{ route('users.index') }}" class="btn bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded-full">
|
||||
<i class="fa fa-cancel pr-2"></i>{{__('Cancel')}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
@@ -35,15 +35,16 @@
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
<a href="{{ route('users.edit',$user->id) }}">
|
||||
<x-button class="ml-4">
|
||||
{{ __('Edit user') }}
|
||||
</x-button>
|
||||
</a>
|
||||
<a href="{{ route('users.index') }}">
|
||||
<x-button class="ml-4">
|
||||
{{ __('Cancel') }}
|
||||
</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-edit pr-2"></i>{{__('Edit user')}}
|
||||
</button>
|
||||
</a>
|
||||
<div class="pl-2">
|
||||
<a href="{{ route('users.index') }}" class="btn bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded-full">
|
||||
<i class="fa fa-cancel pr-2"></i>{{__('Cancel')}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- </form> -->
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user