@extends('admin.master') @section('content')

Product Manage

All seller products

@if(session('success'))
{{ session('success') }}
@endif
@forelse($products as $key => $product) @empty @endforelse
# Image Name Shop Category Seller Price Final Price Commission Seller Payable Admin Earning Status Action
{{ $products->firstItem() + $key }} @if($product->thumbnail?->file_path) {{ $product->name }} @else
@endif
{{ $product->name }}
SKU: {{ $product->sku }}
{{ $product->shop?->shop_name ?? '—' }} {{ $product->category?->name ?? '—' }} ৳{{ number_format($product->seller_price, 2) }} ৳{{ number_format($product->final_price, 2) }} {{ number_format($product->commission_rate, 2) }}% ৳{{ number_format($product->commission_amount, 2) }} ৳{{ number_format($product->seller_payable, 2) }} ৳{{ number_format($product->admin_earning, 2) }} @php $statusClass = match($product->status) { 'active' => 'badge-active', 'draft' => 'badge-draft', default => 'badge-inactive', }; @endphp {{ ucfirst($product->status) }}
Show Edit
@csrf @method('DELETE')
No product found.
@if(method_exists($products, 'links')) @endif
@endsection