@if ($listProducts->count() > 0) @foreach ($listProducts as $key => $seller) @php if ($seller->published == 1) { $class = 'pending'; $approve_class = 'open-approveCate-modal'; } elseif ($seller->published == 4) { $class = 'reject'; $approve_class = 'open-approveCate-modal'; } elseif ($seller->published == 3) { $class = 'publish'; $approve_class = 'open-approveCate-modal'; } else { $class = 'draft'; $approve_class = ''; } @endphp @endforeach @else @endif
S.No. {{ translate('Product/Post ID') }} {{ translate('Product Name') }} {{ translate('User Name') }} {{ translate('Category') }} {{ translate('Product Type') }} {{ translate('Availability') }} {{ translate('Price') }} {{ translate('Model No.') }} {{ translate('Created On') }} {{ translate('Deleted On') }} {{ translate('Status/Action') }}
{{ $key + 1 + ($listProducts->currentPage() - 1) * $listProducts->perPage() }} {{ $seller->unique_number ?? 'N/A' }}
{{ $seller->product_name ?? 'N/A' }}
{{ $seller->user->name ?? 'N/A' }} {{ $seller->category_name ?? 'N/A' }} @if ($seller->product_type == 'simple') {{ ucwords(str_replace('_', ' ', $seller->product_type)) }} @elseif($seller->product_type == 'configured') {{ ucwords(str_replace('_', ' ', 'configured')) }} @else N/A @endif @if ($seller->availability == 'in_stock') {{ ucwords(str_replace('_', ' ', $seller->availability)) }} @elseif($seller->availability == 'by_order') {{ ucwords(str_replace('_', ' ', $seller->availability)) }} @else N/A @endif @if ($seller->unit_price) {{ $seller->symbol }} {{ $seller->unit_price }} @else N/A @endif {{ $seller->model_number ?? 'N/A' }} {{ \Carbon\Carbon::parse($seller->created_at)->format('Y-m-d h:i A') }} {{ \Carbon\Carbon::parse($seller->deleted_at)->format('Y-m-d h:i A') }}
@if (!empty(request()->search))

No result found

@else

No data added yet

@endif
Total Soft Delete Product(s): {{ $listProducts->total() }}
{{ $listProducts->appends(request()->input())->links() }}