@extends('layouts.profile') @section('content')
@if(env('SHOWS', false) && Auth::user()->hasShows())
@foreach(Auth::user()->getShows() as $show)
@component('components.show', ['show' => $show, 'style' => 'style="height: 100%"']) @slot('body') @php($time = strtotime($show->date))

Date: {{ date('d-m-Y', $time) }} at {{ date('H:m', $time) }}
Seat: {{ $show->seat }}
Voucher: {{ $show->voucher }}

@endslot @endcomponent
@endforeach
@else @component('components.panel', ['title' => 'No Shows'])

You have no tickets for shows.

@endcomponent @endif
@endsection