
<?php $__env->startSection('title'); ?>
<title><?php echo e($websiteLang->where('lang_key','city')->first()->custom_text); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
    <!-- Page Heading -->
    <h1 class="h3 mb-2 text-gray-800"><a href="<?php echo e(route('admin.city.index')); ?>" class="btn btn-primary"><i class="fas fa-list" aria-hidden="true"></i> <?php echo e($websiteLang->where('lang_key','all_city')->first()->custom_text); ?> </a></h1>
    <!-- DataTales Example -->
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary"><?php echo e($websiteLang->where('lang_key','city_form')->first()->custom_text); ?></h6>
        </div>
        <div class="card-body">
            <form action="<?php echo e(route('admin.city.update',$city->id)); ?>" method="post">
                <?php echo csrf_field(); ?>
                <?php echo method_field('patch'); ?>

                <div class="form-group">
                    <label><?php echo e($websiteLang->where('lang_key','state')->first()->custom_text); ?></label>
                    <select name="state"  class="form-control" id="custom-select2">
                        <option value=""><?php echo e($websiteLang->where('lang_key','select_state')->first()->custom_text); ?></option>
                        <?php $__currentLoopData = $states; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option <?php echo e($city->country_state_id==$item->id ? 'selected' : ''); ?> value="<?php echo e($item->id); ?>"><?php echo e($item->name.', '.$item->country->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>

                <div class="form-group">
                    <label for="name"><?php echo e($websiteLang->where('lang_key','city')->first()->custom_text); ?></label>
                    <input type="text" class="form-control" name="name" id="name" value="<?php echo e($city->name); ?>">
                </div>
                <div class="form-group">
                    <label for="status"><?php echo e($websiteLang->where('lang_key','status')->first()->custom_text); ?></label>
                    <select name="status" id="status" class="form-control">
                        <option <?php echo e($city->status==1 ? 'selected': ''); ?> value="1"><?php echo e($websiteLang->where('lang_key','active')->first()->custom_text); ?></option>
                        <option <?php echo e($city->status==0 ? 'selected': ''); ?> value="0"><?php echo e($websiteLang->where('lang_key','inactive')->first()->custom_text); ?></option>
                    </select>
                </div>

                <button type="submit" class="btn btn-success"><?php echo e($websiteLang->where('lang_key','update')->first()->custom_text); ?></button>
            </form>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/cloudelite/imobi.eliteteclda.com/resources/views/admin/city/edit.blade.php ENDPATH**/ ?>