2021-06-27 19:01:43 +00:00
|
|
|
@extends('layouts.main')
|
2020-02-26 23:42:36 +00:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="col-lg-4 col-lg-offset-2 col-md-4 col-md-offset-2">
|
|
|
|
<div class="panel panel-theme">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">Book Show</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="container-fluid">
|
|
|
|
@if(session('error'))
|
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
|
{{ session('error') }}
|
|
|
|
<a class="close" data-dismiss="alert" aria-label="close">×</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@elseif(session('success'))
|
|
|
|
<div class="alert alert-success" role="alert">
|
|
|
|
{{ session('success') }}
|
|
|
|
<a class="close" data-dismiss="alert" aria-label="close">×</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<form action="{{ route('makeOrder') }}" method="post" class="col-xs-12">
|
|
|
|
@csrf
|
|
|
|
<input name="id" value="{{ $show->id }}" style="display: none">
|
|
|
|
|
|
|
|
<div class="custom-select" style="width: 100%">
|
|
|
|
<select name="date">
|
|
|
|
@if(!empty($dates))
|
|
|
|
<option class="disabled" selected>Select Date:</option>
|
|
|
|
@foreach($dates as $row)
|
|
|
|
@php($time = strtotime($row['date']))
|
2021-06-27 19:01:43 +00:00
|
|
|
<option value="{{ $row['date'] }}" free_seats="{{ $row['free_seats'] }}">{{ date('d-m-Y', $time) }} at {{ date('H:i', $time) }}</option>
|
2020-02-26 23:42:36 +00:00
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
<option class="disabled" selected>No dates to book</option>
|
|
|
|
@endif
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<button type="submit" name="submit" class="btn-custom" style="width: 100%">Book Show</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-md-4">
|
|
|
|
<div class="panel panel-theme">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">Book Information</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<h4>{{ $show->title }}</h4>
|
|
|
|
<div class="col-xs-8 col-xs-offset-2 col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2 col-sm-8 col-sm-offset-2">
|
|
|
|
<img src="{{ $show->image }}" style="height: auto; width: 100%" alt="Image">
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<p>{{ $show->description }}</p>
|
|
|
|
<p><strong>Price: €</strong>{{ $show->price }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|