@extends('layouts.app') @section('title', 'Products') @section('content') {{-- ── Page Header ── --}}

Products

Manage your product catalogue

@csrf
{{-- ── Bulk Edit Bar ── --}} {{-- ── Search ── --}}
@if(request()->filled('search')) Clear @endif
{{-- ── Products Table ── --}}
@forelse($products as $i => $product) @empty @endforelse
ID Product Speed Purchase Sale Visibility On Homepage Status Actions
#{{ $products->firstItem() + $loop->index }} {{ Str::limit($product->description, 35) }} {{ $product->service_speed ?? '—' }} ${{ number_format($product->purchase_price, 2) }} ${{ number_format($product->sale_price, 2) }}
@csrf
@csrf
@include('admin.products._icon_eye') View @include('admin.products._icon_pencil') Edit

No products yet. .

{{-- ── Pagination ── --}}
{{ $products->links('vendor.pagination.default') }}
{{-- ── Trashed Products ── --}} @php $trashed = \App\Models\Product::onlyTrashed()->orderBy('deleted_at', 'desc')->take(10)->get(); @endphp @if($trashed->isNotEmpty())

Recently Deleted

Restore if needed
@foreach($trashed as $i => $product) @endforeach
ID Description Deleted Actions
#{{ $product->id }} {{ Str::limit($product->description, 40) }} {{ $product->deleted_at?->format('M j, Y H:i') }}
@csrf
@csrf @method('DELETE')
@endif {{-- ── Modal: Create Product ── --}} {{-- ── Modal: View Product ── --}} {{-- ── Modal: Edit Product ── --}} {{-- ── Modal: Bulk Price ── --}} {{-- ── Modal: Delete Confirm ── --}} {{-- ── Modal: NBN Sync Confirm ── --}} @endsection @push('styles') @endpush @push('scripts') @endpush