@extends('back_office.layouts.app') @section('content')
Edit Breakdown Service
{{-- Display general error message --}} @if (session('error')) @endif {{-- Display validation errors --}} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('POST')
@error('name')
{{ $message }}
@enderror
@error('service_type')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Accepted formats: JPG, JPEG, PNG, GIF. Max size: 2MB @if ($service->image)
Current Image

Current image - View Full Size

@endif @error('image')
{{ $message }}
@enderror
Accepted formats: MP4, MOV, AVI. Max size: 10MB @if ($service->video)

Current video - View Video

@endif @error('video')
{{ $message }}
@enderror
QAR
Base price for the breakdown service @error('price')
{{ $message }}
@enderror
QAR
Additional charge per kilometer (optional) @error('distance_rate')
{{ $message }}
@enderror
Approximate time to complete the service @error('estimated_duration')
{{ $message }}
@enderror
@php $currentVehicleTypes = old('vehicle_types', $service->vehicle_types ?? []); if (is_string($currentVehicleTypes)) { $currentVehicleTypes = json_decode($currentVehicleTypes, true) ?? []; } @endphp
Select all vehicle types this service supports @error('vehicle_types')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }} />
Enable this service for customers @error('is_active')
{{ $message }}
@enderror
Service-specific terms and conditions (optional) @error('terms_of_condition')
{{ $message }}
@enderror
@endsection @push('scripts') @endpush