Edit File: 9a109a180db2d81a7210850b95b5552f8ff79a8c.php
<?php use Illuminate\Support\Carbon; ?> <?php $__env->startSection('css'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('admin/app-assets/css-rtl/plugins/forms/validation/form-validation.css')); ?>"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('admin/app-assets/vendors/css/extensions/sweetalert2.min.css')); ?>"> <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" /> <?php $__env->stopSection(); ?> <?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 method="POST" action="<?php echo e(route('admin.delegates.store')); ?>" class="store form-horizontal" novalidate> <?php echo csrf_field(); ?> <div class="form-body"> <div class="row"> <div class="col-12 flex-wrap d-flex"> <div class="col-lg-3 col-md-6"> <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> </div> <span><?php echo e(awtTrans('صورة الشخصية ')); ?></span> </div> </div> </div> <div class="col-lg-3 col-md-6"> <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="driving_license_image" class="imageUploader"> </label> </div> </div> <span><?php echo e(awtTrans('صورة رخصة القيادة ')); ?></span> </div> </div> </div> <div class="col-lg-3 col-md-6"> <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> </div> <span><?php echo e(awtTrans('صورة رخصة السياره')); ?></span> </div> </div> </div> <div class="col-lg-3 col-md-6"> <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> </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" 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 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" 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" 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" 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" name="bank_iban_number" id="" placeholder="SAxxxxxxxxxxxxxxxxxxxxxx" 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="number" name="bank_account_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" 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="number" step="0.1" min="0" 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="number" name="identity_card_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">--> <!-- <select name="nationality_id" class="select2 form-control" required--> <!-- data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>">--> <!-- <option value><?php echo e(awtTrans('اختر الجنسية')); ?></option>--> <!-- <?php $__currentLoopData = $nationalities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $nationality): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>--> <!-- <option value="<?php echo e($nationality->id); ?>"><?php echo e($nationality->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="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 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 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('هذا الحقل مطلوب')); ?>"> <option value><?php echo e(awtTrans('اختر المدينة')); ?></option> <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $city): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option 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('اسم شركة المناديب')); ?>--> <!-- (<?php echo e(awtTrans('اختياري')); ?>)</label>--> <!-- <div class="controls">--> <!-- <select name="company_id" class="select2 form-control">--> <!-- <option value><?php echo e(awtTrans('اختر الشركه')); ?></option>--> <!-- <?php $__currentLoopData = $companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>--> <!-- <option value="<?php echo e($company->id); ?>"><?php echo e($company->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="number" name="car_numbers" 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-12 d-flex justify-content-center mt-3"> <button type="submit" class="btn btn-primary mr-1 mb-1 submit_button"><?php echo e(awtTrans('اضافة')); ?></button> <a href="<?php echo e(url()->previous()); ?>" type="reset" class="btn btn-outline-warning mr-1 mb-1"><?php echo e(awtTrans(' رجوع ')); ?></a> </div> </div> </div> </form> </div> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php $__env->startSection('js'); ?> <script src="<?php echo e(asset('admin/app-assets/vendors/js/forms/validation/jqBootstrapValidation.js')); ?>"></script> <script src="<?php echo e(asset('admin/app-assets/js/scripts/forms/validation/form-validation.js')); ?>"></script> <script src="<?php echo e(asset('admin/app-assets/vendors/js/extensions/sweetalert2.all.min.js')); ?>"></script> <script src="<?php echo e(asset('admin/app-assets/js/scripts/extensions/sweet-alerts.js')); ?>"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> <script> $(document).ready(function () { $('.select2').select2(); }); </script> <script> $(document).on('change', '#country_id', function () { var value = $(this).val(); $.ajax({ url: '<?php echo e(route('admin.delegates.getCities')); ?>', method: 'post', data: { _token: '<?php echo e(csrf_token()); ?>', country_id: value, }, success: function (response) { if (response.key == 'success') { $('#cities-div').html(` <div class="form-group" id=""> <label for="first-name-column"><?php echo e(awtTrans('المدن ')); ?></label> <div class="controls"> <select name="city_id" id="city_id" class="select2 form-control" required data-validation-required-message="<?php echo e(awtTrans('هذا الحقل مطلوب')); ?>" > ${response.html} </select> </div> </div> `); } }, error: function (xhr) { Swal.fire({ position: 'top-center', type: 'error', title: '<?php echo e(awtTrans('عذراًً يوجد خطأ ما !!!')); ?>', showConfirmButton: true, timer: 10000, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }, }); }); </script> <script> $(document).keypress( function (event) { if (event.which == '13') { event.preventDefault(); } }); function initMap() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (p) { const myLatlng = { lat: p.coords.latitude, lng: p.coords.longitude }; const map = new google.maps.Map(document.getElementById("map"), { zoom: 18, center: myLatlng, mapTypeControl: false, streetViewControl: false, }); $('#lat').val(p.coords.latitude) $('#lng').val(p.coords.longitude) GetAddress(new google.maps.LatLng(p.coords.latitude, p.coords.longitude)) // var input = document.getElementById('searchTextField'); // var autocomplete = new google.maps.places.Autocomplete(input); // const geocoder = new google.maps.Geocoder(); // document.getElementById("searchTextField").addEventListener("keyup", () => { // geocodeAddress(geocoder, map); // }); // document.getElementById("searchTextField").addEventListener("change", () => { // geocodeAddress(geocoder, map); // }); var marker = new google.maps.Marker({ position: new google.maps.LatLng(p.coords.latitude, p.coords.longitude), map: map, title: 'Set lat/lon values for this property', draggable: true, streetViewControl: false, }); google.maps.event.addListener(marker, 'dragend', function (event) { document.getElementById("lat").value = this.getPosition().lat(); document.getElementById("lng").value = this.getPosition().lng(); GetAddress(new google.maps.LatLng(marker.getPosition().lat(), marker.getPosition().lng())) }); google.maps.event.addListener(map, 'click', function (event) { $('#lat').val(event.latLng.lat()) $('#lng').val(event.latLng.lng()) marker.setPosition(event.latLng); map.setCenter(event.latLng); map.setZoom(18); GetAddress(new google.maps.LatLng(event.latLng.lat(), event.latLng.lng())) }); }); } } function GetAddress(latlng) { var geocoder = geocoder = new google.maps.Geocoder(); geocoder.geocode({'latLng': latlng}, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { if (results[1]) { $("textarea#text").value = results[1].formatted_address; document.getElementById("address").value = results[1].formatted_address; document.getElementById("searchTextField").value = results[1].formatted_address; } } }); } function geocodeAddress(geocoder, resultsMap) { const address = document.getElementById("searchTextField").value; geocoder.geocode({address: address}, (results, status) => { if (status === "OK") { $('#lat').val(results[0].geometry.location.lat()) $('#lng').val(results[0].geometry.location.lng()) resultsMap.setCenter(results[0].geometry.location); const myLatlng = { lat: results[0].geometry.location.lat(), lng: results[0].geometry.location.lng() }; const map = new google.maps.Map(document.getElementById("map"), { zoom: 18, center: myLatlng, mapTypeControl: false, streetViewControl: false, }); var marker = new google.maps.Marker({ position: new google.maps.LatLng(results[0].geometry.location.lat(), results[0].geometry.location.lng()), map: map, title: 'Set lat/lon values for this property', draggable: true, streetViewControl: false, }); google.maps.event.addListener(marker, 'dragend', function (event) { document.getElementById("latitude").value = this.getPosition().lat(); document.getElementById("longitude").value = this.getPosition().lng(); }); google.maps.event.addListener(map, 'click', function (event) { $('#lat').val(event.latLng.lat()) $('#lng').val(event.latLng.lng()) marker.setPosition(event.latLng); map.setCenter(event.latLng); map.setZoom(18); }); } else { // alert("Geocode was not successful for the following reason: " + status); } }); } initMap(); </script> <script async defer src="https://maps.googleapis.com/maps/api/js?key=<?php echo e($setting['google_places']); ?>&callback=initMap" type="text/javascript"></script> <?php echo $__env->make('admin.shared.addImage', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('admin.shared.submitAddForm', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?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/create.blade.php ENDPATH**/ ?>
Back to File Manager