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

Persetujuan Produk

Kelola ajuan produk konsinyasi dari supplier

Total Pending: {{ $pendingCount }}
{{-- Filter Tabs --}}
{{-- Filters --}}
{{-- Products Table --}}
@if($products->count() > 0)
@foreach($products as $product) @endforeach
Produk Supplier Kategori Harga Stok Tanggal Status Aksi
@if($product->image) {{ $product->name }} @else
@endif
{{ $product->name }}

{{ $product->sku }}

@if($product->isDraft) DRAFT @endif
@if($product->supplier) {{ $product->supplier->businessName }}

{{ $product->supplier->supplierCode ?? '-' }}

@else - @endif
{{ $product->category->name ?? '-' }} Rp {{ number_format($product->sellPrice, 0, ',', '.') }} {{ $product->stock }} pcs {{ $product->created_at->format('d M Y') }}
{{ $product->created_at->format('H:i') }}
@if($product->approvalStatus === 'APPROVED') Disetujui @elseif($product->approvalStatus === 'REJECTED')
Ditolak @if($product->rejectionReason) @endif
@else Pending @endif
@if($product->approvalStatus === 'PENDING')
@csrf
@else - @endif
@if($products->hasPages())
{{ $products->appends(request()->query())->links() }}
@endif @else

Tidak ada produk

Belum ada produk dengan status ini

@endif
{{-- Modal Image Preview --}} {{-- Modal Reject --}} @endsection