@extends('admin.layout') @section('title', 'Auto Kategori & Auto Tags') @section('content')

🤖 Auto Kategori & Auto Tags

← Kembali ke Video
@if($errors->any())
@endif
@csrf @method('PUT')

Default Kategori (jika tidak match keyword)

@php $defaultCategoryIds = old('default_category_ids', array_filter(array_map('intval', explode(',', (string)($settings['default_category_ids'] ?? ''))))); @endphp @foreach($categories as $category) @endforeach

Default Tags (jika tidak match keyword)

@php $defaultTagIds = old('default_tag_ids', array_filter(array_map('intval', explode(',', (string)($settings['default_tag_ids'] ?? ''))))); @endphp @foreach($tags as $tag) @endforeach

Keyword Kategori

@csrf
@foreach($categories as $category) @php $rows = $categoryKeywords->get($category->id, collect()); @endphp @if($rows->count())
{{ $category->name }}
@foreach($rows as $kw)
{{ $kw->keyword }}
@csrf @method('PUT')
@csrf @method('DELETE')
@endforeach
@endif @endforeach

Keyword Tags

@csrf
@foreach($tags as $tag) @php $rows = $tagKeywords->get($tag->id, collect()); @endphp @if($rows->count())
{{ $tag->name }}
@foreach($rows as $kw)
{{ $kw->keyword }}
@csrf @method('PUT')
@csrf @method('DELETE')
@endforeach
@endif @endforeach
@endsection