<h2 class="sec_title text-uppercase color-primary fw-bold text-center mb-5">
    Edit your Location
    <img src="<?php echo e(url('')); ?>/assets/web/images/title_line.svg" class="d-block m-auto" alt=""/>
</h2>
<form method="post" action="<?php echo e($action); ?>" onsubmit="formAction(this)">
    <?php echo csrf_field(); ?>
    <div class="row col-md-10 m-auto">
        <div class="col-md-12">
            <div class="form-group  mb-3">
                <label class="label fw-bold"> Country </label>
                <select name="country_id" target-id="cities" onchange="fetchCities(this)" class="form-control form-select">
                    <option><?php echo e(__('web.select')); ?></option>
                    <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option <?php echo e((isset($location) ? $location->country_id : '') == $row->id ? 'selected' : ''); ?> value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
        </div>
        <div class="col-md-12">
            <div class="form-group  mb-3">
                <label class="label fw-bold"> City </label>
                <select id="cities" name="city_id" class="form-control form-select">
                    <option><?php echo e(__('web.select')); ?></option>
                    <?php if(isset($cities)): ?>
                        <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option <?php echo e((isset($location) ? $location->city_id : '') == $row->id ? 'selected' : ''); ?> value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                </select>
            </div>
        </div>
        <div class="col-md-12">
            <div class="form-group  mb-3">
                <label class="label fw-bold"> Location </label>
                <textarea rows="6" name="address" class="form-control" placeholder="Location details " ><?php echo e(isset($location) ? $location->address : ''); ?></textarea>
            </div>
        </div>

    </div>
    <div class="d-flex justify-content-center mt-5">
        <button type="button" class="butn btn-secondary mx-1" data-bs-dismiss="modal">Close</button>
        <button type="submit" class="butn primary_butn mx-1"><?php echo e(isset($location) ? __('web.edit_address') : __('web.create_address')); ?>  </button>
    </div>
</form>
<?php /**PATH /Applications/MAMP/htdocs/city/resources/views/web/pages/profile/components/locations/form.blade.php ENDPATH**/ ?>