@extends('admin.layouts.app') @section('title', 'Edit Service') @section('content')
{{-- Header --}}

Edit Service

Services / {{ $service->name }}
ID: {{ $service->id }} {{ $service->created_at?->format('d M Y') }} @if($service->serviceCategory) {{ $service->serviceCategory->icon }} {{ $service->serviceCategory->name }} @endif
@if($errors->any())
Please fix:
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf @method('PUT')
{{-- LEFT --}}
@error('service_category_id')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
One item per line — shown as checklist

Rs
min
Status
Visible to customers
{{-- RIGHT: Preview --}}
Live Preview
@if($service->serviceCategory) {{ $service->serviceCategory->icon }} {{ $service->serviceCategory->name }} @else Select a category @endif
{{ $service->name }}
Base Price
Rs {{ number_format($service->base_price, 0) }}
Est. Time
{{ $service->estimated_time ? $service->estimated_time . ' min' : '— min' }}
{{ $service->is_active ? 'Active' : 'Inactive' }}
{{ $service->description }}
What's Included
@if($service->includes) @foreach(array_filter(array_map('trim', explode("\n", $service->includes))) as $item)
{{ $item }}
@endforeach @endif
Tips
  • Use clear, customer-friendly service names
  • "What's Included" builds customer trust
  • Accurate estimated time helps scheduling
  • Inactive services won't show to customers
@endsection