@extends('layouts.app') @section('content') {{-- Page Header --}}

{{ __('Edit Service') }}

{{-- Validation Errors --}} @if ($errors->any())
{{ __('Whoops!') }} {{ __('There were some problems with your input.') }}
@endif
@csrf {{-- Main Service Title --}}

Services

@php $index = 1; @endphp @foreach ($service->services as $key => $item)
{{-- Hidden input to keep old thumbnail --}} @php $media = \App\Models\Media::find($item['thumbnail_id']); $thumbnailUrl = $media ? Storage::url($media->src) : 'https://placehold.jp/100x100.png'; @endphp
{{-- Active/Inactive Status --}}
@php $index++; @endphp @endforeach
{{ __('Cancel') }}
{{-- Script for dynamic repeater + image preview --}} @endsection