merge: integrate Spatie RBAC Super Admin with Docker, Unit Support, and P2H features
This commit is contained in:
@@ -35,11 +35,13 @@
|
||||
<i class="fa-solid fa-chevron-down text-[9px] text-slate-400 ml-1"></i>
|
||||
</button>
|
||||
|
||||
@can('qma.vehicles.create')
|
||||
<button onclick="openAddModal()"
|
||||
class="w-full sm:w-auto flex items-center justify-center space-x-2 bg-[#1b5e20] hover:bg-[#144919] text-white px-3 sm:px-4 py-2.5 rounded-xl text-xs font-bold transition shadow-sm cursor-pointer">
|
||||
<i class="fa-solid fa-plus text-xs"></i>
|
||||
<span class="truncate">Tambah LV</span>
|
||||
</button>
|
||||
@endcan
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -181,17 +183,21 @@
|
||||
title="Lihat Detail Kendaraan">
|
||||
<i class="fa-regular fa-eye text-sm"></i>
|
||||
</button>
|
||||
@can('qma.vehicles.edit')
|
||||
<button onclick='openEditModal(@json($v))'
|
||||
class="inline-flex items-center space-x-1 text-amber-600 hover:text-amber-800 hover:bg-amber-50 px-2 py-1 rounded-lg transition"
|
||||
title="Edit Data Light Vehicle">
|
||||
<i class="fa-regular fa-pen-to-square text-sm"></i>
|
||||
</button>
|
||||
@endcan
|
||||
@can('qma.vehicles.delete')
|
||||
<button type="button"
|
||||
onclick="openDeleteModal('{{ $v->id }}', '{{ $v->code }}', '{{ addslashes($v->brand_type ?? '') }}')"
|
||||
class="inline-flex items-center space-x-1 text-rose-600 hover:text-rose-800 hover:bg-rose-50 px-2 py-1 rounded-lg transition"
|
||||
title="Hapus Kendaraan">
|
||||
<i class="fa-regular fa-trash-can text-sm"></i>
|
||||
</button>
|
||||
@endcan
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -35,11 +35,13 @@
|
||||
<i class="fa-solid fa-chevron-down text-[9px] text-slate-400 ml-1"></i>
|
||||
</button>
|
||||
|
||||
@can('qma.vehicles.create')
|
||||
<button onclick="openAddModal()"
|
||||
class="w-full sm:w-auto flex items-center justify-center space-x-2 bg-[#1b5e20] hover:bg-[#144919] text-white px-3 sm:px-4 py-2.5 rounded-xl text-xs font-bold transition shadow-sm cursor-pointer">
|
||||
<i class="fa-solid fa-plus text-xs"></i>
|
||||
<span class="truncate">Tambah Kategori</span>
|
||||
</button>
|
||||
@endcan
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -152,17 +154,21 @@
|
||||
title="Lihat Spesifikasi Kategori">
|
||||
<i class="fa-regular fa-eye text-sm"></i>
|
||||
</button>
|
||||
@can('qma.vehicles.edit')
|
||||
<button onclick='openEditModal(@json($v))'
|
||||
class="inline-flex items-center space-x-1 text-amber-600 hover:text-amber-800 hover:bg-amber-50 px-2 py-1 rounded-lg transition"
|
||||
title="Edit Data Kategori">
|
||||
<i class="fa-regular fa-pen-to-square text-sm"></i>
|
||||
</button>
|
||||
@endcan
|
||||
@can('qma.vehicles.delete')
|
||||
<button type="button"
|
||||
onclick="openDeleteModal('{{ $v->id }}', '{{ $v->code }}', '{{ addslashes($v->brand_type ?? '') }}')"
|
||||
class="inline-flex items-center space-x-1 text-rose-600 hover:text-rose-800 hover:bg-rose-50 px-2 py-1 rounded-lg transition"
|
||||
title="Hapus Kategori">
|
||||
title="Hapus Kategori / Unit">
|
||||
<i class="fa-regular fa-trash-can text-sm"></i>
|
||||
</button>
|
||||
@endcan
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user