|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
{{-- resources/views/livewire/permission-manager.blade.php --}} |
|
|
|
|
{{-- resources/views/permission/manager.blade.php --}} |
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-12"> |
|
|
|
@ -13,7 +13,7 @@ |
|
|
|
|
|
|
|
|
|
{{-- 1. Dropdown chọn số bản ghi --}} |
|
|
|
|
<div class="me-2"> |
|
|
|
|
<select wire:model="perPage" class="form-select form-select-sm" |
|
|
|
|
<select wire:model="perPage" wire:change="resetPage" class="form-select form-select-sm" |
|
|
|
|
style="width: 70px; display:inline-block;"> |
|
|
|
|
@foreach ($perPageOptions as $opt) |
|
|
|
|
<option value="{{ $opt }}">{{ $opt }}</option> |
|
|
|
@ -74,10 +74,10 @@ |
|
|
|
|
</button> |
|
|
|
|
<button x-data |
|
|
|
|
@click.prevent=" |
|
|
|
|
if (confirm('Bạn có chắc chắn muốn xóa permission này?')) { |
|
|
|
|
$wire.delete({{ $p->id }}) |
|
|
|
|
} |
|
|
|
|
" |
|
|
|
|
if (confirm('Bạn có chắc chắn muốn xóa permission này?')) { |
|
|
|
|
$wire.delete({{ $p->id }}) |
|
|
|
|
} |
|
|
|
|
" |
|
|
|
|
class="btn btn-sm btn-danger"> |
|
|
|
|
Delete |
|
|
|
|
</button> |
|
|
|
@ -119,10 +119,10 @@ |
|
|
|
|
</button> |
|
|
|
|
<button type="button" |
|
|
|
|
@click.prevent=" |
|
|
|
|
if (confirm('Bạn có chắc chắn muốn {{ $editingId ? 'cập nhật' : 'tạo' }} permission này?')) { |
|
|
|
|
$wire.save() |
|
|
|
|
} |
|
|
|
|
" |
|
|
|
|
if (confirm('Bạn có chắc chắn muốn {{ $editingId ? 'cập nhật' : 'tạo' }} permission này?')) { |
|
|
|
|
$wire.save() |
|
|
|
|
} |
|
|
|
|
" |
|
|
|
|
class="btn btn-info btn-sm"> |
|
|
|
|
{{ $editingId ? 'Update' : 'Create' }} |
|
|
|
|
</button> |
|
|
|
|