@extends('layouts.app') @section('title') Products @endsection @section('css') @endsection @section('content')
| # | Name | Main Category | Category | Price | @if(Auth::user()->roles == 0)Cost | @endifQuantity | Condition | Active | Exchangeable | Exchangeable Price | Image | Description EN | Description AR | Features EN | Features AR | @if(Auth::user()->roles == 0)Action | @endif
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$product->id}} | {{$product->name}} | @if($product->getMainCategory != null) {{$product->getMainCategory->name}} @endif | @foreach($product->category as $item) {{$item->name}} @endforeach | {{$product->price}} | @if(Auth::user()->roles == 0){{$product->cost}} | @endif{{$product->quantity}} | {{$product->condition}} | @if($product->active == 0) No @elseif($product->active == 1) Yes @endif | @if($product->exchangeable == 0) No @elseif($product->exchangeable == 1) Yes @endif | @if($product->exchangeable == 0) @elseif($product->exchangeable == 1) {{$product->exchangeable_price}} @endif | {{asset('assets/uploads/products/'.$product->image)}} | {{$product->description}} | {{$product->description_ar}} | {{$product->item_features}} | {{$product->item_features_ar}} | @if(Auth::user()->roles == 0)@if(Auth::user()->roles == 0 ) @endif | @endif