Viewing file: c1c9e3a1c6bab8afb34b75b50ad21910f97e0c23.php (10.54 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php echo csrf_field(); ?> <div> <h4><?php echo e(trans('layout.general_info')); ?></h4> <section> <div class="row"> <div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.name')); ?>*</label> <input value="<?php echo e(old('name')?old('name'):(isset($restaurant)?$restaurant->name:'')); ?>" type="text" name="name" class="form-control" placeholder="Ex: The Disaster Cafe" required> </div> </div> <div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.location')); ?></label> <input value="<?php echo e(old('location')?old('location'):(isset($restaurant)?$restaurant->location:'')); ?>" type="text" name="location" class="form-control" placeholder="Ex: 2806 Montague Rd, BC, Canada"> </div>
</div> <div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.email')); ?></label> <input value="<?php echo e(old('email')?old('email'):(isset($restaurant)?$restaurant->email:'')); ?>" type="email" name="email" class="form-control" placeholder="example@example.com"> </div> </div> <div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.phone_number')); ?></label> <input value="<?php echo e(old('phone_number')?old('phone_number'):(isset($restaurant)?$restaurant->phone_number:'')); ?>" type="text" name="phone_number" class="form-control" placeholder="(+0)000-000-0000"> </div> </div>
<div class="<?php echo e(auth()->user()->type=='restaurant_owner'?'col-lg-6':'col-lg-4'); ?> mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.currency_code')); ?></label> <input value="<?php echo e(old('currency_code')?old('currency_code'):(isset($restaurant)?$restaurant->currency_code:'')); ?>" type="text" name="currency_code" class="form-control" placeholder="<?php echo e(trans('Ex: usd or eur')); ?>"> </div> </div> <div class="<?php echo e(auth()->user()->type=='restaurant_owner'?'col-lg-6':'col-lg-4'); ?> mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.currency_symbol')); ?></label> <input value="<?php echo e(old('currency_symbol')?old('currency_symbol'):(isset($restaurant)?$restaurant->currency_symbol:'')); ?>" type="text" name="currency_symbol" class="form-control"> </div> </div> <?php if(auth()->user()->type=='admin'): ?> <div class="col-lg-4 mb-2"> <div class="form-group"> <label for="">Select a user</label> <select name="user_id" class="form-control"> <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(isset($customer) && isset($restaurant->user_id) && $restaurant->user_id==$customer->id?'selected':''); ?> value="<?php echo e($customer->id); ?>"><?php echo e($customer->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <?php endif; ?>
<?php $orderStatus = json_decode(get_settings('manage_place_order')); ?> <div class="<?php echo e(isset($orderStatus->admin_order_status) && $orderStatus->admin_order_status=='enable'?'col-lg-4':'col-lg-6'); ?> mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.timing')); ?></label> <input value="<?php echo e(old('timing')?old('timing'):(isset($restaurant)?$restaurant->timing:'')); ?>" type="text" name="timing" class="form-control" placeholder="Ex: 8:00 - 20:00"> </div> </div> <div class="<?php echo e(isset($orderStatus->admin_order_status) && $orderStatus->admin_order_status=='enable'?'col-lg-4':'col-lg-6'); ?> mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.status')); ?>*</label> <select name="status" class="form-control"> <option <?php echo e(isset($restaurant) && $restaurant->status=='active'?'selected':''); ?> value="active"><?php echo e(trans('layout.active')); ?></option> <option <?php echo e(isset($restaurant) && $restaurant->status=='inactive'?'selected':''); ?> value="inactive"><?php echo e(trans('layout.inactive')); ?></option> </select> </div> </div>
<?php if(isset($orderStatus->admin_order_status) && $orderStatus->admin_order_status=='enable'): ?> <div class="col-lg-4 mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('Order Settings')); ?></label> <select name="order_status" class="form-control"> <option <?php echo e(isset($restaurant) && $restaurant->order_status=='enable'?'selected':''); ?> value="enable"><?php echo e(trans('layout.enable')); ?></option> <option <?php echo e(isset($restaurant) && $restaurant->order_status=='disable'?'selected':''); ?> value="disable"><?php echo e(trans('layout.disable')); ?></option> </select> </div> </div> <?php endif; ?>
<div class="col-lg-12 mb-3"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.description')); ?>*</label> <textarea rows="10" name="description" class="form-control" placeholder="Ex: The Disaster Cafe will deliver, with 7.8 richter scale earthquakes simulated during meals" required><?php echo e(old('description')?old('description'):(isset($restaurant)?$restaurant->description:'')); ?></textarea> </div> </div> </div> </section> <h4><?php echo e(trans('layout.image_upload')); ?></h4> <section> <div class="row"> <div class="col-lg-12 mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.profile')); ?></label> <?php if(isset($restaurant) && $restaurant->profile_image): ?> <img style="max-width: 50px" src="<?php echo e(asset('uploads').'/'.$restaurant->profile_image); ?>" alt="<?php echo e($restaurant->profile_image); ?>"> <?php endif; ?> <input type="file" name="profile_file" class="form-control" accept="image/*"> </div> </div> <div class="col-lg-12 mb-2"> <div class="form-group"> <label class="text-label"><?php echo e(trans('layout.cover')); ?></label> <?php if(isset($restaurant) && $restaurant->cover_image): ?> <img style="max-width: 50px" src="<?php echo e(asset('uploads').'/'.$restaurant->cover_image); ?>" alt="<?php echo e($restaurant->cover_image); ?>"> <?php endif; ?> <input type="file" name="cover_file" class="form-control" accept="image/*"> </div> </div> </div> </section> <h4><?php echo e(trans('layout.choose_template')); ?></h4> <section> <h4 class="mb-4"><?php echo e(trans('layout.choose_template')); ?></h4> <div class="form-group mb-0"> <label class="radio-inline mr-3 restaurant-template"><input <?php echo e(isset($restaurant) && $restaurant->template=='classic'?'checked':''); ?> type="radio" name="template" value="classic"> <span><?php echo e(trans('layout.classic')); ?></span> <img class="max-h-300" src="<?php echo e(asset('images/classic_template.jpg')); ?>" alt="Classic Template">
</label> <label class="radio-inline mr-3 restaurant-template"><input <?php echo e(isset($restaurant) && $restaurant->template=='modern'?'checked':''); ?> type="radio" name="template" value="modern"> <span><?php echo e(trans('layout.modern')); ?></span> <img class="max-h-300" src="<?php echo e(asset('images/modern_template.png')); ?>" alt="Modern Template">
</label> <label class="d-none radio-inline mr-3 restaurant-template"><input <?php echo e(isset($restaurant) && $restaurant->template=='flipbook'?'checked':''); ?> type="radio" name="template" value="flipbook"> <span><?php echo e(trans('layout.flipbook')); ?></span> <img class="max-h-300" src="<?php echo e(asset('images/classic_template.jpg')); ?>" alt="Flipbook Template"> </label> <label class="d-none radio-inline mr-3 restaurant-template"><input <?php echo e(isset($restaurant) && $restaurant->template=='custom'?'checked':''); ?> type="radio" name="template" value="custom"> <span><?php echo e(trans('layout.custom')); ?></span> <img class="max-h-300" src="<?php echo e(asset('images/custom-preview.svg')); ?>" alt="Custom Template"> </label> </div> </section> </div> <?php /**PATH /home/picoaqep/qr.picotech.app/resources/views/restaurant/form.blade.php ENDPATH**/ ?>
|