This commit is contained in:
2026-02-03 15:31:29 +05:00
commit 326c677e8d
2800 changed files with 1489388 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
@foreach($childs as $child)
<option {{ ($category->id ?? '') === $child->id ? 'disabled' : '' }}
{{ old('parent_id') == $child->id ? 'selected' : '' }}
{{ request()->routeIs('admin.categories.edit') && $child->id == $category->parent_id ? 'selected' : '' }}
{{-- {{ request()->routeIs('admin.pc-collects.index') && $child->pcCollect() ? 'selected' : '' }} --}}
{{ ($category_id ?? null) === $child->id ? 'selected' : '' }} value="{{ $child->id }}">
@for ($i = 0; $i < $spaces; $i++) &emsp; @endfor {{ $child->name ?? '' }} @if($child->children->isNotEmpty())
@include('admin.components.category', ['childs' => $child->children, 'spaces' => $spaces + 1])
@endif
</option>
@endforeach

View File

@@ -0,0 +1,12 @@
@foreach($childs as $child)
<option value="{{ $child->id }}">
@for ($i = 0; $i < $spaces; $i++)
&emsp;
@endfor
{{ $child->name ?? '' }}
{{-- @if($child->childs)
@include('admin.components.product-add-attribute-category', ['childs' => $child->childs, 'spaces' => $spaces + 1])
@endif --}}
</option>
@endforeach