@extends('user.layout') @php $userDefaultLang = \App\Models\User\Language::where([ ['user_id', \Illuminate\Support\Facades\Auth::id()], ['is_default', 1], ])->first(); $userLanguages = \App\Models\User\Language::where('user_id', \Illuminate\Support\Facades\Auth::id())->get(); @endphp @includeIf('user.partials.rtl-style') @section('content')

{{ __('Subcategories') }}

{{ __('Manage your product subcategories') }}

@if (!is_null($userDefaultLang)) @if (!empty($userLanguages)) @endif @endif {{ __('Add Subcategory') }}
@php $icons = [ ['bg' => 'rgba(13, 110, 253, 0.1)', 'color' => '#0d6efd', 'icon' => 'fas fa-tag'], ['bg' => 'rgba(40, 167, 69, 0.1)', 'color' => '#28a745', 'icon' => 'fas fa-cube'], ['bg' => 'rgba(253, 126, 20, 0.1)', 'color' => '#fd7e14', 'icon' => 'fas fa-shopping-bag'], ['bg' => 'rgba(111, 66, 193, 0.1)', 'color' => '#6f42c1', 'icon' => 'fas fa-puzzle-piece'], ['bg' => 'rgba(232, 62, 140, 0.1)', 'color' => '#e83e8c', 'icon' => 'fas fa-gift'], ['bg' => 'rgba(23, 162, 184, 0.1)', 'color' => '#17a2b8', 'icon' => 'fas fa-shapes'], ]; @endphp
@if (count($itemsubcategories) == 0)

{{ __('NO ITEM SUBCATEGORY FOUND') }}

@else
@foreach ($itemsubcategories as $key => $category) @php $iconStyle = $icons[$key % count($icons)]; @endphp @endforeach
{{ __('Name') }} {{ __('Category') }} {{ __('Status') }} {{ __('Actions') }}
{{ convertUtf8($category->name) }}
{{ convertUtf8($category->category->name) }} @if ($category->status == 1) {{ __('Active') }} @else {{ __('Deactive') }} @endif
@endif
{{-- ===================== AI SUBCATEGORY NAME MODAL ===================== --}} @endsection @section('scripts') @endsection