@extends('layouts.admin') @section('content') @if (session('error'))
{{ session('error') }} @if (session('error_details')) @endif
@endif

Product Analytics

Number of Active Products

{{ $totalProducts }}

Number Of Inactive Products

{{ $inactiveProducts }}

Number Of Product Categories

{{ $totalProductCategories }}

Number Of Bundle Products

{{ $bundleProducts }}

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
Nr. SKU Product Name Size/Variation Color Total Quantity Remaining Quantity Dimensions Weight Volume Action Status
{{ $i++ }} {{ $product->sku ?? '-' }} {{ $product->name }} - {{ $product->color->name ?? '-' }}
{{ $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 ?? '—' }}
@csrf @method('DELETE')
{{ $i++ }} {{ $option->sku }} {{ $product->name }} {{ $variation->size->name ?? $variation->variation->name ?? '-' }} {{ $option->color->name ?? '-' }}
{{ $option->quantity ?? 0 }} @if(isset($rentedCounts['option'][$option->id])) 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 ?? 0 }} @if(isset($rentedCounts['variation'][$variation->id])) 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])) 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