@extends('admin.layout.master') @section('title') Products @endsection @section('content')
Products
@forelse($products as $product)

{{ $product->name }}

Price : @if(!empty($product->cut_price)) {{ "$".$product->cut_price }} @endif {{ "$".$product->price }} {{ ($product->discount) ? "(".$product->discount."%)" : '' }}
Category : {{ $product->category->name }}
Status : @if($product->stock=="in stock") {{ $product->stock }} @else {{ $product->stock }} @endif
New In : @if($product->new=="1") Yes @else No @endif
@empty

No Products Added.

@endforelse
@endsection