@extends('user.layout') @php $selLang = \App\Models\User\Language::where('code', request()->input('language'))->first(); $userLanguages = \App\Models\User\Language::where('user_id', Auth::guard('web')->user()->id)->get(); @endphp @if (!empty($selLang) && $selLang->rtl == 1) @section('styles') @endsection @endif @section('content')
{{ __('Items') }}
@if (!empty($userLanguages)) @endif
{{ __('Add Item') }}
@if (count($items) == 0)

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

@else
@if ( $userBs->theme != 'home_nine' && $userBs->theme != 'home_ten' && $userBs->theme != 'home_eleven' && $userBs->theme != 'home_twelve') @endif @if ($userBs->theme == 'home_eight') @endif @foreach ($items as $key => $item) @if ( $userBs->theme != 'home_nine' && $userBs->theme != 'home_ten' && $userBs->theme != 'home_eleven' && $userBs->theme != 'home_twelve') @endif @if ($userBs->theme == 'home_eight') @endif @endforeach
{{ __('Title') }} {{ __('Price') }} (@if (!empty($userBs->base_currency_symbol)) {{ $userBs->base_currency_symbol }} @endif) {{ __('Type') }} {{ __('Variations') }} {{ __('Category') }} {{ __('Stock') }}{{ __('Featured') }}{{ __('Special Offers') }}{{ __('Flash') }} {{ __('Actions') }}
{{ strlen($item->title) > 30 ? mb_substr($item->title, 0, 30, 'utf-8') . '...' : $item->title }} {{ $item->current_price }} {{ $item->type }} @if ($item->type == 'physical') {{ __('Manage') }} @else {{ __('digital item') }} @endif {{ convertUtf8($item->category ? $item->category : '') }} @php $variations = App\Models\User\UserItemVariation::where('item_id', $item->item_id) ->where('language_id', $lang->id) ->get(); if (count($variations) == 0) { $variations = null; } $isFlash = App\Http\Helpers\CheckFlashItem::isFlashItem($item->item_id); @endphp @if ($item->type == 'physical' && empty($variations)) {{ $item->stock }} @elseif(!empty($variations)) {{ __('check variations') }} @else {{ __('digital item') }} @endif
@csrf
@csrf
@csrf
@if ($isFlash) Edit @endif
@endif
@endsection @section('scripts')