fix: working copy, caching ASP, notworking orders though
This commit is contained in:
parent
dc5d204cfc
commit
390ad23e03
32 changed files with 246 additions and 194 deletions
12
resources/views/components/movie-cards.blade.php
Normal file
12
resources/views/components/movie-cards.blade.php
Normal 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>
|
17
resources/views/components/movie-list.blade.php
Normal file
17
resources/views/components/movie-list.blade.php
Normal 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>
|
|
@ -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>
|
|
@ -7,7 +7,6 @@
|
|||
@endpush
|
||||
|
||||
<div>
|
||||
|
||||
<div id="seat-chooser" data-showing-id="{{ $showing_id }}">
|
||||
<div id="seat-chooser-status">
|
||||
<h2>Loading...</h2>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue