{{ $pageTitle ?? __('messages.list') }}
{{ __('messages.back') }} @if($auth_user->can('providertype list')) @endif
{{ html()->form('POST', route('providertype.store'))->attribute('data-toggle', 'validator')->id('providertype')->open()}} {{ html()->hidden('id',$providertypedata->id ?? null) }} @include('partials._language_toggale') @foreach($language_array as $language)
@foreach(['name' => __('messages.name')] as $field => $label)
{{ html()->label($label . ($field === 'name' ? ' *' : ''), $field)->class('form-control-label language-label') }} @php $value = $language['id'] == 'en' ? $providertypedata ? $providertypedata->translate($field, 'en') : '' : ($providertypedata ? $providertypedata->translate($field, $language['id']) : ''); $name = $language['id'] == 'en' ? $field : "translations[{$language['id']}][$field]"; @endphp @if($field === 'name') {{ html()->text($name, $value) ->placeholder($label) ->class('form-control') ->attribute('title', 'Please enter alphabetic characters and spaces only') ->attribute('data-required', 'true') }} @endif
@endforeach
@endforeach
{{ html()->label(__('messages.commission') . ' *', 'commission')->class('form-control-label') }} {{ html()->number('commission',$providertypedata->commission)->attributes(['min' => 0,'step' => 'any'])->placeholder(__('messages.commission'))->class('form-control')}}
{{ html()->label(__('messages.select_name', ['select' => __('messages.type')]) . ' *', 'type')->class('form-control-label') }}
{{ html()->select('type', ['percent' => __('messages.percent'), 'fixed' => __('messages.fixed')], $providertypedata->type)->id('type')->class('form-select select2js')->required()}} {{ __('messages.hint') }}
{{ html()->label(__('messages.status') . ' *', 'status')->class('form-control-label') }} {{ html()->select('status', ['1' => __('messages.active'), '0' => __('messages.inactive')], $providertypedata->status)->id('role')->class('form-select select2js')->required()}}
{{ html()->submit(__('messages.save'))->class('btn btn-md btn-primary float-end') }} {{ html()->form()->close() }}