@extends('admin.layouts.app') @section('page-title') Products @endsection @section('content')

All Product List

Add Product
@foreach ($products as $product) @endforeach
Product Name Price Stock Reference Category Active
Action
{{ $product->id }}
@if($product->images->isNotEmpty()) Image du produit @else @endif
{{ $product->price }} €

{{ $product->stock }}

{{ Str::upper($product->reference) }} @if($product->categories->isNotEmpty()) @foreach($product->categories as $category) @if(isset($categoryPaths[$category->id]))
{{ $categoryPaths[$category->id] }}
@else
{{ $category->name }}
@endif @endforeach @else No Category @endif
@if($product->is_active == 1) Active @else Inactive @endif
@csrf @method('DELETE')
@endsection @section('scripts') @endsection