Edit File: e07947fca5f4ba2cc225a6cc870b41fa5e8f541b.php
<?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')); ?>"> <?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.clients.update' , ['id' => $row->id])); ?>" class="store form-horizontal" novalidate> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-body"> <div class="row"> <div class="col-12"> <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($row->AvatarPath); ?>"> <button class="close"><i class="la la-times"></i></button> </div> </div> </div> </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" value="<?php echo e($row->name??''); ?>" class="form-control" placeholder="<?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($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-12 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 if($city->id == $row->city_id): ?> selected <?php endif; ?> 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="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"> <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> <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> $(document).keypress( function(event){ if (event.which == '13') { event.preventDefault(); } }); function initMap() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (p) { var lat = Number($('#lat').val()) var lng = Number($('#lng').val()) const myLatlng = { lat: lat, lng: lng }; const map = new google.maps.Map(document.getElementById("map"), { zoom: 10, center: myLatlng, mapTypeControl: false, streetViewControl: false, }); // 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(lat, 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("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(10); 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: 10, 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); } }); } </script> <script async defer src="https://maps.googleapis.com/maps/api/js?key=<?php echo e($settings['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.submitEditForm', \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/clients/edit.blade.php ENDPATH**/ ?>
Back to File Manager