Add loading Permission

master
sundayenglish 4 weeks ago
parent 30e940aaf8
commit eb88911dfc
  1. 2
      resources/views/auth/login.blade.php
  2. 20
      resources/views/components/permission/manager.blade.php

@ -40,7 +40,7 @@
{{-- Submit --}}
<div class="d-grid">
<button type="submit" class="btn btn-primary">
<button type="submit" class="btn btn-info">
Đăng nhập
</button>
</div>

@ -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>

Loading…
Cancel
Save