@extends('organizations.layouts.default') @section('content') {!! htmlScriptTagJsApi() !!}
@include('organizations.layouts.partials.breadcrumb')

{{ html()->modelForm($model, getMethod($model), getMethod($model) == 'POST' ? route('organization.' . $route . '.store') : route('organization.' . $route . '.update', $model->id))->id('form-validator')->acceptsFiles()->open() }}
{{ ym_input([ 'label' => __('form.Name'), 'type' => 'text', 'name' => 'name', 'required' => true, 'value' => $model->name, ]) }} {{ ym_input([ 'label' => __('form.Phone'), 'type' => 'text', 'name' => 'phone', 'required' => true, 'value' => $model->phone, ]) }} {{ ym_input([ 'label' => __('form.Designation'), 'type' => 'text', 'name' => 'designation', 'required' => true, 'value' => $model->designation, ]) }} {{ ym_input([ 'label' => __('form.Email'), 'type' => 'email', 'name' => 'email', 'required' => true, 'value' => $model->email, ]) }} @if (!$model->exists) {{ ym_input([ 'label' => __('form.password'), 'type' => 'password', 'name' => 'password', 'required' => true, 'placeholder' => 'xxxxxxxxx', ]) }} {{ ym_input([ 'label' => __('form.confirm_password'), 'type' => 'password', 'name' => 'password_confirmation', 'required' => true, 'placeholder' => 'xxxxxxxxx', ]) }} @endif {{-- {{ ym_input([ 'label' => __('form.Date of Birth'), 'type' => 'date', 'name' => 'dob', 'required' => true, 'value' => $model->dob, ]) }} --}} {{ ym_select([ 'label' => __('form.Gender'), 'name' => 'gender', 'required' => true, 'value' => $model->gender, 'options' => config('dropdown.gender'), 'placeholder' => 'Select', ]) }}
Select permissions for this user

@foreach (config('dropdown.org_user_permissions') as $key => $permission) @php $per = $model->userPermissions->where('permission_id', $key)->first(); @endphp @endforeach
@error('org_user_permissions') {{ $message }} @enderror
{{--
Current file
--}}
{{ __('form.Cancel') }}
{{ html()->closeModelForm() }}
@endsection