@extends('layouts/contentLayoutMaster') @section('title', 'Products') @section('vendor-style') @endsection @section('page-style') {{-- Page Css files --}} @endsection @section('content') @if(session()->has('success')) @endif @if(session()->has('error')) @endif

Product Management - Products

@if(isset($products) && $products != '[]' && $products != null)
@foreach($products as $key=>$product) @endforeach
ID Image Name Category Price Discount Type Region Action
{{ ++$key }} @if(isset($images)) @foreach($images as $image) @if($image->product_id == $product->id)
product image
@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
@csrf
@csrf
@else @endif
@endsection @section('vendor-script') {{-- vendor files --}} @endsection @section('page-script') @endsection