This commit is contained in:
meusinfirmary
2025-06-17 10:05:09 +09:00
parent 7b85e1e376
commit 564a18ce8f
2 changed files with 12 additions and 12 deletions

View File

@ -115,7 +115,7 @@ class DriversController extends Controller
]; ];
$rulesInput = [ $rulesInput = [
"ktp_photo" => "nullable|string", // required "ktp_photo" => "nullable|string", // required
"nik" => "nullable|integer", // required "nik" => "nullable", // required
"fullname" => "required|string|min:3|max:125", "fullname" => "required|string|min:3|max:125",
"phone" => "required|integer|not_in:0", "phone" => "required|integer|not_in:0",
"email" => "nullable|email", // required "email" => "nullable|email", // required
@ -240,7 +240,7 @@ class DriversController extends Controller
"fulladdress" => $req->fulladdress, "fulladdress" => $req->fulladdress,
"password" => Hash::make("0" . $req->phone), "password" => Hash::make("0" . $req->phone),
"role" => Users::ROLE_VENDOR_DRIVER, "role" => Users::ROLE_VENDOR_DRIVER,
"is_driver" => 1, "is_driver" => 0,
"status" => 1, "status" => 1,
"crt" => $now, "crt" => $now,
"crt_by" => $req->auth->uid, "crt_by" => $req->auth->uid,

View File

@ -11,8 +11,8 @@
@section('customcss') @section('customcss')
<style> <style>
/* .select2-container { /* .select2-container {
z-index: 99999; z-index: 99999;
} */ } */
</style> </style>
@endsection @endsection
@ -141,7 +141,7 @@
<div class="col-6"> <div class="col-6">
<div class="mb-0"> <div class="mb-0">
<label for="add-nik" class="col-form-label">ID Number</label> <label for="add-nik" class="col-form-label">ID Number</label>
<input type="number" id="add-nik" class="form-control"> <input type="text" id="add-nik" class="form-control">
</div> </div>
<div class="mb-0"> <div class="mb-0">
<label for="add-dob" class="col-form-label">Date of Birth</label> <label for="add-dob" class="col-form-label">Date of Birth</label>
@ -298,7 +298,7 @@
<div class="col-6"> <div class="col-6">
<div class="mb-0"> <div class="mb-0">
<label for="edt-nik" class="col-form-label">ID Number</label> <label for="edt-nik" class="col-form-label">ID Number</label>
<input type="number" id="edt-nik" class="form-control"> <input type="text" id="edt-nik" class="form-control">
</div> </div>
<div class="mb-0"> <div class="mb-0">
<label for="edt-dob" class="col-form-label">Date of Birth</label> <label for="edt-dob" class="col-form-label">Date of Birth</label>
@ -1283,8 +1283,8 @@
let fileSize = window.atob(pureDataURL).length // in Byte let fileSize = window.atob(pureDataURL).length // in Byte
// (fileSize/1000) + ' Kb' // (fileSize/1000) + ' Kb'
$('#add-group_' + x + '_spinner').addClass('d-none'); $('#add-group_' + x + '_spinner').addClass('d-none');
$('#add-' + x + '-status').html('Compressed') // $('#add-' + x + '-status').html('Compressed')
$('#add-' + x + '-filesize').html('<samp>(' + fileSize / 1000 + ' Kb)</samp>') // $('#add-' + x + '-filesize').html('<samp>(' + fileSize / 1000 + ' Kb)</samp>')
$('#add-' + x + '-img').attr('src', res.data) $('#add-' + x + '-img').attr('src', res.data)
$('#add-' + x + '-img').removeClass('d-none') $('#add-' + x + '-img').removeClass('d-none')
$('#add-' + x + '-base64').val(res.data) $('#add-' + x + '-base64').val(res.data)
@ -1361,7 +1361,7 @@
DUploadAdd.readFile(reader, newFile); DUploadAdd.readFile(reader, newFile);
$('#add-' + x + '-filesize').html('') $('#add-' + x + '-filesize').html('')
$('#add-' + x + '-status').html('Loading on compressing...') // $('#add-' + x + '-status').html('Loading on compressing...')
// $('#add-' + x + '-img').attr('src', '') // $('#add-' + x + '-img').attr('src', '')
$('#add-' + x + '-base64').val('') $('#add-' + x + '-base64').val('')
} else { } else {
@ -1518,8 +1518,8 @@
let fileSize = window.atob(pureDataURL).length // in Byte let fileSize = window.atob(pureDataURL).length // in Byte
// (fileSize/1000) + ' Kb' // (fileSize/1000) + ' Kb'
$('#edt-group_' + x + '_spinner').addClass('d-none'); $('#edt-group_' + x + '_spinner').addClass('d-none');
$('#edt-' + x + '-status').html('Compressed') // $('#edt-' + x + '-status').html('Compressed')
$('#edt-' + x + '-filesize').html('<samp>(' + fileSize / 1000 + ' Kb)</samp>') // $('#edt-' + x + '-filesize').html('<samp>(' + fileSize / 1000 + ' Kb)</samp>')
$('#edt-' + x + '-img').attr('src', res.data) $('#edt-' + x + '-img').attr('src', res.data)
$('#edt-' + x + '-img').removeClass('d-none'); $('#edt-' + x + '-img').removeClass('d-none');
$('#edt-' + x + '-base64').val(res.data) $('#edt-' + x + '-base64').val(res.data)
@ -1596,7 +1596,7 @@
DUploadEdt.readFile(reader, newFile); DUploadEdt.readFile(reader, newFile);
$('#edt-' + x + '-filesize').html('') $('#edt-' + x + '-filesize').html('')
$('#edt-' + x + '-status').html('Loading on compressing...') // $('#edt-' + x + '-status').html('Loading on compressing...')
// $('#edt-' + x + '-img').attr('src', '') // $('#edt-' + x + '-img').attr('src', '')
$('#edt-' + x + '-base64').val('') $('#edt-' + x + '-base64').val('')
} else { } else {