@extends('layouts.admin') @section('buttons') @canany(['add', 'update'], $record) @endcan @can('delete', $record) @endcan Back @endsection @section('content')
@csrf
@csrf
{{ $config['page_name'] }}
Basic Information
@row([ 'type' => 'textinput', 'field' => 'name', ]) @row([ 'type' => 'textinput', 'field' => 'username', ]) @row([ 'type' => 'textinput', 'field' => 'email', 'options' => [ 'input_type' => 'email' ] ]) @row([ 'type' => 'select', 'field' => 'role_id', 'title' => 'Role', 'options' => [ 'placeholder' => [ 'title' => 'Please Select', 'value' => '' ], 'value_key' => 'id', 'list' => $roles ] ]) @if(!empty($id))
Reset Password
@endif @row([ 'type' => 'textinput', 'field' => 'new_password', 'title' => 'Password', 'remark' => 'At least 8 characters', 'options' => [ 'input_type' => 'password', ] ]) @row([ 'type' => 'textinput', 'field' => 'new_password_confirmation', 'title' => 'Password Confirmation', 'options' => [ 'input_type' => 'password', ] ]) @if(!empty($id)) @row([ 'type' => 'textinput', 'field' => 'current_admin_password', 'options' => [ 'input_type' => 'password', ] ]) @endif @include('admin.base.status')
@include('admin.base.footer')
@endsection @section('js') @endsection