@extends('admin.layouts.app') @section('contents')

All Products

@forelse ($products as $product) @empty @endforelse
No. Image Product Price Stock Status Quantity Created At Approved Status Store
{{ $loop->iteration }}
@if($product->product_type == 'physical') {{ $product->name }} @else {{ $product->name }} @endif
{{ $product->product_type }}
@if ($product->primaryVariant) @if ($product->primaryVariant?->special_price > 0)
{{ $product->primaryVariant?->special_price }}
{{ $product->primaryVariant?->price }}
@else {{ $product->primaryVariant?->price }} @endif @else @if ($product->special_price > 0)
{{ $product->special_price }}
{{ $product->price }}
@else {{ $product->price }} @endif @endif
@if ($product->primaryVariant) @if ($product->primaryVariant?->in_stock == 1) In Stock @else Out of Stock @endif @else @if ($product->in_stock == 1) In Stock @else Out of Stock @endif @endif @if ($product->primaryVariant) @if ($product->primaryVariant->manage_stock == 1) {{ $product->primaryVariant->qty }} @else ∞ @endif @else @if ($product->manage_stock == 'yes') {{ $product->qty }} @else ∞ @endif @endif {{ date('Y-m-d', strtotime($product->created_at)) }} @if ($product->approved_status == 'pending') Active @elseif ($product->approved_status == 'approved') Approved @elseif($product->approved_status == 'rejected') Rejected @endif @if ($product->status == 'active') Active @elseif ($product->status == 'inactive') Inactive @elseif($product->status == 'pending') Pending @elseif($product->status == 'draft') Draft @endif {{ $product->store->name }} @if($product->product_type == 'physical') @else @endif
No Items
@endsection