2019-11-02 10:32:23 +00:00
|
|
|
@extends('Bilettm.Layouts.BilettmLayout')
|
|
|
|
|
@section('content')
|
|
|
|
|
{{\DaveJamesMiller\Breadcrumbs\Facades\Breadcrumbs::render('seats',$event)}}
|
|
|
|
|
<section style="margin-bottom: 80px">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<a class="mobile_pt_30 mobile_pb0 collapsed d-flex justify-content-between g-color-main g-text-underline--none--hover g-brd-bottom g-brd-gray-light-v4 g-pa-15-0" href="#accordion-10-body-02" data-toggle="collapse" data-parent="#accordion-10" aria-expanded="false" aria-controls="accordion-10-body-02">
|
|
|
|
|
<span class="d-flex">
|
|
|
|
|
<h1 class="mobile_header_tab" style="font-weight: 600;font-size: 35px;">Choose seats</h1>
|
|
|
|
|
</span>
|
|
|
|
|
</a>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="pills-struct mt-5">
|
|
|
|
|
<ul role="tablist" class="nav nav-pills m-auto w-auto justify-content-center" id="choose_seats">
|
|
|
|
|
@foreach($tickets as $ticket)
|
|
|
|
|
<li class="active" role="presentation" style="display: inline-block;">
|
|
|
|
|
<a aria-expanded="true" data-toggle="tab" class="@if ($loop->first)active @endif show"
|
|
|
|
|
role="tab" id="home_tab_{{$ticket->id}}" href="#home_{{$ticket->id}}" aria-selected="true">
|
|
|
|
|
{{$ticket->title}} - {{$ticket->price}} man.</a>
|
|
|
|
|
</li>
|
|
|
|
|
@endforeach
|
|
|
|
|
</ul>
|
2019-11-05 12:28:51 +00:00
|
|
|
<div class="d-flex justify-content-center mt-5 mb-4" style="width: 70%; margin: auto">
|
|
|
|
|
<span class="mx-3 text-center" style="font-size: 18px"><i class="fa fa-circle" style="color: #ebeced; font-size: 13px"></i> Available</span>
|
|
|
|
|
<span class="mx-3 text-center" style="font-size: 18px"><i class="fa fa-circle" style="color: #69687d; font-size: 13px"></i> Booked</span>
|
|
|
|
|
<span class="mx-3 text-center" style="font-size: 18px"><i class="fa fa-circle" style="color: #b6b6b6; font-size: 13px"></i> Reserved</span>
|
|
|
|
|
<span class="mx-3 text-center" style="font-size: 18px"><i class="fa fa-circle" style="color: #ff4159; font-size: 13px"></i> Your Selection</span>
|
2019-11-02 10:32:23 +00:00
|
|
|
</div>
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width: 100%" height="137.997" viewBox="0 0 1120 137.997">
|
|
|
|
|
<defs>
|
|
|
|
|
<linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
|
|
|
|
|
<stop offset="0" stop-color="#f6f6f6"/>
|
|
|
|
|
<stop offset="1" stop-color="#fff"/>
|
|
|
|
|
</linearGradient>
|
|
|
|
|
</defs>
|
|
|
|
|
<g id="Screen_and_acupation" data-name="Screen and acupation" transform="translate(-163 -1257)">
|
|
|
|
|
<g id="Group_16" data-name="Group 16" transform="translate(163 1257)">
|
|
|
|
|
<path id="Path_2" data-name="Path 2" d="M0,126.055s347.577-9.015,494.7-9.015,494.7,9.015,494.7,9.015L985.545,10.807S683.323,0,496.656,0,7.767,10.807,7.767,10.807Z" transform="translate(63.344 11.942)" opacity="0.5" fill="url(#linear-gradient)"/>
|
|
|
|
|
<path id="Path_2-2" data-name="Path 2" d="M63.344,18.577s347.577-6.5,494.7-6.5,494.7,6.5,494.7,6.5L1120,7.394S746.667,0,560,0,0,7.394,0,7.394Z" fill="#ebeced"/>
|
|
|
|
|
</g>
|
|
|
|
|
</g>
|
|
|
|
|
</svg>
|
2019-11-05 12:28:51 +00:00
|
|
|
<form id="seats-form" class="ajax" action="{{route('postValidateTickets',['event_id'=>$event->id])}}" method="post">
|
|
|
|
|
@csrf
|
2019-11-02 10:32:23 +00:00
|
|
|
<div class="tab-content" id="choose_seats_content">
|
2019-11-05 12:28:51 +00:00
|
|
|
@foreach($tickets as $ticket)
|
|
|
|
|
<div id="home_{{$ticket->id}}" class="tab-pane fade active show in " role="tabpanel">
|
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
|
<img onload="disable_rb('{{$ticket->id}}',{{$ticket->reserved->pluck('seat_no')->toJson()}},{{$ticket->booked->pluck('seat_no')->toJson()}})"
|
|
|
|
|
class="img-responsive" alt="{{$event->venue->venue_name}} - {{$ticket->section->section_no}}"
|
|
|
|
|
src="{{asset('user_content/'.$ticket->section->section_image)}}" >
|
|
|
|
|
</div>
|
|
|
|
|
<div class="standard-box" style="position: relative; padding: 20px 0">
|
|
|
|
|
<h5 style="font-weight: bold; font-size: 24px; margin-bottom: 20px; text-align: center">{{$ticket->title }} {{$ticket->description}} {{$ticket->section->section_no}}</h5>
|
|
|
|
|
<table style="text-align: center; margin: auto" >
|
|
|
|
|
<tbody id="{{$ticket->id}}">
|
|
|
|
|
@foreach($ticket->section->seats as $row)
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{$row['row']}}</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
@for($i = $row['start_no'];$i<=$row['end_no'];$i++)
|
|
|
|
|
<td>
|
|
|
|
|
<input type="checkbox" class="seat_check"
|
|
|
|
|
id="seat{{$ticket->id.'-'.$row['row'].'-'.$i}}"
|
|
|
|
|
name="seats[{{$ticket->id}}][]"
|
|
|
|
|
value="{{$row['row'].'-'.$i}}"
|
|
|
|
|
data-num="{{$ticket->price}}">
|
|
|
|
|
<label for="seat{{$ticket->id.'-'.$row['row'].$i}}">
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="25" viewBox="0 0 26 25">
|
|
|
|
|
<path id="Rectangle_3" data-name="Rectangle 3" d="M8,0H18a8,8,0,0,1,8,8V25a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0V8A8,8,0,0,1,8,0Z"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
<span style="position:relative;right: 55%">{{$i}}</span>
|
|
|
|
|
</label>
|
|
|
|
|
</td>
|
|
|
|
|
@endfor
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
@endforeach
|
|
|
|
|
</tbody></table>
|
|
|
|
|
<!--<div class="seats-top-overlay" style="width: 70%"></div>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script>
|
|
|
|
|
{{--var disable_list ={{zanitlananlar($ticket)}}--}}
|
|
|
|
|
</script>
|
|
|
|
|
@endforeach
|
2019-11-02 10:32:23 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="checked-seats" style="padding: 30px 0; text-align: center">
|
2019-11-05 12:28:51 +00:00
|
|
|
<h5 class="text-center font-weight-bold">You Have Selected <span id="total_seats">0</span> seats. Total cost <span id="total_cost">0</span> man.</h5>
|
|
|
|
|
<h5 class="text-center">Your Seats:</h5>
|
2019-11-02 10:32:23 +00:00
|
|
|
<div class="your-selected-seats" style="text-align: center; margin-bottom: 50px">
|
|
|
|
|
</div>
|
2019-11-05 12:28:51 +00:00
|
|
|
{!!Form::submit('Confirm seats', ['id' => 'confirm-seats'])!!}
|
2019-11-02 10:32:23 +00:00
|
|
|
</div>
|
2019-11-05 12:28:51 +00:00
|
|
|
</form>
|
2019-11-02 10:32:23 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
@endsection
|
|
|
|
|
@section('after_scripts')
|
2019-11-05 12:28:51 +00:00
|
|
|
<script>
|
|
|
|
|
$(':checkbox').change(function() {
|
|
|
|
|
if(this.checked) {
|
|
|
|
|
var ticket = "<span aria-label='"+this.id+"'>"+this.value+"</span>"
|
|
|
|
|
$('.your-selected-seats').append(ticket);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
$('.your-selected-seats').find("[aria-label='"+this.id+"']").remove();
|
|
|
|
|
}
|
|
|
|
|
var numberOfChecked = $('input:checkbox:checked').length;
|
|
|
|
|
|
|
|
|
|
var total_cost =0;
|
|
|
|
|
$('input:checkbox:checked').each(function(index, elem) {
|
|
|
|
|
total_cost += parseFloat($(elem).attr('data-num'));
|
|
|
|
|
});
|
|
|
|
|
$('#total_seats').html(numberOfChecked);
|
|
|
|
|
$('#total_cost').html(total_cost.toFixed(2));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
|
|
|
|
$("input[type=checkbox].input-booked").attr("disabled", true);
|
|
|
|
|
$("input[type=checkbox].input-reserved").attr("disabled", true);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function disable_rb(table_id, reserved,booked) {
|
|
|
|
|
//alert(reserved[0]);
|
|
|
|
|
if(booked.length>0){
|
|
|
|
|
//alert('alert')
|
|
|
|
|
for(booked)
|
|
|
|
|
$('tbody#'+table_id+':input[type=checkbox]').find();
|
|
|
|
|
}
|
|
|
|
|
if(reserved.left>0){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
2019-11-02 10:32:23 +00:00
|
|
|
@include("Shared.Partials.LangScript")
|
|
|
|
|
{!!HTML::script(config('attendize.cdn_url_static_assets').'/assets/javascript/frontend.js')!!}
|
|
|
|
|
@endsection
|