69 lines
2.9 KiB
PHP
69 lines
2.9 KiB
PHP
|
@extends('layouts.panel')
|
||
|
|
||
|
@section('navigation')
|
||
|
<ul class="nav navbar-nav">
|
||
|
<li class="active"><a>Home</a></li>
|
||
|
<!-- <li><a href="email.php">Email</a></li>
|
||
|
<li><a href="password.php">Password</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="../index.php">Panel</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="container-fluid" style="margin-top: 75px">
|
||
|
<?php if($shows != null && !empty($shows)) {
|
||
|
foreach($shows as $row) {
|
||
|
if(strtotime($row['showDate']) < strtotime(date("H:i j-n-Y", time())))
|
||
|
continue; ?>
|
||
|
<div class="col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
|
||
|
<div class="panel panel-theme">
|
||
|
<div class="panel-heading">
|
||
|
<h3 class="panel-title"><?php echo $row['showName']; ?></h3>
|
||
|
</div>
|
||
|
<div class="panel-body">
|
||
|
<div class="container-fluid">
|
||
|
<div class="row">
|
||
|
<div class="col-xs-12 col-lg-9 col-md-9 col-sm-9">
|
||
|
<p><?php echo $row['showDescription']; ?></p>
|
||
|
<p class="bottom"><strong>Date: </strong><?php echo $row['showDate']; ?></p>
|
||
|
<p><strong>Seat: </strong><?php echo $row['showSeat']; ?></p>
|
||
|
<p><strong>Voucher: </strong><?php echo $row['voucher']; ?></p>
|
||
|
</div>
|
||
|
<div class="hidden-xs col-lg-3 col-md-3 col-sm-3">
|
||
|
<img src="<?php echo $row['showImage']; ?>" style="float: right; height: auto; width: 100%; margin: auto" alt="Image">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php }
|
||
|
} else { ?>
|
||
|
<div class="col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
|
||
|
<div class="panel panel-theme">
|
||
|
<div class="panel-heading">
|
||
|
<h3 class="panel-title">No Shows</h3>
|
||
|
</div>
|
||
|
<div class="panel-body">
|
||
|
<div class="container-fluid">
|
||
|
<p>You have no tickets for shows.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php } ?>
|
||
|
</div>
|
||
|
@endsection
|