Edit File: 9c698e1220e214b83d62bbe0cad8178548f33dcb.php
<?php $__env->startSection('content'); ?> <!-- // Basic multiple Column Form section start --> <section id="multiple-column-form"> <div class="row match-height"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo e(awtTrans('عرض تفاصيل مندوب ')); ?></h4> </div> <div class="card-content"> <div class="card-body"> <form class="store form-horizontal" > <div class="form-body"> <div class="row"> <?php if($row->approve == 'pending'): ?> <div class="w-100 d-flex justify-content-center m-3 text-danger font-medium-2"> <?php if($row->user_id != null): ?> <span><?php echo e(awtTrans('طلب مقدم من المندوب رقم ')); ?> <?php echo e($row->user_id); ?></span> <?php endif; ?> </div> <?php endif; ?> <div class="col-4"> <div class="imgMontg col-12 text-center"> <div class="dropBox"> <div class="textCenter"> <div class="imagesUploadBlock"> <label class="uploadImg"> <span><i class="feather icon-image"></i></span> <input type="file" accept="image/*" name="avatar" class="imageUploader"> </label> <div class="uploadedBlock"> <img src="<?php echo e(asset('assets/uploads/users/'.$row->avatar)); ?>"> <button class="close"><i class="la la-times"></i> </button> </div> </div> </div> <span><?php echo e(awtTrans('صورة الشخصية ')); ?></span> </div> </div> </div> <div class="col-4"> <div class="imgMontg col-12 text-center"> <div class="dropBox"> <div class="textCenter"> <div class="imagesUploadBlock"> <label class="uploadImg"> <span><i class="feather icon-image"></i></span> <input type="file" accept="image/*" name="_image" class="imageUploader"> </label> <div class="uploadedBlock"> <img src="<?php echo e($delegateRequest->drivingLicenseImagePath); ?>"> <button class="close"><i class="la la-times"></i> </button> </div> </div> </div> <span><?php echo e(awtTrans('صورة رخصة القيادة ')); ?></span> </div> </div> </div> <div class="col-4"> <div class="imgMontg col-12 text-center"> <div class="dropBox"> <div class="textCenter"> <div class="imagesUploadBlock"> <label class="uploadImg"> <span><i class="feather icon-image"></i></span> <input type="file" accept="image/*" name="car_license_image" class="imageUploader"> </label> <div class="uploadedBlock"> <img src="<?php echo e($delegateRequest->CarLicenseImagePath); ?>"> <button class="close"><i class="la la-times"></i> </button> </div> </div> </div> <span><?php echo e(awtTrans(' رخصة السيارة ')); ?></span> </div> </div> </div> <div class="col-4"> <div class="imgMontg col-12 text-center"> <div class="dropBox"> <div class="textCenter"> <div class="imagesUploadBlock"> <label class="uploadImg"> <span><i class="feather icon-image"></i></span> <input type="file" accept="image/*" name="identity_card_image" class="imageUploader"> </label> <div class="uploadedBlock"> <img src="<?php echo e($delegateRequest->identityCardImagePath); ?>"> <button class="close"><i class="la la-times"></i> </button> </div> </div> </div> <span><?php echo e(awtTrans('صورة الهوية الوطنية')); ?></span> </div> </div> </div> <div class="col-md-12 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('الاسم')); ?></label> <div class="controls"> <input type="text" value="<?php echo e($row->name); ?>" name="name" class="form-control" placeholder="<?php echo e(awtTrans('اكتب الاسم')); ?>" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> </div> </div> </div> <div class="col-md-12 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('رقم الجوال')); ?></label> <div class="controls"> <select style="width: 20% ; position: absolute; left: 3%;" name="country_key" class="select2 form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e($row->country_key == $key->calling_code ? 'selected' : ''); ?> value="<?php echo e($key->calling_code); ?>"><?php echo e($key->calling_code); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <input type="number" value="<?php echo e('0' . $row->phone); ?>" name="phone" class="form-control" minlength="9" placeholder="<?php echo e(awtTrans('اكتب رقم الجوال')); ?>" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>" data-validation-number-message="<?php echo e(awtTrans('هذا الحقل يجب ان يكون رقما')); ?>" data-validation-minlength-message="<?php echo e(awtTrans('هذا الحقل يجب الا يقل عن ٩ ارقام')); ?>"> </div> </div> </div> <!--<div class="col-md-6 col-12">--> <!-- <div class="form-group">--> <!-- <label for="first-name-column"><?php echo e(awtTrans('البريد الالكتروني')); ?></label>--> <!-- <div class="controls">--> <!-- <input type="email" value="<?php echo e($row->email); ?>" name="email"--> <!-- class="form-control"--> <!-- placeholder="<?php echo e(awtTrans('اكتب البريد الالكتروني')); ?>" required--> <!-- data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"--> <!-- data-validation-email-message="<?php echo e(awtTrans('هذا الحقل مطلوب بصيغة بريد الكترونى')); ?>">--> <!-- </div>--> <!-- </div>--> <!--</div>--> <!--<div class="col-md-6 col-12">--> <!-- <div class="form-group">--> <!-- <label for="first-name-column"><?php echo e(awtTrans('كلمة السر')); ?></label>--> <!-- <div class="controls">--> <!-- <input type="password" name="password" class="form-control">--> <!-- </div>--> <!-- </div>--> <!--</div>--> <div class="col-md-12 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('رقم الايبان ')); ?></label> <div class="controls"> <input type="text" value="<?php echo e($delegateRequest->bank_iban_number); ?>" name="bank_iban_number" id="" class="form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> </div> </div> </div> <div class="col-md-12 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('رقم الحساب البنكي ')); ?></label> <div class="controls"> <input type="number" value="<?php echo e($delegateRequest->bank_account_number); ?>" name="bank_acc_number" id="" class="form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>" data-validation-number-message="<?php echo e(awtTrans('هذا الحقل يجب ان يكون رقما')); ?>"> </div> </div> </div> <div class="col-md-6 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('اسم البنك ')); ?></label> <div class="controls"> <input type="text" name="bank_name" value="<?php echo e($delegateRequest->bank_name); ?>" id="" class="form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> </div> </div> </div> <!--<div class="col-md-6 col-12">--> <!-- <div class="form-group">--> <!-- <label for="first-name-column"><?php echo e(awtTrans('اسم الكفيل ')); ?></label>--> <!-- <div class="controls">--> <!-- <input type="text" value="<?php echo e($delegateRequest->sponsor_name); ?>"--> <!-- name="sponsor_name" id="" class="form-control">--> <!-- </div>--> <!-- </div>--> <!--</div>--> <div class="col-md-6 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('المحفظة')); ?></label> <div class="controls"> <input type="number" step="0.1" min="0" value="<?php echo e($row->wallet); ?>" name="wallet" id="" class="form-control" data-validation-number-message="<?php echo e(awtTrans('هذا الحقل يجب ان يكون رقما')); ?>"> </div> </div> </div> <div class="col-md-6 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('رقم الهوية الوطنية ')); ?></label> <div class="controls"> <input type="text" value="<?php echo e($delegateRequest->identity_card_number); ?>" name="identity_card_number" id="" class="form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> </div> </div> </div> <!--<div class="col-12">--> <!-- <div class="form-group">--> <!-- <label for="first-name-column"><?php echo e(awtTrans('تاريخ ميلاد السائق--> <!-- ')); ?></label>--> <!-- <div class="controls">--> <!-- <input type="date"--> <!-- value="<?php echo e($delegateRequest->driver_date_of_birth); ?>"--> <!-- name="driver_date_of_birth" id="" class="form-control" required--> <!-- data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>">--> <!-- </div>--> <!-- </div>--> <!--</div>--> <div class="col-md-6 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('نوع السيارة')); ?></label> <div class="controls"> <select name="car_type_id" class="select2 form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> <option value><?php echo e(awtTrans('اختر نوع السيارة')); ?></option> <?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e($delegateRequest->car_type_id == $type->id ? 'selected' : ''); ?> value="<?php echo e($type->id); ?>"><?php echo e($type->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <div class="col-md-6 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans(' القسم')); ?></label> <div class="controls"> <select name="category_id" class="select2 form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> <option value><?php echo e(awtTrans('اختر القسم')); ?></option> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e($delegateRequest->category_id == $category->id ? 'selected' : ''); ?> value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <div class="col-md-6 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans(' المدينة')); ?></label> <div class="controls"> <select name="city_id" class="select2 form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $city): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e($row->city_id == $city->id ? 'selected' : ''); ?> value="<?php echo e($city->id); ?>"><?php echo e($city->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <div class="col-md-6 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('ارقام لوحة السيارة ')); ?></label> <div class="controls"> <input type="text" value="<?php echo e($delegateRequest->car_numbers); ?>" name="car_numbers" class="form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> </div> </div> </div> <div class="col-md-12 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('الحالة')); ?></label> <div class="controls"> <select name="status" class="select2 form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>"> <option disabled value><?php echo e(awtTrans('اختر حالة التفعيل')); ?> </option> <option <?php echo e($row->status == 'pending' ? 'selected' : ''); ?> value="pending"><?php echo e(awtTrans('فى انتظار التفعيل ')); ?> </option> <option <?php echo e($row->status == 'active' ? 'selected' : ''); ?> value="active"><?php echo e(awtTrans(' فعال')); ?></option> <option <?php echo e($row->status == 'block' ? 'selected' : ''); ?> value="block"><?php echo e(awtTrans(' محظور')); ?></option> </select> </div> </div> </div> <?php if($row->approve == 'pending'): ?> <div class="col-12 d-flex justify-content-center mt-3"> <!--<a href="<?php echo e(url('admin/delegates/accept-refuse/approved/'.$delegateRequest->id)); ?>" class="btn btn-primary mr-1 mb-1"><?php echo e(awtTrans('قبول')); ?></a>--> <!--<a href="<?php echo e(url('admin/delegates/accept-refuse/rejected/'.$delegateRequest->id)); ?>" class="btn btn-danger mr-1 mb-1"><?php echo e(awtTrans('رفض')); ?></a>--> <i class="btn btn-primary mr-1 mb-1 accept_company" style="font-size: 25px" data-status="approved" data-id="<?php echo e($delegateRequest->id); ?>"><?php echo e(awtTrans('قبول')); ?></i> <i class="btn btn-danger mr-1 mb-1 accept_company" style="font-size: 25px" data-status="rejected" data-id="<?php echo e($delegateRequest->id); ?>"> <?php echo e(awtTrans('رفض')); ?></i> </div> <?php endif; ?> </div> </div> </form> </div> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php $__env->startSection('js'); ?> <script> var lat = $('#lat').val(); var long = $('#lng').val(); </script> <?php if($row->user && $row->user->lat != NULL && $row->user->long != NULL): ?> <script async defer src="https://maps.googleapis.com/maps/api/js?key=<?php echo e($settings['google_places']); ?>&callback=initMap" type="text/javascript"></script> <script> (function(exports) { "use strict"; function initMap() { const myLatLng = { lat: Number(lat), lng: Number(long)}; const map = new google.maps.Map(document.getElementById("map"), { zoom: 14, center: myLatLng, }); new google.maps.Marker({ position: myLatLng, map, title: "Hello World!", }); } exports.initMap = initMap; })((this.window = this.window || {})); </script> <?php endif; ?> <script> $('.store input').attr('disabled' , true) $('.store textarea').attr('disabled' , true) $('.store select').attr('disabled' , true) </script> <script> $(document).on('click', '.accept_company', function (e) { let status = $(this).data('status'); let id = $(this).data('id'); e.preventDefault() $.ajax({ type: "post", url: "<?php echo e(route('admin.delegates.acceptOrRefuse')); ?>", data: {status: $(this).data('status'), id: $(this).data('id')}, dataType: "json", success: (response) => { $(this).parent().parent().remove() if (response.status == 'refused') { toastr.error(response.message) setTimeout(function() { window.location.replace(response.url); }, 2000); } else { toastr.success(response.message) window.location.replace(response.url) } } }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/satransi/public_html/resources/views/admin/delegates/request_show.blade.php ENDPATH**/ ?>
Back to File Manager