@extends('layouts.admin') @section('content')
Products
@can('product-create') New product @endcan
@include('partials.backend.filter', ['model' => route('admin.products.index')])
{{-- --}} @forelse($products as $product) {{-- --}} @empty @endforelse
ID Image Name FeatureQuantityPrice Tags Category Status Created at Action
{{ $product->id }} {{ $product->name }} {{ $product->name }} {{ yesNo($product->featured) }}{{ $product->quantity }}{{ format_amount($product->price,true) }} {{ $product->tags->pluck('name')->join(', ') }} {{ $product->category ? $product->category->name : NULL }} {{ $product->active_label }} {{ $product->created_at }}
@csrf @method('DELETE')
No products found.
{!! $products->appends(request()->all())->links() !!}
@endsection