@extends('layouts.admin') @php $routeName = request()->route()->getName(); $baseRoute = 'admin.data-config.products'; $roleSelectConfig = [ "placeholder" => __('Select Category'), "hasSearch" => true, "searchPlaceholder" => __('Search Category...'), "toggleClasses" => "hs-select-toggle luxury-select-toggle", "dropdownClasses" => "hs-select-menu w-full bg-white dark:bg-slate-900 border border-slate-200 dark:border-white/10 rounded-xl shadow-2xl mt-2 z-[100]", "optionClasses" => "hs-select-option py-2.5 px-3 text-sm text-slate-800 dark:text-slate-300 cursor-pointer hover:bg-slate-100 dark:hover:bg-white/5 rounded-lg flex items-center justify-between", ]; @endphp @section('content')

{{ __('Product Management') }}

{{ __('Manage your catalog, prices, and multilingual details.') }}

@if(auth()->user()->isSystemAdmin())
@endif
@if(auth()->user()->isSystemAdmin()) @endif @forelse($products as $product) @if(auth()->user()->isSystemAdmin()) @endif @empty @endforelse
{{ __('Product Info') }} {{ __('Barcode') }}{{ __('Company') }}{{ __('Sale Price') }} {{ __('Channel Limits (Track/Spring)') }} {{ __('Status') }} {{ __('Actions') }}
@if($product->image_url) @else @endif
{{ $product->localized_name }}
@php $catName = $product->category->localized_name ?? __('Uncategorized'); @endphp {{ $catName }} @if(($companySettings['enable_material_code'] ?? false) && isset($product->metadata['material_code'])) #{{ $product->metadata['material_code'] }} @endif
{{ $product->barcode ?: '-' }} {{ $product->company->name ?? '-' }} ${{ number_format($product->price, 0) }} {{ $product->track_limit }} / {{ $product->spring_limit }} @if($product->is_active) {{ __('Active') }} @else {{ __('Disabled') }} @endif
@if($product->is_active) @else @endif
{{ __('No products found matching your criteria.') }}
{{ $products->links() }}
@if(auth()->user()->isSystemAdmin()) @endif @forelse($categories as $category) @if(auth()->user()->isSystemAdmin()) @endif @empty @endforelse
{{ __('Category Name') }}{{ __('Company') }}{{ __('Actions') }}
{{ $category->localized_name }}
{{ $category->company->name ?? __('System Default') }}

{{ __('No categories found.') }}

@csrf
@if(auth()->user()->isSystemAdmin())

{{ __('Type to search or leave blank for system defaults.') }}

@endif
@endsection @section('scripts') @endsection