Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
painelestilopetshop.meupet.app
/
storage
/
framework
/
views
/
Editing: 33db12ca4c12733437bfeb97e32e5612e16c6d7a.php
<?php $__env->startSection('title', translate('Update delivery-man')); ?> <?php $__env->startPush('css_or_js'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <div class="row align-items-center"> <div class="col-sm mb-2 mb-sm-0"> <h1 class="page-header-title"><i class="tio-edit"></i> <?php echo e(\App\CentralLogics\translate('update')); ?> <?php echo e(\App\CentralLogics\translate('deliveryman')); ?></h1> </div> </div> </div> <!-- End Page Header --> <div class="row gx-2 gx-lg-3"> <div class="col-sm-12 col-lg-12 mb-3 mb-lg-2"> <form action="<?php echo e(route('admin.delivery-man.update',[$delivery_man['id']])); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-md-6 col-12"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('first')); ?> <?php echo e(\App\CentralLogics\translate('name')); ?></label> <input type="text" value="<?php echo e($delivery_man['f_name']); ?>" name="f_name" class="form-control" placeholder="<?php echo e(translate('New delivery-man')); ?>" required> </div> </div> <div class="col-md-6 col-12"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('last')); ?> <?php echo e(\App\CentralLogics\translate('name')); ?></label> <input type="text" value="<?php echo e($delivery_man['l_name']); ?>" name="l_name" class="form-control" placeholder="<?php echo e(translate('Last Name')); ?>" required> </div> </div> </div> <div class="row"> <div class="col-md-4 col-12"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('email')); ?></label> <input type="email" value="<?php echo e($delivery_man['email']); ?>" name="email" class="form-control" placeholder="<?php echo e(translate('Ex : ex@example.com')); ?>" required> </div> </div> <div class="col-md-4 col-12"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('phone')); ?></label> <input type="text" name="phone" value="<?php echo e($delivery_man['phone']); ?>" class="form-control" placeholder="<?php echo e(translate('Ex : 017********')); ?>" required> </div> </div> <div class="col-md-4 col-12"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('branch')); ?></label> <select name="branch_id" class="form-control"> <option value="0" <?php echo e($delivery_man['branch_id']==0?'selected':''); ?>><?php echo e(\App\CentralLogics\translate('all')); ?></option> <?php $__currentLoopData = \App\Model\Branch::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($branch['id']); ?>" <?php echo e($delivery_man['branch_id']==$branch['id']?'selected':''); ?>><?php echo e($branch['name']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <div class="row"> <div class="col-md-6 col-12"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('identity')); ?> <?php echo e(\App\CentralLogics\translate('type')); ?></label> <select name="identity_type" class="form-control"> <option value="passport" <?php echo e($delivery_man['identity_type']=='passport'?'selected':''); ?>> <?php echo e(\App\CentralLogics\translate('passport')); ?> </option> <option value="driving_license" <?php echo e($delivery_man['identity_type']=='driving_license'?'selected':''); ?>> <?php echo e(\App\CentralLogics\translate('driving')); ?> <?php echo e(\App\CentralLogics\translate('license')); ?> </option> <option value="nid" <?php echo e($delivery_man['identity_type']=='nid'?'selected':''); ?>><?php echo e(\App\CentralLogics\translate('nid')); ?> </option> <option value="restaurant_id" <?php echo e($delivery_man['identity_type']=='restaurant_id'?'selected':''); ?>> <?php echo e(\App\CentralLogics\translate('restaurant')); ?> <?php echo e(\App\CentralLogics\translate('id')); ?> </option> </select> </div> </div> <div class="col-md-6 col-12"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('identity')); ?> <?php echo e(\App\CentralLogics\translate('number')); ?></label> <input type="text" name="identity_number" value="<?php echo e($delivery_man['identity_number']); ?>" class="form-control" placeholder="<?php echo e(translate('Ex : DH-23434-LS')); ?>" required> </div> </div> <div class="col-md-12 col-12"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('identity')); ?> <?php echo e(\App\CentralLogics\translate('image')); ?></label> <div> <div class="row" id="coba"></div> </div> </div> </div> <div class="col-12"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('identity')); ?> <?php echo e(\App\CentralLogics\translate('images')); ?> : </label> </div> </div> <br> <?php $__currentLoopData = json_decode($delivery_man['identity_image'],true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $img): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-4 col-12 mb-2"> <img height="150" src="<?php echo e(asset('storage/app/public/delivery-man').'/'.$img); ?>"> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <hr> </div> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('password')); ?></label> <input type="text" name="password" class="form-control" placeholder="<?php echo e(translate('Ex : password')); ?>"> </div> <div class="form-group"> <label><?php echo e(\App\CentralLogics\translate('deliveryman')); ?> <?php echo e(\App\CentralLogics\translate('image')); ?></label><small style="color: red">* ( <?php echo e(\App\CentralLogics\translate('ratio')); ?> 1:1 )</small> <div class="custom-file"> <input type="file" name="image" id="customFileEg1" class="custom-file-input" accept=".jpg, .png, .jpeg, .gif, .bmp, .tif, .tiff|image/*"> <label class="custom-file-label" for="customFileEg1"><?php echo e(\App\CentralLogics\translate('choose')); ?> <?php echo e(\App\CentralLogics\translate('file')); ?></label> </div> <hr> <center> <img style="height: 200px;border: 1px solid; border-radius: 10px;" id="viewer" src="<?php echo e(asset('storage/app/public/delivery-man').'/'.$delivery_man['image']); ?>" alt="delivery-man image"/> </center> </div> <hr> <button type="submit" class="btn btn-primary"><?php echo e(\App\CentralLogics\translate('submit')); ?></button> </form> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script_2'); ?> <script> function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#viewer').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } $("#customFileEg1").change(function () { readURL(this); }); </script> <script src="<?php echo e(asset('public/assets/admin/js/spartan-multi-image-picker.js')); ?>"></script> <script type="text/javascript"> $(function () { $("#coba").spartanMultiImagePicker({ fieldName: 'identity_image[]', maxCount: 5, rowHeight: '120px', groupClassName: 'col-2', maxFileSize: '', placeholderImage: { image: '<?php echo e(asset('public/assets/admin/img/400x400/img2.jpg')); ?>', width: '100%' }, dropFileLabel: "Drop Here", onAddRow: function (index, file) { }, onRenderedPreview: function (index) { }, onRemoveRow: function (index) { }, onExtensionErr: function (index, file) { toastr.error('<?php echo e(translate("Please only input png or jpg type file")); ?>', { CloseButton: true, ProgressBar: true }); }, onSizeErr: function (index, file) { toastr.error('<?php echo e(translate("File size too big")); ?>', { CloseButton: true, ProgressBar: true }); } }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/meumer25/api.meumercado.app/resources/views/admin-views/delivery-man/edit.blade.php ENDPATH**/ ?>
Save
Cancel