@if(isset($products) && $products != '[]' && $products != null)
| ID |
Image |
Name |
Category |
Price |
Discount |
Type |
Region |
Action |
@foreach($products as $key=>$product)
|
{{ ++$key }}
|
@if(isset($images))
@foreach($images as $image)
@if($image->product_id == $product->id)
@break
@endif
@endforeach
@endif
|
{{ ucwords($product->name) }}
|
@if ($product->product_type == '0')
@if(isset($categories) && $categories != '[]' && $categories != null)
@foreach($categories as $category)
@if($product->category_id == $category->id)
{{ ucwords($category->name) }}
@break
@endif
@endforeach
@else
Category not Found
@endif
@elseif ($product->product_type == 1)
{{ "Tuskany Food" }}
@else
Category not Found
@endif
|
€{{ number_format($product->price) }}
|
@if ($product->discount>0)
@if ($product->discount_status == 1)
€
{{ $product->discount }} |
{{ $product->discount_percentage }}%
@else
€
{{ $product->discount }} |
{{ $product->discount_percentage }}%
@endif
@endif
|
@if($product->product_type == '0')
{{ "Wine" }}
@elseif($product->product_type == '1')
{{ "Tuskany Food" }}
@else
{{ "Not Found" }}
@endif
|
@isset($product->region)
{{ ucwords($product->region) }}
@else
No
@endif
|
|
@endforeach
@else
No Any Products yet...!
@endif