Services

Create
@if (session()->has('message'))
{{ session('message') }}
@endif
@foreach ($services as $service) @endforeach
Id Service Photo Description Price Visibility Actions
{{ $service->id }}
{{ $service->name}}
{{ $service->description }}
{{ $service->price}}
@if($service->is_hidden == true) Hidden @else Visible @endif
{{ __('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.is_hidden') {{ $message }}@enderror
@error('newService.image') {{ $message }}@enderror {{-- If the image is already saved is system show img --}} {{-- @if (isset($newService['image']) && is_string($newService['image'])) --}} {{-- When the image is uploaded show img --}} {{-- @elseif (isset($newService['image']) && is_object($newService['image'])) @else @endif --}}
{{ __('Cancel') }} Save