fix: working copy, caching ASP, notworking orders though

This commit is contained in:
Didier Slof 2023-02-03 09:05:29 +01:00
parent dc5d204cfc
commit 390ad23e03
Signed by: didier
GPG key ID: 01E71F18AA4398E5
32 changed files with 246 additions and 194 deletions

View file

@ -8,7 +8,7 @@
<h2>{{ __('Login') }}</h2>
<div class="form">
<form method="POST" action="{{ route('login') }}">
<form method="POST" action="{{ route('login', ['redirect' => request()->get('redirect')]) }}">
@csrf
<div class="item">
<label for="email">{{ __('E-Mail Address') }}</label><br/>

View file

@ -0,0 +1,12 @@
<div id="movie-grid">
@foreach($movies as $movie)
<a class="movie" href="{{route('movie', ['id' => $movie->movie_id])}}">
<x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
<div class="details">
<h2>{{ $movie->movie_name }}</h2>
<span>{{ Str::limit($movie->movie_description, 150) }}</span>
<p>{{ $movie->movie_length }} minutes</p>
</div>
</a>
@endforeach
</div>

View file

@ -0,0 +1,17 @@
@push('head')
<link rel="stylesheet" href="{{ asset('css/manage/movies.css') }}">
@endpush
<div id="movie-list">
@foreach($movies as $movie)
<a href="/manage/movie/{{$movie->movie_id}}">
<x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
<div class="details">
<h3>{{$movie->movie_name}}</h3><br/>
<span>{{ Str::limit($movie->movie_description, 500) }}</span><br/>
<hr/>
<span>{{$movie->movie_length}} min | {{$movie->movie_year}}</span>
</div>
</a>
@endforeach
</div>

View file

@ -1,33 +0,0 @@
@extends('layout')
@push('head')
<link rel="stylesheet" href="{{ asset('css/seat-chooser.css') }}">
<script src="{{ asset('js/seat-chooser.js') }}" defer></script>
@endpush
<div id="load-screen">
<div id="loading">
<div class="spinner"></div>
<div class="loading-text">Loading...</div>
</div>
</div>
<div class="seat-chooser">
@foreach($seatmatrix as $row)
<div class="row">
@foreach($row as $seat)
@if($seat)
<div class="seat @if($seat->isReserved($showing_id)) reserved @endif"
data-seat-id="{{ $seat->seat_id }}"
data-seat-status="{{ $seat->seat_status }}"
data-seat-row="{{ $seat->seat_row }}"
data-seat-column="{{ $seat->seat_column }}">
<div class="seat-number">{{ $seat->seat_row }}-{{ $seat->seat_column }}</div>
</div>
@else
<div class="no-seat"></div>
@endif
@endforeach
</div>
@endforeach
</div>

View file

@ -7,7 +7,6 @@
@endpush
<div>
<div id="seat-chooser" data-showing-id="{{ $showing_id }}">
<div id="seat-chooser-status">
<h2>Loading...</h2>

View file

@ -16,7 +16,7 @@
<h2>Orders</h2>
<hr/>
<x-orders :orders="Auth()->user()->orders" />
<x-orders :orders="Auth()->user()->orders"/>
<h2>Permissions</h2>
<hr/>

View file

@ -1,7 +1,7 @@
@extends('main.layout')
@push('head')
<link rel="stylesheet" href="{{ asset('css/extra.css') }}">
<link rel="stylesheet" href="{{ asset('css/main/jumbotron.css') }}">
<script defer src="{{ asset('js/jumbotron.js') }}"></script>
@endpush

View file

@ -2,7 +2,7 @@
@push('head')
<link rel="stylesheet" href="{{ asset('css/generic.css') }}">
<link rel="stylesheet" href="{{ asset('css/main.css') }}">
<link rel="stylesheet" href="{{ asset('css/main/main.css') }}">
@endpush
@section('body')

View file

@ -1,7 +1,7 @@
@extends('main.layout')
@push('head')
<link rel="stylesheet" href="{{asset('css/movies.css')}}">
<link rel="stylesheet" href="{{asset('css/main/movies.css')}}">
@endpush
@section('content')
@ -9,17 +9,7 @@
<section>
<h1>Now playing:</h1>
<hr/>
<div id="movies">
@foreach($movies as $movie)
<a class="movie" href="{{route('movie', ['id' => $movie->movie_id])}}">
<x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
<div class="details">
<h2>{{ $movie->movie_name }}</h2>
<span>{{ $movie->movie_description }}</span>
<p>{{ $movie->movie_length }} minutes</p>
</div>
</a>
@endforeach
<x-movie-cards :movies="$movies"/>
</section>
@endsection

View file

@ -30,6 +30,5 @@
<hr/>
<div id="summary-total">Total: €0.00</div>
</div>
<button id="order-button" class="button" disabled=true>Order</button>
<button id="order-button" class="button" disabled="true" data-token="{{ Auth::user()->createToken('order-token', ['*'], now()->addMinutes(15))->plainTextToken }}">Order</button>
@endsection

View file

@ -5,7 +5,7 @@
@push('head')
<link rel="stylesheet" href="{{ asset('css/generic.css') }}">
<link rel="stylesheet" href="{{ asset('css/manage.css') }}">
<link rel="stylesheet" href="{{ asset('css/manage/manage.css') }}">
@endpush
@section('body')

View file

@ -8,17 +8,5 @@
<a href="{{ route('manage.movies.create') }}" class="button" style="height: 2rem; margin: 0.5rem 0;">Add Movie</a>
</div>
<hr/><br/>
<div id="movies">
@foreach($movies as $movie)
<a href="/manage/movie/{{$movie->movie_id}}">
<x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
<div class="details">
<h3>{{$movie->movie_name}}</h3><br/>
<span>{{ Str::limit($movie->movie_description, 500) }}</span><br/>
<hr/>
<span>{{$movie->movie_length}} min | {{$movie->movie_year}}</span>
</div>
</a>
@endforeach
</div>
<x-movie-list :movies="$movies"/>
@endsection

View file

@ -0,0 +1,9 @@
@extends('manage.layout')
@push('head')
<link rel="stylesheet" href="{{ asset('css/manage.css') }}">
@endpush
@section('content')
@endsection