{{ $pageTitle ?? trans('messages.list') }}
{{ __('messages.back') }} @if($auth_user->can('service list')) @endif
{{ Form::model($serviceaddon,['method' => 'POST','route'=>'serviceaddon.store', 'enctype'=>'multipart/form-data','data-toggle'=>"validator" ,'id'=>'serviceaddon'] ) }} {{ Form::hidden('id') }}
{{ Form::label('name', __('messages.name').' *', ['class' => 'form-control-label'], false) }} {{ Form::text('name', old('name'), ['placeholder' => __('messages.name'), 'class' => 'form-control', 'title' => 'Please enter alphabetic characters and spaces only']) }}
{{ Form::label('name', __('messages.select_name',[ 'select' => __('messages.service') ]).' *',['class'=>'form-control-label'],false) }}
@php if($auth_user->user_type == 'admin' || $auth_user->user_type == 'demo_admin') { $route = route('ajax-list', ['type' => 'service-list']); } else { $route = route('ajax-list', ['type' => 'service-list', 'provider_id' => $auth_user->id]); } @endphp {{ Form::select('service_id', [ optional($serviceaddon->service)->id => optional($serviceaddon->service)->name ], optional($serviceaddon->service)->id, [ 'class' => 'select2js form-group service', 'id' => 'service_id', 'required', 'data-placeholder' => __('messages.select_name',[ 'select' => __('messages.service') ]), 'data-ajax--url' => $route, ]) }}
{{ Form::label('price', __('messages.price').' *', ['class' => 'form-control-label'], false) }} {{ Form::text('price', null, [ 'placeholder' => __('messages.price'), 'class' =>'form-control', 'required', 'pattern' => '^\\d+(\\.\\d{1,2})?$']) }}
@if(getMediaFileExit($serviceaddon, 'serviceaddon_image'))
@php $extention = imageExtention(getSingleMedia($serviceaddon,'serviceaddon_image')); @endphp #
@endif
{{ Form::label('status',__('messages.status').' ',['class'=>'form-control-label'],false) }} {{ Form::select('status',['1' => __('messages.active') , '0' => __('messages.inactive') ],old('status'),[ 'id' => 'role' ,'class' =>'form-control select2js','required']) }}
{{ Form::submit( __('messages.save'), ['class'=>'btn btn-md btn-primary float-right']) }} {{ Form::close() }}