1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- @extends('admin.layouts.app')
-
- @section('content')
- <div class="row px-5">
- <div class="col-xl-12">
- <div class="card shadow">
- <div class="card-header bg-transparent">
- <div class="row align-items-center">
- <div class="col">
- <h6 class="text-uppercase text-muted ls-1 mb-1">User Management - Khusus untuk Super Admin</h6>
- <h2 class="mb-0">Edit User</h2>
- </div>
- </div>
- </div>
- <div class="card-body">
- <form action="{{ route($route.'update_action') }}" class="form-global-handle" method="POST" enctype="multipart/form-data">
- @csrf
- <input type="hidden" name="id" value="{{ Hashids::encode($data->id) }}">
- <div class="form-group">
- <label for="RoleName">Username</label>
- <input type="text" name="name" required class="form-control" value="{{ $data->name }}" id="RoleName" placeholder="Contoh : Admin">
- </div>
- <div class="form-group">
- <label for="RoleName">Email</label>
- <input type="text" name="email" required class="form-control cek_email" data-id="{{ Hashids::encode($data->id) }}" data-route="{{ route('cek_email') }}" value="{{ $data->email }}" id="RoleName" placeholder="Contoh : sidoni@mail.com">
- </div>
- <div class="form-group">
- <label for="password">Password</label>
- <input type="password" name="password" class="form-control" id="password" placeholder="*******">
- <div>
- <small>Minimal adalah 6 karakter</small>
- </div>
- </div>
- <div class="group">
- <button type="submit" class="btn btn-success">Simpan</button>
- <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- @endsection
-
- {{-- load JS yang lu perluin, selain itu no --}}
- @push('js')
- <script src="{{ asset('assets') }}/js/blockUI.js"></script>
- <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
- <script src="{{ asset('assets') }}/js/custom.js"></script>
- @endpush
|