@push('styles') @endpush

Product Management

Selected: 0
Add Product
@if ($message = Session::get('success')) @endif @if ($errors->any()) @endif
@forelse($products as $product) @empty @endforelse
IMAGE PRODUCT NAME PRICE CATEGORY DESCRIPTION CREATED AT STATUS ACTIONS
@if($product->images->isNotEmpty()) Product Image @else Default Product Image @endif
{{ $product->name }} {{ currency_format($product->price) }} {{ $product->category->name ?? 'N/A' }} {!! Str::limit(strip_tags($product->description), 60) !!} {{ $product->created_at->format('M d, Y h:i A') }}
@csrf @method('PATCH') {{ $product->is_active ? 'Active' : 'Inactive' }}
is_active ? 'checked' : '' }} >
No products found.
@if($products->hasPages()) @include('partials.pagination', ['paginator' => $products]) @endif
@push('scripts') @endpush