
<?php $__env->startSection('title'); ?>
    <?php echo e(__('Edit Location')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="main-content">
        <div class="page-title">
            <div class="container-fluid">
                <div class="row justify-content-center">
                    <div class="col-xl-12">
                        <div class="title-content">
                            <h2 class="title"><?php echo e(__('Edit Location')); ?></h2>
                            <a href="<?php echo e(url()->previous()); ?>" class="title-btn" type="button">
                                <i data-lucide="corner-down-left"></i> <?php echo e(__('Back')); ?>

                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <form action="<?php echo e(route('admin.location.update', $location->id)); ?>" method="post" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>
            <div class="site-card">
                <div class="site-card-header">
                    <h3 class="title"><?php echo e(__('Basic Info')); ?></h3>
                </div>
                <div class="site-card-body">
                    <div class="site-input-groups row">
                        <label for="" class="col-sm-3 col-label"><?php echo e(__('Name')); ?></label>
                        <div class="col-sm-9">
                            <input type="text" name="name" class="box-input" value="<?php echo e($location->name); ?>">
                        </div>
                    </div>
                    <div class="site-input-groups row">
                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-12 col-label">
                            <?php echo e(__('Thumb Image')); ?><i icon-name="info" data-bs-toggle="tooltip" title=""
                                data-bs-original-title="Location thumb image"></i>
                        </div>
                        <div class="col-xl-9 col-lg-9 col-md-9 col-sm-12">
                            <div class="wrap-custom-file">
                                <input type="file" name="thumb_image" id="thumb_image" accept=".gif, .jpg, .png" />
                                <label for="thumb_image" class="file-ok"
                                    style="background-image: url(<?php echo e(asset($location->thumb_image)); ?>)">
                                    <img class="upload-icon" src="<?php echo e(asset('global/materials/upload.svg')); ?>"
                                        alt="" />
                                    <span><?php echo e(__('Upload Thumbnail')); ?></span>
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="site-input-groups row">
                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-12 col-label">
                            <?php echo e(__('Banner Image')); ?><i icon-name="info" data-bs-toggle="tooltip" title=""
                                data-bs-original-title="Location banner Image"></i>
                        </div>
                        <div class="col-xl-9 col-lg-9 col-md-9 col-sm-12">
                            <div class="wrap-custom-file">
                                <input type="file" name="banner_image" id="banner_image" accept=".gif, .jpg, .png" />
                                <label for="banner_image" class="file-ok"
                                    style="background-image: url(<?php echo e(asset($location->banner_image)); ?>)">
                                    <img class="upload-icon" src="<?php echo e(asset('global/materials/upload.svg')); ?>"
                                        alt="" />
                                    <span><?php echo e(__('Upload Banner')); ?></span>
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="site-card">
                <div class="site-card-header">
                    <h3 class="title"><?php echo e(__('Location Details')); ?></h3>
                </div>
                <div class="site-card-body">
                    <div class="site-input-groups row">
                        <label for="" class="col-sm-3 col-label"><?php echo e(__('Title')); ?></label>
                        <div class="col-sm-9">
                            <input type="text" name="title" class="box-input" value="<?php echo e($location->title); ?>">
                        </div>
                    </div>

                    <?php if(site_theme() !== 'spaceify'): ?>
                        <div class="site-input-groups row">
                            <label for="" class="col-sm-3 col-label"><?php echo e(__('Sub Title')); ?></label>
                            <div class="col-sm-9">
                                <input type="text" name="sub_title" class="box-input"
                                    value="<?php echo e($location->sub_title); ?>">
                            </div>
                        </div>
                    <?php endif; ?>
                    <div class="site-input-groups row">
                        <label for="" class="col-sm-3 col-label"><?php echo e(__('Location Address')); ?><i data-lucide="info"
                                data-bs-toggle="tooltip" title=""
                                data-bs-original-title="Leave it blank if you don't need this button"></i></label>
                        <div class="col-sm-9">
                            <div class="form-row">
                                <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                                    <div class="site-input-groups">
                                        <div class="site-input-groups">
                                            <div class="site-input-groups">
                                                <input type="text" name="location" class="box-input" required
                                                    value="<?php echo e($location->location); ?>">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="site-input-groups row">
                        <label for="" class="col-sm-3 col-label"><?php echo e(__('Phone')); ?><i data-lucide="info"
                                data-bs-toggle="tooltip" title=""
                                data-bs-original-title="Leave it blank if you don't need this button"></i></label>
                        <div class="col-sm-9">
                            <div class="form-row">
                                <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                                    <div class="site-input-groups">
                                        <div class="site-input-groups">
                                            <div class="site-input-groups">
                                                <input type="text" name="phone" class="box-input" required
                                                    value="<?php echo e($location->phone); ?>">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="site-input-groups row">
                        <label for="" class="col-sm-3 col-label"><?php echo e(__('Email')); ?><i data-lucide="info"
                                data-bs-toggle="tooltip" title=""
                                data-bs-original-title="Leave it blank if you don't need this button"></i></label>
                        <div class="col-sm-9">
                            <div class="form-row">
                                <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                                    <div class="site-input-groups">
                                        <div class="site-input-groups">
                                            <div class="site-input-groups">
                                                <input type="text" name="email" class="box-input" required
                                                    value="<?php echo e($location->email); ?>">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="site-input-groups row">
                        <label for="overview" class="col-sm-3 col-label"><?php echo e(__('Overview')); ?></label>
                        <div class="col-sm-9">
                            <textarea name="overview" id="overview" rows="5" class="form-textarea"><?php echo e($location->overview); ?></textarea>
                        </div>
                    </div>
                    <div class="site-input-groups row">
                        <label for="" class="col-sm-3 col-label"><?php echo e(__('Map Location Embed Code')); ?></label>
                        <div class="col-sm-9">
                            <textarea name="map_location" id="map_location" class="form-textarea"><?php echo e($location->map_location); ?></textarea>
                        </div>
                    </div>
                    <div class="site-input-groups row">
                        <label for="" class="col-sm-3 col-label pt-0"><?php echo e(__('Status')); ?>

                            <i icon-name="info" data-bs-toggle="tooltip" data-bs-original-title="Manage Status"></i>
                        </label>
                        <div class="col-sm-3">
                            <div class="site-input-groups">
                                <div class="switch-field">
                                    <input type="radio" id="active" name="status" value="1"
                                        <?php if($location->status): echo 'checked'; endif; ?> />
                                    <label for="active"><?php echo e(__('Active')); ?></label>
                                    <input type="radio" id="deactivate" name="status" value="0"
                                        <?php if(!$location->status): echo 'checked'; endif; ?> />
                                    <label for="deactivate"><?php echo e(__('Deactive')); ?></label>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="offset-sm-3 col-sm-9">
                            <button type="submit"
                                class="site-btn-sm primary-btn w-100"><?php echo e(__('Save Changes')); ?></button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>

    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <?php echo $__env->make('backend.page.section.include.__section_image_remove', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/mxawfis.atharvatek.com/resources/views/backend/location/edit.blade.php ENDPATH**/ ?>