@if($products->count() > 0)
@if (Session::has('success_message'))
Good! {{ Session::get('success_message')}}
@endif
| S/N |
Title |
Price |
Section |
Category |
Phone no. |
Paid |
Actions |
Status |
@foreach($products as $product)
| {{ $loop->iteration }} |
{{ $product->title }} |
₦{{ number_format($product->price, 2) }} |
{{ $product->section->name ?? ""}} |
{{ $product->category->category_name ?? ""}} |
{{ $product->vendor->mobile ?? ""}} |
@if ($product->status == 1)
{{ "yes" }}
@else
{{ "no" }}
@endif
|
|
@if ($product->status == 1)
Active
@else
Inactive
@endif
|
@endforeach
@else
No products found.
@endif