@extends('layouts.admin') @section('title', 'Wholesale Products') @section('page-title', 'Wholesale Products') @section('content')
{{-- Header --}}

Wholesale Products

You have total {{ $total }} products

@if($activeFilter !== 'trash') Add New Product @endif
@if(session('success'))
{{ session('success') }}
@endif {{-- Filter Tabs --}}
{{-- Products Table --}}
{{-- Toolbar --}}

{{ $activeFilter === 'trash' ? 'Trashed Products' : 'Products' }}

@if($activeFilter !== 'trash') @else @endif @forelse($products as $product) @if($activeFilter !== 'trash') @else @endif @empty @endforelse
# Title Detail StockPublished Deal FeaturedDeleted AtOptions
{{ $loop->iteration + ($products->currentPage() - 1) * $products->perPage() }}
@if($product->thumbnail) @else
@endif
{{ $product->name }} @if($product->sku)

SKU: {{ $product->sku }}

@endif

Price: BDT {{ number_format($product->price, 2) }} / {{ $product->unit ?? 'pcs' }}

Created: {{ $product->created_at->format('M d, Y') }}

{{ $product->current_stock ?? 0 }}
@if($product->status === 'published') Published @elseif($product->status === 'pending') Pending @else Unpublished @endif
@csrf
@csrf
{{ $product->deleted_at->format('M d, Y H:i') }} @if($activeFilter === 'trash')
@else
Show @if($product->status === 'published')
@csrf
@elseif($product->status === 'unpublished')
@csrf
@csrf
@elseif($product->status === 'pending')
@csrf
@endif
@endif

No products found

@if($activeFilter === 'trash')

Trash is empty.

@else

Get started by creating a new wholesale product.

@endif
@if($products->hasPages())
{{ $products->links() }}
@endif
{{-- Delete Confirmation Modal --}} {{-- Restore Confirmation Modal --}} {{-- Force Delete Confirmation Modal --}}
@endsection