@component('components.superadmin.modal', ['title' => 'CREA NUOVA TRATTAMENTO', 'classes' => 'trattamentoModal text-center', 'id' => 'editService'])
@if (isset($treatment))
{{ Form::model($treatment, ['action' => ['FormController@index', 'create_update_treatments'], 'method' => 'POST'], ['class' => 'dynamic-form']) }}
@else
{{ Form::open(['action' => ['FormController@index', 'create_update_treatments']]) }}
@endif
{{ Form::hidden('dynamic-form', 1) }}
@if (isset($treatment))
{{ Form::hidden('id', $treatment->id) }}
@endif
{{ Form::label('name', 'Nome*') }}
{{ Form::text('name', null, ['class' => 'form-control']) }}
{{ Form::label('catalog_page', 'Pagina Catalogo') }}
{{ Form::text('catalog_page', null, ['class' => 'form-control']) }}
{{ Form::label('treatment_type_id', 'Tippo Trattamento*') }}
{{ Form::select('treatment_type_id', $treatmentTypes->pluck('name', 'id'), isset($treatment) ? $treatment->treatment_type_id : null, ['class' => 'custom-select custom-select-sm singleSelection', 'placeholder' => 'Seleziona Tippo Trattamento', 'data-placeholder' => 'Seleziona Tippo Trattamento' ]) }}
{{ Form::label('code', 'Codice') }}
{{ Form::text('code', null, ['class' => 'form-control']) }}
{{ Form::label('public_price', 'Public Prezzo*') }}
{{ Form::number('public_price', null, ['class' => 'form-control']) }}
{{ Form::label('private_price', 'Private Prezzo') }}
{{ Form::number('private_price', null, ['class' => 'form-control']) }}
{{ Form::label('note', 'Commenti') }}
{{ Form::textarea('note', null, ['class' => 'form-control', 'min' => 0]) }}
I campi Contrassegnati da (*) sono obbligatori.
{{ Form::close() }}
@endcomponent