@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
@empty

No Products Added.

@endforelse
@endsection