@extends('layouts.app') @section('title') Products @endsection @section('css') @endsection @section('content')

Products

Filter by Category

@csrf

Products Table

@if(Auth::user()->roles == 0) @endif @if(Auth::user()->roles == 0) @endif @foreach($products as $product) @if(Auth::user()->roles == 0) @endif @if(Auth::user()->roles == 0) @endif @endforeach
# Name Main Category Category PriceCostQuantity Condition Active Exchangeable Exchangeable Price Image Description EN Description AR Features EN Features ARAction
{{$product->id}} {{$product->name}} @if($product->getMainCategory != null) {{$product->getMainCategory->name}} @endif @foreach($product->category as $item) {{$item->name}} @endforeach {{$product->price}} {{$product->cost}} {{$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 ) @endif
@endsection @section('js') . @endsection