@extends('layouts.admin', [ 'title' => 'Services', 'pageTitle' => 'Services', 'active' => 'services', ]) @php $statusVariants = [ 'active' => 'success', 'inactive' => 'muted', 'draft' => 'warning', ]; $sortOptions = [ 'newest' => 'Newest', 'name' => 'Name', 'price_asc' => 'Price: Low to High', 'price_desc' => 'Price: High to Low', 'duration_asc' => 'Shortest Duration', ]; $hasActiveFilters = collect($filters ?? [])->filter()->isNotEmpty(); @endphp @section('content')
Manage bookable services, pricing, timing, buffers, and staff assignments.
Total Services
{{ $stats['total'] }}
Across {{ count($categories) }} categories
Active
{{ $stats['active'] }}
Visible on booking page
Average Price
${{ number_format($stats['average_price'], 0) }}
Current service catalog
Top Service
{{ $stats['top_service']?->name ?? 'No service yet' }}
{{ $stats['top_service']?->appointments_count ?? 0 }} bookings
{{ $service->name }}
{{ $service->category ?: 'Uncategorized' }}
Price
${{ number_format($service->price, 2) }}
Duration
{{ $service->duration_minutes }} min
Staff
{{ $staffNames }}
Buffer
{{ $bufferLabel }}
{{ $hasActiveFilters ? 'No services match the current filters. Reset filters or create a new service.' : 'Create your first service so customers can book from the public booking page.' }}