@extends('admin.layouts.app') @section('panel') @php $pageTitle = 'Vendor Products'; @endphp @push('breadcrumb-plugins') Pending Products @endpush
VENDOR PRODUCT CONTROL

Vendor Products

Vendor submitted products approve/reject করার জন্য।

@forelse($products as $product) @php $status = $product->vendor_product_status ?? 'approved'; $badge = ['pending'=>'badge--warning','approved'=>'badge--success','rejected'=>'badge--danger'][$status] ?? 'badge--secondary'; $autoShow = (bool)($product->auto_show_on_approve ?? false); $img = $product->images->first()->image_url ?? null; @endphp @empty @endforelse
Product Vendor Price Stock Status Auto Show Action
@if($img) product @else @endif
{{ $product->name }} {{ $product->product_code ?? $product->code ?? '-' }}
{{ $product->vendor->name ?? '-' }} {{ $product->vendor->referral_code ?? '' }} ৳{{ number_format((float)($product->customer_price ?? 0), 2) }} {{ $product->stock ?? 0 }} {{ ucfirst($status) }} @if($autoShow) Yes @else No @endif
View @if($status === 'pending')
@csrf
@csrf
@endif @if($status === 'approved')
@csrf
@endif
No product found
@if($products->hasPages()) @endif
@endsection @push('style') @endpush