@include('admin.components.forms.text', ['name'=>'name', 'type'=>'text', 'label'=>__('auth.clinic_name')]) @if(app('request')->route()->getName() == 'admin.users.edit') @include('admin.components.forms.text', ['name'=>'email', 'type'=>'email', 'label'=>__('auth.email'), 'isReadonly'=>true]) @endif @if(app('request')->route()->getName() == 'admin.users.create') @include('admin.components.forms.text', ['name'=>'email', 'type'=>'email', 'label'=>__('auth.email')]) @include('admin.components.forms.text', ['name'=>'password', 'type'=>'password', 'label'=>__('auth.password')]) @include('admin.components.forms.text', ['name'=>'password_confirmation', 'type'=>'password', 'label'=>__('auth.retype_password')]) @endif @if($clinic) @include('admin.components.forms.text', ['name'=>'phone', 'type'=>'tel', 'label'=>__('auth.phone_number'), 'model'=>$clinic]) @include('admin.components.forms.textarea', ['name'=>'address', 'label'=>__('auth.address'), 'model'=>$clinic]) @include('admin.components.forms.textarea', ['name'=>'address_2', 'label'=>__('auth.address').' 2', 'model'=>$clinic]) @include('admin.components.forms.text', ['name'=>'city', 'type'=>'text', 'label'=>__('auth.city'), 'model'=>$clinic]) @include('admin.components.forms.text', ['name'=>'province', 'type'=>'text', 'label'=>__('auth.province'), 'model'=>$clinic]) @include('admin.components.forms.text', ['name'=>'postal_code', 'type'=>'text', 'label'=>__('auth.postal_code'), 'model'=>$clinic]) @endif