3
0
Fork 0
This repository has been archived on 2024-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
ThemeParkPlus-Panel/resources/views/profile/home.blade.php
2021-06-29 22:05:00 +02:00

30 lines
1.4 KiB
PHP

@extends('layouts.profile')
@section('content')
<div class="wrapper">
<div class="container-fluid">
<div class="col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
@if(env('SHOWS', false) && Auth::user()->hasShows())
<div class="row card-container">
@foreach(Auth::user()->getShows() as $show)
<div class="col-xs-12 col-md-6">
@component('components.show', ['show' => $show, 'style' => 'style="height: 100%"'])
@slot('body')
@php($time = strtotime($show->date))
<p style="margin: 0"><strong>Date: </strong>{{ date('d-m-Y', $time) }} at {{ date('H:m', $time) }}
<br><strong>Seat: </strong>{{ $show->seat }}
<br><strong>Voucher: </strong>{{ $show->voucher }}</p>
@endslot
@endcomponent
</div>
@endforeach
</div>
@else
@component('components.panel', ['title' => 'No Shows'])
<p>You have no tickets for shows.</p>
@endcomponent
@endif
</div>
</div>
</div>
@endsection