

<?php $__env->startSection('Title'); ?>
    Dashboard |Restaurant
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>
<div class="content-header" style="display: flex;">

    <div class="container-fluid" style="display: flex;">
        <div class="toggl">
            <a class="nav-link togg" data-widget=""   id="cll" onclick="CloseNav();">
                <i class="fas fa-bars"></i>
                <span class="sr-only">Toggle navigation</span>
            </a>
            <a class="nav-link togg" data-widget="" id="open" onclick="openNav();">
                <i class="fas fa-bars"></i>
                <span class="sr-only">Toggle navigation</span>
            </a>
        </div>
        <div style="padding: auto 0px;">
      
         <h1 class="m-0 text-dark" style="font-weight: 700;">Edit Restaurant</h1>
         </div>
</div>
         </div>
<div class="container-fluid">
                    <!-- Small boxes (Stat box) -->
<div class="row">
	<div class="col-12">
		<!-- jquery validation -->
        <div class="card " style="margin-top: 10px;">
			<!-- <div class="card-header" style="background:#8141a1;">
				<h3 class="card-title" style="color: white;">Edit Restaurant</h3>
			</div> -->
			<!-- /.card-header -->
			<!-- form start -->
			<form role="form" id="createForm" method="POST" action="<?php echo e(route('update.restaurant')); ?>" 
            enctype="multipart/form-data">
                <?php echo csrf_field(); ?>       
                <input type="hidden" name="id" value="<?php echo e($restaurants->id); ?>"> 
                <div class="card-body">
					
					 <div class="form-group row">
    <label for=name class="col-sm-3 col-form-label">Name
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=text class="form-control" name=name id=name
        value="<?php echo e($restaurants->name); ?>"  />
    </div>
</div>

 
					 <div class="form-group row">
    <label for=description class="col-sm-3 col-form-label">Description
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=text class="form-control" name=description id=description
        value="<?php echo e($restaurants->description); ?>" />
    </div>
</div>

					 <div class="form-group row">
    <label for=user_id class="col-sm-3 col-form-label">Restaurant Owner
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
    <select name=user_id class=" form-control select2"  style="width: 100%;">
    <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $users): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
    <option value="<?php echo e($users->id); ?>" <?php echo e($restaurants->user_id == $users->id ? 'selected' : ''); ?>>
            <?php echo e($users->name); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
</div></div>
<div class="form-group row">
    <label for=foodtype_id class="col-sm-3 col-form-label">Cuisine
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
    <select name=foodtype_id class=" form-control select2" style="width: 100%;">
    <?php $__currentLoopData = $foodtypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $foodtypes): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
            <option value="<?php echo e($foodtypes->id); ?>" <?php echo e($restaurants->foodtype_id == $foodtypes->id ? 'selected' : ''); ?>>
            <?php echo e($foodtypes->name); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
</div></div>
		 <div class="form-group row">
    <label class="col-sm-3 col-form-label">Image
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-group">
        <div class="custom-file">
            <input type="file" class="custom-file-input" id=image value="<?php echo e($restaurants->image); ?>" name=image onchange="showImage(this)"/>
            <label class="custom-file-label" for=image>Choose file</label>
        </div>
        <div class="input-group-append">
            <span class="input-group-text">Upload</span>
        </div>
        <h6 class="d-block w-100 mt-2 mb-0">File Size should be less than 2mb</h6>
        <img src="<?php echo e(asset('/upload/'.$restaurants->image)); ?>" class="img-preview w-25" id="show"/>
            </div>
</div>
					 <div class="form-group row">
    <label for=phone class="col-sm-3 col-form-label">Phone
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=text class="form-control" name=phone id=phone
        value="<?php echo e($restaurants->phone); ?>"  />
    </div>
</div>

					 <div class="form-group row">
    <label for=email class="col-sm-3 col-form-label">Email
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=email class="form-control" name=email id=email
        value="<?php echo e($restaurants->email); ?>"    />
    </div>
</div>
					<hr />

					 <div class="form-group row">
    <label for=rating class="col-sm-3 col-form-label">Rating
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=number class="form-control" name=rating id=rating
        value="<?php echo e($restaurants->rating); ?>"  step=".5" max="5" disabled  />
    </div>
</div>

					 <div class="form-group row">
    <label for=delivery_time class="col-sm-3 col-form-label">Approx. Delivery Time (in mins)
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=number class="form-control" name=delivery_time id=delivery_time
        value="<?php echo e($restaurants->delivery_time); ?>"   step="1"   />
    </div>
</div>
<div class="form-group row">
    <label for=delivery_radius class="col-sm-3 col-form-label">Delivery Radius (in km)
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=number class="form-control" name=delivery_radius id=delivery_radius
        value="<?php echo e($restaurants->delivery_radius); ?>"   step="1"   />
    </div>
