|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/leadai/leadai.co.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<!-- begin::main content -->
<style>
.input_upload{
width:100px;
height:35px;
position:absolute;
bottom:-34px;
right:350px;
}
.import-content p{
padding:0;
margin:0;
margin-bottom:8px;
font-size:13px;
}
.filter-form-box{
background-color:#FBFAFA;
padding:10px 24px;
position:absolute;
width:450px;
border:1px solid #ddd;
border-radius:5px;
top:71px;
z-index:20;
}
.filter-form-box input{
height:40px !important;
}
.diamond {
width: 20px;
height: 20px;
background-color: #FBFAFA;
transform: rotate(45deg);
position: relative;
top:-21px;
left:0px;
border-top:1px solid #ddd;
border-left:1px solid #ddd;
}
.seach-input:focus{
outline:none !important;
border-top:1px solid #ddd !important;
border-bottom:1px solid #ddd !important;
}
.seach-input{
height:40px !important;
border-top:1px solid #ddd !important;
border-bottom:1px solid #ddd !important;
border-left:1px solid #ddd !important;
}
</style>
<main class="main-content">
<div class="container">
<div class="toast d-none float-right" >
<div class="toast-body bg-success text-white">
<i class="fa fa-check fa-lg"></i>  Status Update Successfully
</div>
</div>
<!-- begin::page header -->
<div class="page-header">
<h3><?php echo e(__('message.licence')); ?> <?php echo e(__('message.sales')); ?> <?php echo e(__('message.management')); ?></h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo e(asset('dashboard')); ?>"><?php echo e(__('message.dashboard')); ?></a></li>
<li class="breadcrumb-item active" aria-current="page"><?php echo e(__('message.list')); ?></li>
</ol>
</nav>
</div>
<!-- end::page header -->
<div class="card">
<div class="card-body">
<?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
<div class="row">
<div class="col-md-12 p-3">
<div class="shadow-sm p-3">
<h3>Restaurant Details</h3>
<hr>
<form class="licence-sell-form" method="post" action="<?php echo e(asset('licence-sell')); ?>">
<?php echo csrf_field(); ?>
<input type="hidden" name="licence_id" value="<?php echo e($licencekey->licence_id); ?>">
<div class="form-group">
<label><?php echo e(__('message.restaurant')); ?> </label>
<input type="hidden" value="<?php echo e(Auth::user()->id); ?>" class="employee_id">
<select class="form-control restaurant_change" name="restaurant_id" >
<option value="">--SELECT--</option>
<?php $__currentLoopData = $restaurant; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($value->id); ?>"><?php echo e($value->restaurant_name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="restaurant-details">
<h3>For Restaurant Details Choose Restaurant From List !</h3>
</div>
<div class="d-flex justify-content-end">
<button type="submit" class="btn btn-outline-primary" >Sell Now</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- The Modal -->
<div class="modal" id="sellModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header bg-primary rounded-0">
<h4 class="modal-title"><?php echo e(__('message.restaurant')); ?> </h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<!-- Modal body -->
<div class="modal-body">
</div>
<!-- Modal footer -->
</div>
</div>
</div>
</main>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<!-- begin::dataTable -->
<!-- end::dataTable -->
<script>
$(document).ready(function() {
$(".restaurant_change").on("change",function(){
var res_id = $(this).val();
//alert(res_id);
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
type: "post",
data: {
"res_id": res_id
},
url: "<?php echo e(asset('get-restaurant')); ?>",
dataType: "html",
beforeSend:function()
{
$(".restaurant-details").html("<h2 class='text-center py-3'>Loading...</h2>");
},
success: function(result) {
var allData = JSON.parse(result);
if(allData.message === 'success')
{
var details = `
<div class="row">
<div class="col-md-6">
<ul class="list-unstyled">
<li class="w-100"><strong>Name:</strong> ${allData.data.restaurant_name}</li>
<li class="w-100"><strong>Address:</strong> ${allData.data.address}</li>
<li class="w-100"><strong>Email:</strong> ${allData.data.email}</li>
<li class="w-100"><strong>Mobile:</strong> ${allData.data.mobile}</li>
<li class="w-100"><strong>Owner Name:</strong> ${allData.data.owner_name}</li>
</ul>
</div>
<div class="col-md-6">
<ul class="list-unstyled">
<li class="w-100"><strong>Manager Name:</strong> ${allData.data.manager_name}</li>
<li class="w-100"><strong>Manager Mobile:</strong> ${allData.data.manager_mobile}</li>
<li class="w-100"><strong>Manager Email:</strong> ${allData.data.manager_email}</li>
<li class="w-100"><strong>State:</strong> ${allData.data.state}</li>
<li class="w-100"><strong>City:</strong> ${allData.data.city}</li>
</ul>
</div>
</div>
`;
$(".restaurant-details").html(details);
}
},
error:function(xhr,status,error)
{
$(".restaurant-details").html("<h3>Restaurant Not Found !</h3>");
}
});
});
//sell licence
});
$(".apply-button").click(function(){
$(".filter-form-box").addClass("d-none");
});
//filter company code
$(".filter-company-btn").click(function(){
if($(".filter-form-box").hasClass("d-none"))
{
$(".filter-form-box").removeClass("d-none");
}
else
{
$(".filter-form-box").addClass("d-none");
}
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\licence_panel\resources\views/sales/distributor/licence_sell.blade.php ENDPATH**/ ?>