| {{ $loop->iteration }} |
{{ Str::limit($product->name, 40) }} |
{{ $product->conditions ?? 'N/A' }} |
{{ number_format($product->asking_price, 2) }} |
{{ $product->user->name ?? 'N/A' }} |
@php
$badgeClass = match ($product->status) {
'Approve' => 'badge-success',
'Pending' => 'badge-warning',
'InReview' => 'badge-info',
'Reject' => 'badge-danger',
'Soled' => 'badge-success',
'Cancel' => 'badge-dark',
default => 'badge-warning',
};
@endphp
{{ $product->status }}
|
{{ $product->created_at->format('d M Y') }} |
@endforeach