@extends('layouts.vendor') @section('content')

@lang('messages.product_analytics')

@lang('messages.add_new_product')

@lang('messages.active_products_categories')

{{ $totalProducts }}

@lang('messages.inactive_products')

{{ $disabledVariants }}

@lang('messages.product_categories_available')

{{ $totalProductCategories }}

@lang('messages.bundle_products')

{{ $bundleProducts }}

@lang('messages.product_management')
@foreach($groupedByCategory as $categoryName => $products) @php $categoryId = \Illuminate\Support\Str::slug($categoryName); @endphp @php $product = $products->first(); @endphp

@foreach($products as $product) @php $i = 1; @endphp @if($product->variations->isEmpty()) {{-- --}} {{-- --}} @else @foreach($product->variations as $variation) @php $firstRow = true; @endphp @if(!$variation->options->isEmpty()) @foreach($variation->options as $option) {{-- --}} @endforeach @else {{-- --}} @endif @endforeach @endif @endforeach
@lang('messages.nr') @lang('messages.sku') @lang('messages.product_name') @lang('messages.size_variation') @lang('messages.color') @lang('messages.total_quantity') @lang('messages.remaining_quantity') @lang('messages.dimensions') @lang('messages.weight') @lang('messages.volume') @lang('messages.action') @lang('messages.status')
{{ $i++ }} {{ $product->sku ?? '-' }} {{ $product->name }} - {{ $product->color->name ?? '-' }}{{ $product->quantity ?? '-' }}
{{ $product->quantity ?? 0 }} @if(isset($rentedCounts['product'][$product->id])) Rented: {{ $rentedCounts['product'][$product->id] }} @endif
$product->total_quantity > 0 && $product->total_quantity <= 2, 'out-of-stock' => $product->total_quantity <= 0 ])> {{ $product->total_quantity ?? 0 }}
N/A N/A {{ $product->length }} x {{ $product->width }} x {{ $product->height }} {{ $product->weight ?? '—' }} {{ $product->volume ?? '—' }}
{{-- --}}
{{ $i++ }} {{ $option->sku }} {{ $product->name }} {{ $variation->size->name ?? $variation->variation->name ?? '-' }} {{ $option->color->name ?? '-' }}{{ $option->quantity }}
{{ $option->quantity ?? 0 }} @if(isset($rentedCounts['option'][$option->id])) @lang('messages.rented'): {{ $rentedCounts['option'][$option->id] }} @endif
$option->total_quantity > 0 && $option->total_quantity <= 2, 'out-of-stock' => $option->total_quantity <= 0 ])> {{ $option->total_quantity ?? $option->quantity }}
{{ $variation->length }} x {{ $variation->width }} x {{ $variation->height }} {{ $variation->weight ?? '—' }} {{ $variation->volume ?? '—' }} @if($firstRow) @php $firstRow = false; @endphp @endif
{{ $i++ }} {{ $variation->sku ?? '-' }} {{ $product->name }} {{ $variation->size->name ?? $variation->variation->name ?? '-' }} {{ $variation->color->name ?? '-' }}{{ $variation->quantity }}
{{ $variation->quantity ?? 0 }} @if(isset($rentedCounts['variation'][$variation->id])) @lang('messages.rented'): {{ $rentedCounts['variation'][$variation->id] }} @endif
$variation->total_quantity > 0 && $variation->total_quantity <= 2, 'out-of-stock' => $variation->total_quantity <= 0 ])> {{ $variation->total_quantity ?? $variation->quantity }} @if(isset($rentedCounts['variation'][$variation->id])) @lang('messages.available'): {{ $variation->quantity - $rentedCounts['variation'][$variation->id] }} @endif
{{ $variation->length }} x {{ $variation->width }} x {{ $variation->height }} {{ $variation->weight ?? '—' }} {{ $variation->volume ?? '—' }} @if($firstRow) @php $firstRow = false; @endphp @endif
@endforeach
@endsection