@extends('agency.layouts.app') @section('title', 'Ürün Kategorileri') @section('page_title', 'Ürün Kategorileri') @php $breadcrumbs = [ ['title' => 'Ana Sayfa', 'url' => route('agency.dashboard')], ['title' => 'Hizmet Türleri', 'url' => route('agency.product-types.index')], ['title' => 'Kategoriler', 'url' => ''] ]; @endphp @push('styles') @endpush @section('content')

Ürün Kategorileri

Ürünlerinizi kategorilere ayırarak düzenleyin

Yeni Kategori Ekle
@if($categories->count() > 0)
@foreach($categories as $category) @if($category->parent_id === null)
{{ $category->name }}
@if($category->short_description)

{{ $category->short_description }}

@endif
{{ $category->is_active ? 'Aktif' : 'Pasif' }} Ana Kategori @if($category->productType) {{ $category->productType->name }} @endif
@php $subcategories = $category->children()->get(); @endphp @if($subcategories->count() > 0)
Alt Kategoriler ({{ $subcategories->count() }})
@foreach($subcategories as $subcategory)
{{ $subcategory->name }}
@if($subcategory->short_description)
{{ $subcategory->short_description }}
@endif
{{ $subcategory->is_active ? 'Aktif' : 'Pasif' }}
@endforeach
@endif
@endif @endforeach
@if($categories->hasPages())
{{ $categories->links() }}
@endif @else

Henüz Kategori Eklenmemiş

Bu hizmet türü için henüz kategori oluşturulmamış.

İlk Kategoriyi Oluştur
@endif
@endsection @push('scripts') @endpush