@extends('backEnd.layouts.master') @section('title','Pending Products') @section('css') @endsection @section('content')

Pending Approvals

Back to Products
Waiting for Approval
@forelse($data as $key=>$value) @empty @endforelse
SL Product Details Vendor Info Category Price Stock Status Actions
{{ $data->firstItem() + $key }}
Product
{{$value->name}}
@php $isDigital = isset($value->is_digital) ? (bool)$value->is_digital : ($value->product_type === 'digital'); @endphp Type: {{ $isDigital ? 'Digital' : 'Physical' }}
@if($value->vendor)
{{ substr($value->vendor->shop_name, 0, 1) }}
{{ $value->vendor->shop_name }}
@else Admin Product @endif
{{$value->category ? $value->category->name : 'N/A'}} ৳{{ number_format($value->new_price, 2) }} @if($value->stock > 0) {{$value->stock}} @else Out of Stock @endif Pending
{{-- Edit Link --}} {{-- Approve Button --}}
@csrf
{{-- Reject Button (Trigger Modal) --}}
No pending approvals!

All products have been processed.

@endsection