D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
www
/
storage
/
framework
/
views
/
Filename :
d0ad62d18f14a487df8718d8602cfdb3ecd37e11.php
back
Copy
<?php $__env->startSection('styles'); ?> ##parent-placeholder-bf62280f159b1468fff0c96540f3989d41279669## <link type="text/css" rel="stylesheet" href="<?php echo e(asset('css/combodate.css')); ?>"> <link href="<?php echo e(asset('css/calendar.css')); ?>" rel="stylesheet"> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> ##parent-placeholder-16728d18790deb58b3b8c1df74f06e536b532695## <script> $(function () { <?php if(!request()->month): ?> $('#calendar').hide(); $('#pir').hide(); <?php endif; ?> $('#saloons').change(function(){ var src = $(this).find(':selected').attr('data-src'); var id = $(this).val(); if(id > 0){ $('#calendar').show(); $('#pir').show(); }else{ $('#calendar').hide(); $('#pir').hide(); } }); $('.day_active').click(ajaxtime); function ajaxtime() { date = $(this).attr('id'); $('.day_active').css('background-color', '#DDD'); var saloon_id = $('#saloons').val(); $(this).css('background-color', '#999'); sp = date.split('-') //console.log(sp[1]); real_date = sp[3] + '-' + sp[2] + '-' + sp[1]; $('#work_date').text(real_date); $('#hide_day').val(real_date); $.ajax({ url: '/ajax/pierce', type: 'post', data: 'date=' + real_date + '&saloon_id=' + saloon_id, success: function (data) { $('#colo').html(data); }, error: function (data) { $('#colo').html(data); } }); } }); </script> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="container"> <div class="row"> <div class="col-md-12 bodycon"> <div class="panel-body main_body"> <div class="main_page"> <ul role="tablist" class="nav nav-tabs"> <li role="presentation"> <a href="<?php echo e(asset('/piercing/reservation')); ?>"><?php echo e(trans('client.price.price edit')); ?></a> </li> <li role="presentation" class="active"> <a href="#"><?php echo e(trans('client.shchedule.choose shchedule')); ?></a> </li> </ul> <div class="col-md-12"> <div id="styles"></div> </div> <form class="tab-content index" method="Post" action="<?php echo e(asset('/order/piercing')); ?>"> <?php echo csrf_field(); ?> <div class="col-md-4"> <div class="form-group"> <label for="exampleInputEmail1"><?php echo e(trans('client.tattoo.salons')); ?></label> <select class="form-control" name="saloon_id" id="saloons" required=""> <option value=""><?php echo e(trans('client.tattoo.choose_saloon')); ?></option> <?php $__currentLoopData = $saloons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $one): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($one->id); ?>" data-src="<?php echo e($one->picture); ?>" data-name="<?php echo e($one->name); ?>"><?php echo e($one->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <br style="clear:both" /> </div> <div class="col-md-6"> <div class="calendar_obj"> <?php echo $calendar; ?> </div> </div> <div class="col-md-2"> <div id="pir"> <div class="works" id="work_date"> </div> <input type="hidden" name="days" id="hide_day" value="<?php echo e(date('d-m-Y')); ?>"/> <input type="hidden" name="catalogs_id" value="<?php echo e((isset($_GET['catalogs_id']))?$_GET['catalogs_id']:0); ?>"> <div id="colo"> </div> </div> </div> <div class="col-md-12 sends"> <?php $b = ''; foreach($_GET as $key => $value){ $a = explode('_', $key); if($a[0] == 'pierce'){ $b.= $a[1].','; } } ?> <input type="hidden" value="<?php echo e($b); ?>" name="pierce" /> <input type="submit" name="send" disabled id="make_order" value="<?php echo e(trans('client.shchedule.payment')); ?>" class="btn btn-block btn-warning"> </div> </form> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>