{{ __('Gestiòn del Servicio') }}
@if (session()->has('message'))
{{ session('message') }}
@endif {{-- Formulario --}}
{{-- Campos agrupados (igual que antes) --}}
@error('nombre_servicio')

{{ $message }}

@enderror
@error('precio')

{{ $message }}

@enderror
@error('impuesto')

{{ $message }}

@enderror

Horas

@for ($i = 1; $i <= 6; $i++)
@error("hora{$i}")

{{ $message }}

@enderror
@endfor
@if($editMode) @endif
{{-- Lista de servicios --}} @if($services->isEmpty())

No hay servicios registrados.

@else @foreach ($services as $service) @endforeach
{{ $service->nombre_servicio }} ${{ number_format($service->precio, 2) }} {{ $service->impuesto }}% {{ collect([$service->hora1, $service->hora2, $service->hora3, $service->hora4, $service->hora5, $service->hora6])->filter()->implode(', ') }}
{{-- Paginación --}}
{{ $services->links() }}
@endif