Services

Create
@if (session()->has('message'))
{{ session('message') }}
@endif
@foreach ($services as $service) @endforeach
Id Service Photo Description Price Category Visibility Actions
{{ $service->id }}
{{ $service->name}}
{{ $service->description }}
{{ $service->price}}
{{-- @dd($service->category->name)--}}
{{ $service->category?->name}}
@if($service->is_hidden == true) Hidden @else Visible @endif
{{ __('View') }} {{ __('Edit') }} {{ __('Delete') }} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
{{ $services->links() }}
{{ __('Delete Service') }} {{ __('Are you sure you want to delete the service?') }}
{{ __('Cancel') }} {{ __('Delete') }}
{{-- {{ __('Add a new service') }} --}} {{ isset($this->newService->id) ? 'Edit Service' : 'Add Service' }}
@error('newService.name') {{ $message }}@enderror
@error('newService.description') {{ $message }}@enderror
@error('newService.price') {{ $message }}@enderror
{{--
--}} {{-- --}} {{-- --}} {{--
--}}
@error('newService.allergens') {{ $message }}@enderror
@error('newService.cautions') {{ $message }}@enderror
@error('newService.benefits') {{ $message }}@enderror
@error('newService.aftercare_tips') {{ $message }}@enderror
@error('newService.notes') {{ $message }}@enderror
@error('newService.is_hidden') {{ $message }}@enderror
@error('image') {{ $message }}@enderror {{-- If the image is already saved is system show img --}} @if (isset($image) && is_string($image)) image {{-- When the image is uploaded show img --}} @elseif (isset($image) && is_object($image)) image @else @endif
{{ __('Cancel') }} Save