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

{{ __('Categories') }}

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

@if (!is_null($userDefaultLang)) @if (!empty($userLanguages)) @endif @endif {{ __('Add Category') }}
@php $allow_featured_theme = ['electronics', 'kids', 'manti', 'pet', 'skinflow', 'jewellery']; $icons = [ ['bg' => 'rgba(13, 110, 253, 0.1)', 'color' => '#0d6efd', 'icon' => 'fas fa-mobile-alt'], ['bg' => 'rgba(40, 167, 69, 0.1)', 'color' => '#28a745', 'icon' => 'fas fa-home'], ['bg' => 'rgba(253, 126, 20, 0.1)', 'color' => '#fd7e14', 'icon' => 'fas fa-tshirt'], ['bg' => 'rgba(111, 66, 193, 0.1)', 'color' => '#6f42c1', 'icon' => 'fas fa-headphones'], ['bg' => 'rgba(232, 62, 140, 0.1)', 'color' => '#e83e8c', 'icon' => 'fas fa-couch'], ['bg' => 'rgba(23, 162, 184, 0.1)', 'color' => '#17a2b8', 'icon' => 'fas fa-box'], ]; @endphp
@if (count($itemcategories) == 0)

{{ __('NO CATEGORY FOUND') }}

@else
@if (in_array($userBs->theme, $allow_featured_theme)) @endif @foreach ($itemcategories as $key => $category) @php $iconStyle = $icons[$key % count($icons)]; @endphp @if (in_array($userBs->theme, $allow_featured_theme)) @endif @endforeach
{{ __('Name') }} {{ __('Image') }}{{ __('Featured') }}{{ __('Status') }} {{ __('Serial Number') }} {{ __('Actions') }}
{{ convertUtf8($category->name) }}
...
@csrf
@if ($category->status == 1) {{ __('Active') }} @else {{ __('Deactive') }} @endif {{ $category->serial_number }}
@endif
{{-- ===================== AI CATEGORY NAME MODAL ===================== --}} @endsection @section('scripts') {{-- include reusable js --}} @endsection