Skip to content

Commit 4901253

Browse files
committed
Updated edit button and message display
1 parent 9ee11ad commit 4901253

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

resources/views/admin/permission/index.blade.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
@endcan
1111

1212
<div class="py-2">
13-
<x-admin.message />
1413
<div class="min-w-full border-b border-gray-200 shadow overflow-x-auto">
1514
<x-admin.grid.search action="{{ route('permission.index') }}" />
1615
<x-admin.grid.table>
@@ -39,15 +38,15 @@
3938
<form action="{{ route('permission.destroy', $permission->id) }}" method="POST">
4039
<div class="flex">
4140
@can('permission edit')
42-
<a href="{{route('permission.edit', $permission->id)}}" class="px-4 py-2 text-white mr-4 bg-blue-600">
41+
<a href="{{route('permission.edit', $permission->id)}}" class="inline-flex items-center px-4 py-2 mr-4 bg-blue-500 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-blue-600 active:bg-blue-700 focus:outline-none focus:border-blue-700 focus:ring ring-blue-300 disabled:opacity-25 transition ease-in-out duration-150">
4342
{{ __('Edit') }}
4443
</a>
4544
@endcan
4645

4746
@can('permission delete')
4847
@csrf
4948
@method('DELETE')
50-
<button class="px-4 py-2 text-white bg-red-600" onclick="return confirm('{{ __('Are you sure you want to delete?') }}')">
49+
<button class="inline-flex items-center px-4 py-2 bg-red-500 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-600 active:bg-red-700 focus:outline-none focus:border-red-700 focus:ring ring-red-300 disabled:opacity-25 transition ease-in-out duration-150" onclick="return confirm('{{ __('Are you sure you want to delete?') }}')">
5150
{{ __('Delete') }}
5251
</button>
5352
@endcan

resources/views/admin/role/index.blade.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
@endcan
1111

1212
<div class="py-2">
13-
<x-admin.message />
1413
<div class="min-w-full border-b border-gray-200 shadow overflow-x-auto">
1514
<x-admin.grid.search action="{{ route('role.index') }}" />
1615
<x-admin.grid.table>
@@ -39,15 +38,15 @@
3938
<form action="{{ route('role.destroy', $role->id) }}" method="POST">
4039
<div class="flex">
4140
@can('role edit')
42-
<a href="{{route('role.edit', $role->id)}}" class="px-4 py-2 text-white mr-4 bg-blue-600">
41+
<a href="{{route('role.edit', $role->id)}}" class="inline-flex items-center px-4 py-2 mr-4 bg-blue-500 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-blue-600 active:bg-blue-700 focus:outline-none focus:border-blue-700 focus:ring ring-blue-300 disabled:opacity-25 transition ease-in-out duration-150">
4342
{{ __('Edit') }}
4443
</a>
4544
@endcan
4645

4746
@can('role delete')
4847
@csrf
4948
@method('DELETE')
50-
<button class="px-4 py-2 text-white bg-red-600" onclick="return confirm('{{ __('Are you sure you want to delete?') }}')">
49+
<button class="inline-flex items-center px-4 py-2 bg-red-500 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-600 active:bg-red-700 focus:outline-none focus:border-red-700 focus:ring ring-red-300 disabled:opacity-25 transition ease-in-out duration-150" onclick="return confirm('{{ __('Are you sure you want to delete?') }}')">
5150
{{ __('Delete') }}
5251
</button>
5352
@endcan

resources/views/admin/user/index.blade.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
@endcan
1111

1212
<div class="py-2">
13-
<x-admin.message />
1413
<div class="min-w-full border-b border-gray-200 shadow overflow-x-auto">
1514
<x-admin.grid.search action="{{ route('user.index') }}" />
1615
<x-admin.grid.table>
@@ -47,15 +46,15 @@
4746
<form action="{{ route('user.destroy', $user->id) }}" method="POST">
4847
<div class="flex">
4948
@can('user edit')
50-
<a href="{{route('user.edit', $user->id)}}" class="px-4 py-2 text-white mr-4 bg-blue-600">
49+
<a href="{{route('user.edit', $user->id)}}" class="inline-flex items-center px-4 py-2 mr-4 bg-blue-500 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-blue-600 active:bg-blue-700 focus:outline-none focus:border-blue-700 focus:ring ring-blue-300 disabled:opacity-25 transition ease-in-out duration-150">
5150
{{ __('Edit') }}
5251
</a>
5352
@endcan
5453

5554
@can('user delete')
5655
@csrf
5756
@method('DELETE')
58-
<button class="px-4 py-2 text-white bg-red-600" onclick="return confirm('{{ __('Are you sure you want to delete?') }}')">
57+
<button class="inline-flex items-center px-4 py-2 bg-red-500 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-600 active:bg-red-700 focus:outline-none focus:border-red-700 focus:ring ring-red-300 disabled:opacity-25 transition ease-in-out duration-150" onclick="return confirm('{{ __('Are you sure you want to delete?') }}')">
5958
{{ __('Delete') }}
6059
</button>
6160
@endcan
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@if(session()->has('message'))
2-
<div class="mb-8 text-green-400 font-bold">
3-
{{ session()->get('message') }}
2+
<div class="p-4 mb-4 text-sm text-green-700 bg-green-100 rounded-lg dark:bg-green-200 dark:text-green-800" role="alert">
3+
<span class="font-medium">
4+
{{ session()->get('message') }}
5+
</span>
46
</div>
57
@endif

resources/views/components/admin/wrapper.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<div class="py-12">
99
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
10+
<x-admin.message />
1011
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
1112
<div class="p-6 bg-white border-b border-gray-200">
1213
<div class="flex flex-col">

0 commit comments

Comments
 (0)