@extends('adminlte::page') @section('title', 'Categorias') @section('content_header')

Dashboard

@endsection @section('content') {{-- Categories --}}

Categorias

Agregar nueva Categoría/subcategoría
@forelse($categories as $category) {{-- Actions --}} @empty @endforelse
Nombre Descripción Slug Stock Imagen

Ultima Modificación: {{ $category->updated_at }}

Modificar Borrar
@csrf @method('DELETE')
Sin categorias, agrege una nueva
{{-- Sub categories --}}

SubCategorias

{{-- Actions --}} @if ($categories->count() == 0 && $subcategories->count() > 0) @else @forelse ($subcategories as $subCategory) @php $parent = $parents->where('id', $subCategory->iam_category_id)->first(); @endphp @if ($parent == null) @else @endif @empty @endforelse @endif
Nombre Descripción Slug Stock Categoria padre
Sin categorias padre, agregue una nueva para poder usar las subcategorias

Ultima Modificación: {{ $subCategory->updated_at }}

Modificar Borrar
@csrf @method('DELETE')
Sin subcategorias, agrege una nueva
@if ($categories->count() > 0)
{{ $subcategories->links() }}
@endif
{{-- Form select subcat unlinked to drop in this module --}} {{-- Form select subcat unlinked to assignment in this module --}} @endsection @section('js') @vite('resources/js/categories/listCategories.js') @endsection