@if ($regional_branch->id) {!! Form::model($regional_branch, ['route' => ['admin.companies.regional-branches.update', $company, $regional_branch], 'method' => 'PUT']) !!} @else {!! Form::model($regional_branch, ['route' => ['admin.companies.regional-branches.store', $company], 'method' => 'POST']) !!} @endif
{{-- company --}}
{{ Form::label('service_provider', __('Service Provider'), ['class' => 'col-form-label']) }} {!! Form::text('service_provider', $company->name, [ 'class' => 'form-control', 'placeholder' => __('Service Provider'), 'disabled' => true ]) !!}
{{ Form::label('name', __('Name'), ['class' => 'col-form-label']) }} {!! Form::text('name', null, [ 'class' => 'form-control', 'placeholder' => __('Name') ]) !!}
{{-- country_id --}}
{{ Form::label('country_id', __('Country'), ['class' => 'col-form-label']) }} {!! Form::select('country_id', $regional_branch?->id ? [$regional_branch->country_id => $regional_branch->country->name] : [], null, [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => __('Select Country'), 'data-allow-clear' => 'true', 'data-remote' => route('resource-select', ['Country']) ]) !!}
{{-- regional CR --}}
{{ Form::label('regional_cr', __('Regional CR'), ['class' => 'col-form-label']) }} {!! Form::text('regional_cr', null, [ 'class' => 'form-control', 'placeholder' => __('Regional CR') ]) !!}
{{-- regional Vat --}}
{{ Form::label('regional_vat', __('Regional VAT'), ['class' => 'col-form-label']) }} {!! Form::text('regional_vat', null, [ 'class' => 'form-control', 'placeholder' => __('Regional VAT') ]) !!}
{!! Form::close() !!}