@extends('layouts.admin') @section('title',$service->name) @section('heading','Service operations') @section('content')

{{ $service->name }}

{{ $service->vendor?->name }} · {{ $service->duration_minutes }} minutes · {{ number_format((float)$service->price,2) }}

Back

Edit offering

@csrf @method('put')
@csrf
@csrf @method('delete')

Provider

{{ $service->vendor?->name }}
{{ $service->vendor?->owner?->name }}
{{ $service->vendor?->owner?->email }}
{{ $service->vendor?->owner?->phone }}

Status: {{ $service->vendor?->is_approved?'Approved':'Unapproved' }} · {{ $service->vendor?->is_open?'Open':'Paused' }}

Priced options

@foreach($service->addons as $addon)@csrf @method('put')@endforeach@csrf
NamePriceExtra minutesStateActions
@csrf @method('delete')

Weekly capacity schedule

Saving replaces all windows atomically. Existing future bookings must remain covered and capacity cannot be reduced below concurrent reservations.

@csrf @method('put')
@php($slots=$service->availability->isEmpty()?collect([['weekday'=>1,'starts_at'=>'09:00','ends_at'=>'17:00','slot_interval_minutes'=>30,'capacity'=>1,'is_active'=>true]]):$service->availability)@foreach($slots as $index=>$slot)@endforeach
DayStartsEndsIntervalCapacityState

Recent bookings

@forelse($bookings as $booking)@empty@endforelse
BookingStartsStatusTotal
{{ $booking->number }}{{ $booking->starts_at->format('d M Y H:i') }}{{ $booking->status }}{{ number_format((float)$booking->total,2) }}
No bookings.
@endsection