45 lines
2.1 KiB
PHP
45 lines
2.1 KiB
PHP
|
@extends('backend.template')
|
||
|
@section('content')
|
||
|
<!-- start page title -->
|
||
|
<div class="row">
|
||
|
<div class="col-12">
|
||
|
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
|
||
|
<h4 class="mb-sm-0">Edit User</h4>
|
||
|
<div class="page-title-right">
|
||
|
<ol class="breadcrumb m-0">
|
||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Dashboards</a></li>
|
||
|
<li class="breadcrumb-item active">Edit Usre</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- end page title -->
|
||
|
<form action="{{route('users.update',[$data->id])}}" id="updateCustomForm" method="POST">
|
||
|
@csrf <input type=hidden name='id' value='{{$data->id}}' />
|
||
|
<div class="card">
|
||
|
<div class="card-body">
|
||
|
<div class="row">
|
||
|
<div class="col-lg-12">{{createText("name","name","Name",'',$data->name)}}</div>
|
||
|
<div class="col-lg-6">
|
||
|
{{createText("username","username","Username",'',$data->username)}}</div>
|
||
|
<div class="col-lg-6 pb-2">{{createPassword("password","Password",'',$data->password)}}
|
||
|
</div>
|
||
|
<div class="col-lg-6">{{createText("email","email","Email",'',$data->email)}}</div>
|
||
|
<div class="col-lg-6">{{createCustomSelect('tbl_roles', 'title', 'role_id', $data->roles_id,
|
||
|
'Role','roles_id', 'form-control select2','status<>-1')}}</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-12">
|
||
|
<?php createButton("btn-primary btn-update","","Submit"); ?>
|
||
|
<?php createButton("btn-danger btn-cancel","","Cancel",route('users.index')); ?>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
@endsection
|