</div>
					 <div class="form-group row">
    <label for=for_two class="col-sm-3 col-form-label">Approx. price for two people
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=number class="form-control" name=for_two id=for_two
        value="<?php echo e($restaurants->for_two); ?>"   step="1"   />
    </div>
</div>
		<hr />

					 <div class="form-group row">
    <label for=address class="col-sm-3 col-form-label">Full Address
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=text class="form-control" name=address id=address   value="<?php echo e($restaurant_addresses->address); ?>"/>
    </div>
</div>

					 <div class="form-group row">
    <label for=pincode class="col-sm-3 col-form-label">Pincode
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=text class="form-control" name=pincode id=pincode   value="<?php echo e($restaurant_addresses->pincode); ?>"
          />
    </div>
</div>
					 <div class="form-group row">
    <label for=city class="col-sm-3 col-form-label">City
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=text class="form-control" name=city id=city    value="<?php echo e($restaurant_addresses->city); ?>"
          />
    </div>
</div>
	 <div class="form-group row">
    <label for=lat class="col-sm-3 col-form-label">Latitude
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=number class="form-control" name=lat id=lat    value="<?php echo e($restaurant_addresses->lat); ?>"
          step=".00000001"   />
    </div>
</div>
	 <div class="form-group row">
    <label for=long class="col-sm-3 col-form-label">Longitude
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=number class="form-control" name=long id=long    value="<?php echo e($restaurant_addresses->long); ?>"
          step=".00000001"   />
    </div>
</div>

	<!-- <hr />
    <div class="form-group row">
    <label for=opentime class="col-sm-3 col-form-label">Opening Hours</label>
    <div class="input-group date col-sm-9 input-wrapper" >
        <input type="time" name="opentime"  class="form-control "   value="<?php echo e($restaurant_addresses->opentime); ?>"  />
    </div>
</div>
<div class="form-group row">
    <label for=closetime class="col-sm-3 col-form-label">Closing Hours</label>
    <div class="input-group date col-sm-9 input-wrapper" >
        <input type="time" name="closetime"  class="form-control "   value="<?php echo e($restaurant_addresses->closetime); ?>" />
    </div>
</div> -->

<!-- <div class="form-group row">
    <label  class="col-sm-3 col-form-label">Weekdays
            </label>
    <div class="col-sm-9 input-group weekDays-selector" >
        <input type="checkbox" id="mon" class="weekday" name="mon" <?php echo e($restaurants->mon == 'on' ? 'checked' : ''); ?>/>
        <label for="mon">MON</label>
        <input type="checkbox" id="tue" class="weekday"  name="tue" <?php echo e($restaurants->tue == 'on' ? 'checked' : ''); ?>/>
        <label for="tue">TUE</label>
        <input type="checkbox" id="wed" class="weekday"  name="wed" <?php echo e($restaurants->wed == 'on' ? 'checked' : ''); ?>/>
        <label for="wed">WED</label>
        <input type="checkbox" id="thu" class="weekday"  name="thu" <?php echo e($restaurants->thu == 'on' ? 'checked' : ''); ?>/>
        <label for="thu">THU</label>
        <input type="checkbox" id="fri" class="weekday"  name="fri" <?php echo e($restaurants->fri == 'on' ? 'checked' : ''); ?> />
        <label for="fri">FRI</label>
        <input type="checkbox" id="sat" class="weekday"  name="sat" <?php echo e($restaurants->sat == 'on' ? 'checked' : ''); ?>/>
        <label for="sat">SAT</label>
        <input type="checkbox" id="sun" class="weekday"  name="sun" <?php echo e($restaurants->sun == 'on' ? 'checked' : ''); ?>/>
        <label for="sun">SUN</label>
    </div>
</div> -->

<hr />
<div class="form-group row">
    <label for=is_veg class="col-sm-3 col-3 col-form-label">Sunday
            </label>
    <div class="col-sm-2 col-9 input-group  p-1">
    <label class="switch" style="margin: auto 0px;" >
        <input type="checkbox" name="is_veg" checked >
        <span class="slider round"></span>
    </label>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="opentime"  class="form-control " />
    </div>
    <div class="input-group date col-sm-1 col-2 input-wrapper" style="text-align:center;align-items: center;" >
        <h4 style="text-align:center;width: 100%;">-</h4>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="closetime"  class="form-control " />
    </div>
</div>

<div class="form-group row">
    <label for=is_veg class="col-sm-3 col-3 col-form-label">Monday
            </label>
    <div class="col-sm-2 col-9 input-group  p-1">
    <label class="switch" style="margin: auto 0px;" >
        <input type="checkbox" name="is_veg" checked >
        <span class="slider round"></span>
    </label>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="opentime"  class="form-control " />
    </div>
    <div class="input-group date col-sm-1 col-2 input-wrapper" style="text-align:center;align-items: center;" >
        <h4 style="text-align:center;width: 100%;">-</h4>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="closetime"  class="form-control " />
    </div>
