@extends('backend.layouts.app') @section('product') open @endsection @section('product-list') active @endsection @section('content')

All Products

Add New
@foreach ($products as $product) @endforeach
Image Name Category Name Price Popular Item Status Action
{{ $loop->iteration }} @if (!empty($product->image) && file_exists($product->image)) {{ $product->name }} @else {{ $product->name }} @endif {{ $product->name }} {{ isset($product->category->name) ? $product->category->name : '' }} $ {{ $product->price }} @if ($product->is_popular == 1) @else @endif @if ($product->status == 1) @else @endif @php $countOrder = App\Models\Product::isCheckOrder($product->id); @endphp @if (!$countOrder)
@csrf @method('DELETE')
@endif
@endsection @section('script') @endsection