93 lines
4.3 KiB
PHP
93 lines
4.3 KiB
PHP
@extends('layouts.panel')
|
|
|
|
@section('navigation')
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="{{ route('home') }}">Home</a></li>
|
|
<li><a href="{{ route('status') }}">Attraction Status</a></li>
|
|
@if(Route::has('photo'))
|
|
<li><a href="{{ route('photo') }}">ActionFoto's</a></li>
|
|
@endif
|
|
<li class="active"><a href="{{ route('shows') }}">Show</a></li>
|
|
<!-- <li><a href="store.php">Store</a></li> -->
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ Auth::user()->username() }}<span class="caret"></span></a><ul class="dropdown-menu">
|
|
<li><a href="{{ route('profile.home') }}">Profile</a></li>
|
|
@if(Auth::user()->is_admin || Auth::user()->is_root)
|
|
<li><a href="admin/">Admin</a></li>
|
|
<li role="separator" class="divider"></li>
|
|
@endif
|
|
<li><a href="{{ route('logout') }}">Logout</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
@endsection
|
|
|
|
@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']))
|
|
<option value="{{ $row['date'] }}" free_seats="{{ $row['free_seats'] }}">{{ date('d-m-Y', $time) }} at {{ date('H:m', $time) }}</option>
|
|
@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
|