This commit is contained in:
pbao9
2026-02-07 17:50:36 +07:00
parent 2a6a5d2131
commit e9f2218030
10 changed files with 601 additions and 245 deletions
@@ -16,18 +16,6 @@
</form>
<ul class="navbar-nav">
<li class="theme-switcher-wrapper nav-item">
<input type="checkbox" value="" id="theme-switcher">
<label for="theme-switcher">
<div class="box">
<div class="ball"></div>
<div class="icons">
<i class="link-icon" data-lucide="sun"></i>
<i class="link-icon" data-lucide="moon"></i>
</div>
</div>
</label>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="appsDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i data-lucide="layout-grid"></i>
@@ -7,28 +7,28 @@
@section('breadcrumb')
@php
$breadcrumbItems = [
['label' => 'Product'],
['label' => 'Product Group'],
['label' => 'Product Group List', 'active' => true]
];
$breadcrumbItems = [
['label' => 'Product'],
['label' => 'Product Group'],
['label' => 'Product Group List', 'active' => true]
];
@endphp
<x-admin-breadcrumb :items="$breadcrumbItems" />
@endsection
@section('tab')
@php
$tabs = [
[
'label' => 'Product',
'route' => 'products.index',
'icon' => 'server',
],
[
'label' => 'Product Group',
'route' => 'products.group.index',
'icon' => 'server',
],
];
$tabs = [
[
'label' => 'Product',
'route' => 'products.index',
'icon' => 'server',
],
[
'label' => 'Product Group',
'route' => 'products.group.index',
'icon' => 'server',
],
];
@endphp
<x-admin-tab :items="$tabs" />
@endsection
@@ -39,12 +39,13 @@
@include('administrator.pages.block.product.btn')
</div>
<div class="card-body">
<x-datatable id="productTable" ajax="{{ route('products.group.datatable') }}" :columns="[
['key' => 'name', 'label' => 'Group'],
['key' => 'slug', 'label' => 'Slug'],
['key' => 'is_active', 'label' => 'Status'],
['key' => 'action', 'label' => 'Action', 'searchable' => false],
]" />
<x-datatable id="productTable" ajax="{{ route('products.group.datatable') }}"
bulkDeleteUrl="{{ route('products.group.bulkDelete') }}" :columns="[
['key' => 'name', 'label' => 'Group'],
['key' => 'slug', 'label' => 'Slug'],
['key' => 'is_active', 'label' => 'Status'],
['key' => 'action', 'label' => 'Action', 'searchable' => false],
]" />
</div>
</div>