@extends('back.layouts.app', ['title' => $title]) @section('beforeHeadClose') @include('back.common_views.switch_css') @endsection @section('content')
@include('back.common_views.quicklinks')

All Products

{{-- --}} {{-- --}} @forelse($products as $product) {{-- --}} {{-- --}} @empty @endforelse
Date Product NamePriceCategoriesSell ProductStatus Is Featured Action
{{ format_date($product->dated, 'date') }} {{ $product->product_name }}{{ '$' . currency_format($product->price) }} @php $cats = []; try { $cats = $product->categories()->pluck('title')->toArray(); } catch (\Throwable $e) { $cats = []; } @endphp {{ empty($cats) ? '-' : implode(', ', $cats) }} @php // Check if the product has category name "Slabs" $hasSlabs = false; if (!empty($product->categories)) { foreach ($product->categories as $cat) { if (strtolower($cat->title) === 'slabs') { $hasSlabs = true; break; } } } @endphp @if ($product->is_featured == 'Yes') @else @endif Edit Delete Manage Colors
No Record found!
@endsection @section('beforeBodyClose') @include('back.product.product_js') @include('back.product.add_edit_view') @endsection