</div>

<div class="form-group row">
    <label for=is_veg class="col-sm-3 col-3 col-form-label">Tuesday
            </label>
    <div class="col-sm-2 col-9 input-group  p-1">
    <label class="switch" style="margin: auto 0px;" >
        <input type="checkbox" name="is_veg" checked >
        <span class="slider round"></span>
    </label>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="opentime"  class="form-control " />
    </div>
    <div class="input-group date col-sm-1 col-2 input-wrapper" style="text-align:center;align-items: center;" >
        <h4 style="text-align:center;width: 100%;">-</h4>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="closetime"  class="form-control " />
    </div>
</div>

<div class="form-group row">
    <label for=is_veg class="col-sm-3 col-3 col-form-label">Wednesday
            </label>
    <div class="col-sm-2 col-9 input-group  p-1">
    <label class="switch" style="margin: auto 0px;" >
        <input type="checkbox" name="is_veg" checked >
        <span class="slider round"></span>
    </label>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="opentime"  class="form-control " />
    </div>
    <div class="input-group date col-sm-1 col-2 input-wrapper" style="text-align:center;align-items: center;" >
        <h4 style="text-align:center;width: 100%;">-</h4>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="closetime"  class="form-control " />
    </div>
</div>

<div class="form-group row">
    <label for=is_veg class="col-sm-3 col-3 col-form-label">Thursday
            </label>
    <div class="col-sm-2 col-9 input-group  p-1">
    <label class="switch" style="margin: auto 0px;" >
        <input type="checkbox" name="is_veg" checked >
        <span class="slider round"></span>
    </label>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="opentime"  class="form-control " />
    </div>
    <div class="input-group date col-sm-1 col-2 input-wrapper" style="text-align:center;align-items: center;" >
        <h4 style="text-align:center;width: 100%;">-</h4>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="closetime"  class="form-control " />
    </div>
</div>

<div class="form-group row">
    <label for=is_veg class="col-sm-3 col-3 col-form-label">Friday
            </label>
    <div class="col-sm-2 col-9 input-group  p-1">
    <label class="switch" style="margin: auto 0px;" >
        <input type="checkbox" name="is_veg" checked >
        <span class="slider round"></span>
    </label>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="opentime"  class="form-control " />
    </div>
    <div class="input-group date col-sm-1 col-2 input-wrapper" style="text-align:center;align-items: center;" >
        <h4 style="text-align:center;width: 100%;">-</h4>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="closetime"  class="form-control " />
    </div>
</div>

<div class="form-group row">
    <label for=is_veg class="col-sm-3 col-3 col-form-label">Saturday
            </label>
    <div class="col-sm-2 col-9 input-group  p-1">
    <label class="switch" style="margin: auto 0px;" >
        <input type="checkbox" name="is_veg" checked >
        <span class="slider round"></span>
    </label>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="opentime"  class="form-control " />
    </div>
    <div class="input-group date col-sm-1 col-2 input-wrapper" style="text-align:center;align-items: center;" >
        <h4 style="text-align:center;width: 100%;">-</h4>
    </div>
    <div class="input-group date col-sm-3 col-5 input-wrapper" >
        <input type="time" name="closetime"  class="form-control " />
    </div>
</div>

<div class="form-group row">
<label for=is_veg class="col-sm-3 col-form-label">Gluten Free
        </label>
<div class="col-sm-9 input-group  p-1">
<label class="switch" >
    <input type="checkbox" name="is_veg" checked >
    <span class="slider round"></span>
</label>
</div>
</div>

<div class="form-group row">
    <label for=is_veg class="col-sm-3 col-form-label">Vegetarian
            </label>
    <div class="col-sm-9 input-group  p-1">
    <label class="switch" >
        <input type="checkbox" name="is_veg" <?php echo e($restaurants->is_veg == 'on' ? 'checked' : ''); ?> >
        <span class="slider round"></span>
    </label>
    </div>
</div>
				
<div class="form-group row">
    <label for=active class="col-sm-3 col-form-label">Active
            </label>
    <div class="col-sm-9 input-group  p-1">
        <label class="switch" >
            <input type="checkbox" name=active <?php echo e($restaurants->active == 'on' ? 'checked' : ''); ?>  >
            <span class="slider round"></span>
        </label>
    </div>
</div>
				</div>
				<!-- /.card-body -->
				<div class="card-footer">
                <button type="submit" class="btn" style="background: #8141a1;color: white;">Submit</button>

				</div>
			</form>
		</div>
		<!-- /.card -->
	</div>
</div>
<!-- ./col -->
</div>
<!-- /.row -->
                </div>
<?php $__env->stopSection(); ?>


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

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Laravel\03-03-2021\Restaurant4\Restaurant\resources\views/admin/edit_restaurant.blade.php ENDPATH**/ ?>