{{-- resources/views/services/index.blade.php --}} @extends('layouts.app') @section('title', 'Services') @section('page_title', 'Property Services') @section('page_subtitle', 'Manage guest services and requests') @section('content') {{-- Stats --}}
{{ $stats['total'] }}
Total Services
{{ $stats['active'] }}
Active
{{ $stats['pending'] }}
Pending Requests
{{ $stats['today'] }}
Requests Today
{{-- Services by Category --}}
@if($services->isEmpty())

No services yet

Add services like laundry, room service, spa, transport etc.

@else @foreach($services as $category => $categoryServices)
{{ $category }} {{ $categoryServices->count() }} services
@foreach($categoryServices as $service)
{{ $service->name }} @if($service->is_chargeable && $service->price) {{ $service->currency }} {{ number_format($service->price, 2) }} @if($service->unit) / {{ $service->unit }} @endif @elseif(!$service->is_chargeable) Complimentary @endif @if(!$service->is_active) Inactive @endif
@if($service->description)
{{ Str::limit($service->description, 80) }}
@endif @if($service->duration_minutes)
{{ $service->duration_minutes }} min
@endif
{{ $service->requests_count }} {{ Str::plural('request', $service->requests_count) }}
@csrf @method('DELETE')
@endforeach
@endforeach @endif
{{-- Add Service --}}
Add Service
@csrf
@error('name')
{{ $message }}
@enderror
@error('category')
{{ $message }}
@enderror
{{-- Edit Modal --}} @endsection @push('scripts') @endpush