Services
{{-- ── PAGE HEAD ── --}}

Services

Manage your car wash service offerings

Add Service
{{-- ── SUCCESS ALERT ── --}} @if (session('success'))
{{ session('success') }}
@endif {{-- ── MAIN CARD ── --}}
@if ($services->isEmpty())

No services yet

Create your first service to start offering washes.

Add First Service
@else {{-- ── STATS STRIP ── --}} @php $activeCount = $services->where('status', 'active')->count(); $inactiveCount = $services->where('status', 'inactive')->count(); $noVarCount = $services->filter(fn($s) => !$s->variations || $s->variations->isEmpty())->count(); @endphp
Total {{ $services->total() }}
Active {{ $activeCount }}
Inactive {{ $inactiveCount }}
@if ($noVarCount > 0)
No Variations {{ $noVarCount }}
@endif
{{-- ── TABLE ── --}}
@foreach ($services as $service) {{-- Name --}} {{-- Category --}} {{-- Variations --}} {{-- Commission --}} {{-- Discount --}} {{-- Status --}} {{-- Actions --}} @endforeach
Name Category Vehicle Variations Commission Discount Status Actions
{{ $service->name }}
@if ($service->description)
{{ Str::limit($service->description, 60) }}
@endif
@if ($service->category) {{ $service->category }} @else @endif @if ($service->variations && $service->variations->count() > 0) @foreach ($service->variations as $var)
{{ $var->vehicle_type }} KSh {{ number_format($var->price, 2) }}
@endforeach @else No variations @endif
@if ($service->commission_value) {{ $service->commission_type === 'percentage' ? $service->commission_value . '%' : 'KSh ' . number_format($service->commission_value, 2) }} @else @endif {{ $service->is_discountable ? 'Yes' : 'No' }} {{ ucfirst($service->status) }}
Edit
@csrf @method('PATCH')
@csrf @method('DELETE')
{{-- ── PAGINATION ── --}}
{{ $services->links() }}
@endif