@extends('user.layout') @php $selLang = \App\Models\User\Language::where('code', request()->input('language'))->where('user_id', Auth::guard('web')->user()->id)->first(); if (empty($selLang)) { $selLang = \App\Models\User\Language::where([['user_id', Auth::guard('web')->user()->id], ['is_default', 1]])->first(); } if (empty($selLang)) { $selLang = \App\Models\User\Language::where('user_id', Auth::guard('web')->user()->id)->first(); } $userLanguages = \App\Models\User\Language::where('user_id', Auth::guard('web')->user()->id)->get(); $csvBatchLimit = \App\Http\Helpers\UserPermissionHelper::getCsvBatchLimit(Auth::guard('web')->user()->id); @endphp @includeIf('user.partials.rtl-style') @section('content')

{{ __('Items') }}

{{ __('Manage and organize your store items.') }}

@if (!empty($userLanguages)) @endif
@if ($csvBatchLimit > 0) {{ __('Sample CSV') }} {{ __('Export CSV') }} @endif {{ __('Add Item') }}
@php $catBadges = [ ['bg' => 'rgba(13, 110, 253, 0.08)', 'color' => '#0d6efd', 'border' => 'rgba(13, 110, 253, 0.2)'], ['bg' => 'rgba(40, 167, 69, 0.08)', 'color' => '#28a745', 'border' => 'rgba(40, 167, 69, 0.2)'], ['bg' => 'rgba(253, 126, 20, 0.08)', 'color' => '#fd7e14', 'border' => 'rgba(253, 126, 20, 0.2)'], ['bg' => 'rgba(111, 66, 193, 0.08)', 'color' => '#6f42c1', 'border' => 'rgba(111, 66, 193, 0.2)'], ['bg' => 'rgba(232, 62, 140, 0.08)', 'color' => '#e83e8c', 'border' => 'rgba(232, 62, 140, 0.2)'], ['bg' => 'rgba(23, 162, 184, 0.08)', 'color' => '#17a2b8', 'border' => 'rgba(23, 162, 184, 0.2)'], ['bg' => 'rgba(108, 117, 125, 0.08)', 'color' => '#6c757d', 'border' => 'rgba(108, 117, 125, 0.2)'], ]; @endphp
@if (count($items) == 0)

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

@else
@foreach ($items as $key => $item) @php $badgeStyle = $catBadges[$key % count($catBadges)]; @endphp @endforeach
{{ __('Image') }} {{ __('Title') }} {{ __('Price') }} ({{ $currency->text }}) {{ __('Type') }} {{ __('SKU') }} {{ __('Category') }} {{ __('Variants') }} {{ __('Featured') }} {{ __('Actions') }}
@php $thumbSrc = asset('assets/admin/img/noimage.jpg'); if (!empty($item->thumbnail)) { if (filter_var($item->thumbnail, FILTER_VALIDATE_URL)) { $thumbSrc = $item->thumbnail; } else { $cleanImgName = basename(parse_url($item->thumbnail, PHP_URL_PATH)); if (!empty($cleanImgName) && file_exists(public_path('assets/front/img/user/items/thumbnail/' . $cleanImgName))) { $thumbSrc = asset('assets/front/img/user/items/thumbnail/' . $cleanImgName); } } } @endphp Product Image {{ truncateString($item->title, 50) }} {{ symbolPrice($currency->symbol_position, $currency->symbol, $item->current_price) }} {{ $item->type }} {{ $item->sku }} @if ($item->category) {{ convertUtf8($item->category) }} @else - @endif @if ($item->type != 'digital') {{ __('Manage') }} @else - @endif
@csrf
@endif
@endsection