HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/punjabcabs/storage/framework/views/7a6852f955505dd02e1add319a954d8d4facbe0c.php
<?php $__env->startSection('title', 'Site Settings '); ?>

<?php $__env->startSection('styles'); ?>
<style type="text/css">
	.display {
		display: none;
	}
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

<div class="content-area py-1">
    <div class="container-fluid">

    	<div class="row bg-title">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <h4 class="page-title"><?php echo app('translator')->get('admin.settings'); ?></h4>
                <a href="<?php echo e(route('admin.settings')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light active"><?php echo app('translator')->get('admin.member.site_settings'); ?></a>
                <a href="<?php echo e(route('admin.settings.payment')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light"><?php echo app('translator')->get('admin.payment_settings'); ?></a>
                <a href="<?php echo e(route('admin.profile')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light"><?php echo app('translator')->get('admin.account_settings'); ?></a>
                <a href="<?php echo e(route('admin.password')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light"><?php echo app('translator')->get('admin.change_password'); ?></a>
            </div>
           <!--  <div class="col-lg-6 col-sm-6 col-md-6 col-xs-12">
               <ol class="breadcrumb">
                   <li><a href="<?php echo e(route('admin.dashboard')); ?>"><?php echo app('translator')->get('admin.dashboard'); ?></a></li>
                   <li class="active"><?php echo app('translator')->get('admin.member.site_settings'); ?></li>
               </ol>
           </div> -->
        </div>

    	<div class="box box-block bg-white">
			<h5><?php echo app('translator')->get('admin.member.site_settings'); ?></h5>

            <form class="form-horizontal" action="<?php echo e(route('admin.settings.store')); ?>" method="POST" enctype="multipart/form-data" role="form">
            	<?php echo e(csrf_field()); ?>


				<div class="form-group row">
					<label for="site_title" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.site_name'); ?></label>
					<div class="col-xs-8">
						<input class="form-control" type="text" value="<?php echo e(Setting::get('site_title', 'vx')); ?>" name="site_title" required id="site_title" placeholder="Site Name">
					</div>
				</div>

				<div class="form-group row">
					<label for="site_logo" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.site_logo'); ?></label>
					<div class="col-xs-8">
						<?php if(Setting::get('site_logo')!=''): ?>
	                    <img style="height: 90px; margin-bottom: 15px;" src="<?php echo e(Setting::get('site_logo', asset('logo-black.png'))); ?>">
	                    <?php endif; ?>
						<input type="file" accept="image/*" name="site_logo" class="dropify form-control-file" id="site_logo" aria-describedby="fileHelp">
					</div>
				</div>


				<div class="form-group row">
					<label for="site_icon" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.site_icon'); ?></label>
					<div class="col-xs-8">
						<?php if(Setting::get('site_icon')!=''): ?>
	                    <img style="height: 90px; margin-bottom: 15px;" src="<?php echo e(Setting::get('site_icon')); ?>">
	                    <?php endif; ?>
						<input type="file" accept="image/*" name="site_icon" class="dropify form-control-file" id="site_icon" aria-describedby="fileHelp">
					</div>
				</div>

                <div class="form-group row">
                    <label for="tax_percentage" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.copyright_content'); ?></label>
                    <div class="col-xs-8">
                        <input class="form-control" type="text" value="<?php echo e(Setting::get('site_copyright', '&copy; '.date('Y').' Appoets')); ?>" name="site_copyright" id="site_copyright" placeholder="Site Copyright">
                    </div>
                </div>

				<div class="form-group row">
					<label for="store_link_android" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.playstore_link'); ?></label>
					<div class="col-xs-8">
						<input class="form-control" type="text" value="<?php echo e(Setting::get('store_link_android', '')); ?>" name="store_link_android"  id="store_link_android" placeholder="Playstore link">
					</div>
				</div>

				<div class="form-group row">
					<label for="store_link_ios" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.appstore_link'); ?></label>
					<div class="col-xs-8">
						<input class="form-control" type="text" value="<?php echo e(Setting::get('store_link_ios', '')); ?>" name="store_link_ios"  id="store_link_ios" placeholder="Appstore link">
					</div>
				</div>
				<div class="form-group row">
					<label for="mail_enable" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.mail_enable'); ?></label>
					<div class="col-xs-8">
						<select class="form-control" id="mail_enable" name="mail_enable">
							<option value="1" <?php if(Setting::get('mail_enable', 0) == 1): ?> selected <?php endif; ?>>Enable</option>
							<option value="0" <?php if(Setting::get('mail_enable', 0) == 0): ?> selected <?php endif; ?>>Disable</option>
						</select>
					</div>
				</div>
				<div class="form-group row">
					<label for="sms_enable" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.sms_enable'); ?></label>
					<div class="col-xs-8">
						<select class="form-control" id="sms_enable" name="sms_enable">
							<option value="1" <?php if(Setting::get('sms_enable', 0) == 1): ?> selected <?php endif; ?>>Enable</option>
							<option value="0" <?php if(Setting::get('sms_enable', 0) == 0): ?> selected <?php endif; ?>>Disable</option>
						</select>
					</div>
				</div>
				<div class="form-group row">
					<label for="country_code" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.country_code'); ?></label>
					<div class="col-xs-8">
						<input class="form-control" type="text" value="<?php echo e(Setting::get('country_code', '')); ?>" name="country_code"  id="country_code" placeholder="+123">
					</div>
				</div>
				<div class="form-group row">
					<label for="provider_select_timeout" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.provider_accept_timeout'); ?></label>
					<div class="col-xs-8">
						<input class="form-control" type="number" value="<?php echo e(Setting::get('provider_select_timeout', '60')); ?>" name="provider_select_timeout" required id="provider_select_timeout" placeholder="Provider Timout">
					</div>
				</div>

				<div class="form-group row">
					<label for="provider_search_radius" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.provider_search_radius'); ?></label>
					<div class="col-xs-8">
						<input class="form-control" type="number" value="<?php echo e(Setting::get('provider_search_radius', '100')); ?>" name="provider_search_radius" required id="provider_search_radius" placeholder="Provider Search Radius">
					</div>
				</div>
				<div class="form-group row">
					<label for="sms_enable" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.distance_unit'); ?></label>
					<div class="col-xs-8">
						<select class="form-control" id="distance_unit" name="distance_unit">
							<option value="km" <?php if(Setting::get('distance_unit', 'km') == 'km'): ?> selected <?php endif; ?>>Kilometers</option>
							<option value="mile" <?php if(Setting::get('distance_unit', 'mile') == 'mile'): ?> selected <?php endif; ?>>Miles</option>
						</select>
					</div>
				</div>
				<div class="form-group row">
					<label for="sos_number" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.sos_number'); ?></label>
					<div class="col-xs-8">
						<input class="form-control" type="number" value="<?php echo e(Setting::get('sos_number', '911')); ?>" name="sos_number" required id="sos_number" placeholder="SOS Number">
					</div>
				</div>

				<div class="form-group row">
					<label for="contact_number" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.contact_number'); ?></label>
					<div class="col-xs-8">
						<input class="form-control" type="number" value="<?php echo e(Setting::get('contact_number', '911')); ?>" name="contact_number" required id="contact_number" placeholder="Contact Number">
					</div>
				</div>

				<div class="form-group row">
					<label for="contact_email" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.contact_email'); ?></label>
					<div class="col-xs-8">
						<input class="form-control" type="email" value="<?php echo e(Setting::get('contact_email', '')); ?>" name="contact_email" required id="contact_email" placeholder="Contact Email">
					</div>
				</div>

				<div class="form-group row">
					<label for="social_login" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.social_login'); ?></label>
					<div class="col-xs-8">
						<select class="form-control" id="social_login" name="social_login">
							<option value="1" <?php if(Setting::get('social_login', 0) == 1): ?> selected <?php endif; ?>>Enable</option>
							<option value="0" <?php if(Setting::get('social_login', 0) == 0): ?> selected <?php endif; ?>>Disable</option>
						</select>
					</div>
				</div>
				<div class="form-group row">
                    <label for="tax_percentage" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.country'); ?></label>
                    <div class="col-xs-8">
                        <input class="form-control" type="text" value="<?php echo e(Setting::get('country', '')); ?>" name="country" id="country" placeholder="Site Country">
                    </div>
                </div>
                <div class="form-group row">
                    <label for="tax_percentage" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.state'); ?></label>
                    <div class="col-xs-8">
                        <input class="form-control" type="text" value="<?php echo e(Setting::get('state', '')); ?>" name="state" id="state" placeholder="Site State">
                    </div>
                </div>
                <div class="form-group row">
                    <label for="tax_percentage" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.city'); ?></label>
                    <div class="col-xs-8">
                        <input class="form-control" type="text" value="<?php echo e(Setting::get('city', '')); ?>" name="city" id="city" placeholder="Site City">
                    </div>
                </div>
                <div class="form-group row">
                    <label for="tax_percentage" class="col-xs-2 col-form-label">Address</label>
                    <div class="col-xs-8">
                        <input class="form-control" type="text" onfocus="initMap()" value="<?php echo e(Setting::get('address', '')); ?>" name="address" id="address" placeholder="Address">
                        <input type="hidden" name="address_lat" id="a_lat" value="<?php echo e(Setting::get('address_lat', '')); ?>">
                        <input type="hidden" name="address_long" id="a_long" value="<?php echo e(Setting::get('address_long', '')); ?>">
                    </div>
                </div>
                <div class="form-group row">
					<label for="zoom" class="col-xs-2 col-form-label">Map Zoom Level</label>
					<div class="col-xs-8">
						<select class="form-control" id="zoom" name="zoom">
							<option value="1" <?php if(Setting::get('zoom', 0) == 1): ?> selected <?php endif; ?>>1</option>
							<option value="2" <?php if(Setting::get('zoom', 0) == 2): ?> selected <?php endif; ?>>2</option>
							<option value="3" <?php if(Setting::get('zoom', 0) == 3): ?> selected <?php endif; ?>>3</option>
							<option value="4" <?php if(Setting::get('zoom', 0) == 4): ?> selected <?php endif; ?>>4</option>
							<option value="5" <?php if(Setting::get('zoom', 0) == 5): ?> selected <?php endif; ?>>5</option>
							<option value="6" <?php if(Setting::get('zoom', 0) == 6): ?> selected <?php endif; ?>>6</option>
							<option value="7" <?php if(Setting::get('zoom', 0) == 7): ?> selected <?php endif; ?>>7</option>
							<option value="8" <?php if(Setting::get('zoom', 0) == 8): ?> selected <?php endif; ?>>8</option>
							<option value="9" <?php if(Setting::get('zoom', 0) == 9): ?> selected <?php endif; ?>>9</option>
							<option value="10" <?php if(Setting::get('zoom', 0) == 10): ?> selected <?php endif; ?>>10</option>
							<option value="11" <?php if(Setting::get('zoom', 0) == 11): ?> selected <?php endif; ?>>11</option>
							<option value="12" <?php if(Setting::get('zoom', 0) == 12): ?> selected <?php endif; ?>>12</option>
						</select>
					</div>
				</div>
				<div class="form-group row">
					<label for="zipcode" class="col-xs-2 col-form-label"></label>
					<div class="col-xs-8">
						<button type="submit" class="btn btn-success"> <i class="fa fa-check"></i> <?php echo app('translator')->get('admin.member.update_site_settings'); ?></button>
					</div>
				</div>
			</form>
		</div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script src="https://maps.googleapis.com/maps/api/js?key=<?php echo e(env('GOOGLE_MAP_KEY')); ?>&libraries=places" async defer></script>
<script type="text/javascript">
  function initMap() {

    var originInput = document.getElementById('address');
    var originLatitude = document.getElementById('a_lat');
    var originLongitude = document.getElementById('a_long');
    var originAutocomplete = new google.maps.places.Autocomplete(
            originInput);
    originAutocomplete.setFields('geometry');
    originAutocomplete.addListener('place_changed', function(event) {
        var place = originAutocomplete.getPlace();
        if (place.hasOwnProperty('place_id')) {
            if (!place.geometry) {
                    // window.alert("Autocomplete's returned place contains no geometry");
                    return;
            }
            originLatitude.value = place.geometry.location.lat();
            originLongitude.value = place.geometry.location.lng();
        }
    });
  }
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>