Commit d628f41e authored by vachzar's avatar vachzar

update layout

parent f5fe3043
Pipeline #130949531 passed with stage
in 45 seconds
@extends('layout')
@section('content')
<h2 class="cover-heading">Latest Added Movie</h2>
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">Poster</th>
<th scope="col">Title</th>
<th scope="col">Year</th>
<th scope="col">Sub</th>
<th scope="col">Quality</th>
</tr>
</thead>
<tbody>
<h2 class="cover-heading text-center">Latest Added Movie</h2>
@foreach ($data as $movie)
<tr>
<td><img src="{{ Muvi::getPosterUrl($movie['poster']) }}" class="img-thumbnail" style="max-width: 200px"></td>
<td><a href="{{ url('player/' . Str::slug($movie['title'] . $movie['year'], '-') . '/' . $movie['imdb']) }}">{{ $movie['title'] }}</a></td>
<td>{{ $movie['year'] }}</td>
<td>{{ $movie['sub'] }}</td>
<td>{{ $movie['quality'] }}</td>
</tr>
<div class="row">
<div class="col-6 mx-auto">
<div class="media">
<img src="{{ Muvi::getPosterUrl($movie['poster']) }}" class="mr-3 img-fluid" style="max-width: 150px">
<div class="media-body">
<h5 class="mt-0"><a href="{{ url('player/' . Str::slug($movie['title'] . $movie['year'], '-') . '/' . $movie['imdb']) }}">{{ $movie['title'] }} ({{ $movie['year'] }})</a></h5>
Subtitle: {{ $movie['sub'] }} <br>
Quality : {{ $movie['quality'] }} <br>
Genre : {{ $movie['genre'] }} <br>
Runtime : {{ $movie['runtime'] }} <br>
IMDb Rating: {{ $movie['rating'] }}
</div>
</div>
<hr>
</div>
</div>
@endforeach
</tbody>
</table>
@endsection
\ No newline at end of file
......@@ -12,10 +12,10 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" >
@stack('style')
</head>
<body class="text-center">
<body>
<div class="container d-flex w-100 h-100 p-3 mx-auto flex-column">
<header class="masthead mb-auto">
<div class="inner">
<div class="inner text-center">
<img src="{{ url('mitsushima.jpg') }}">
<h1 class="masthead-brand">VXinema 0.1</h1>
<nav class="nav nav-masthead justify-content-center">
......@@ -29,7 +29,7 @@
@yield('content')
</main>
<footer class="mastfoot mt-auto">
<div class="inner">
<div class="inner text-center">
<p>VXinema 0.1 &copy; by <a href="https://vachzar.com/">vachzar</a>.</p>
</div>
</footer>
......
@extends('layout')
@section('content')
<h2 class="cover-heading">{{ $movie['Title'] }} ({{ $movie['Year'] }})</h2>
<h2 class="cover-heading text-center">{{ $movie['Title'] }} ({{ $movie['Year'] }})</h2>
<div class="row justify-content-md-center">
<form class="form-inline" method="post" action="{{ url('player/' . Str::slug($movie['Title'] . $movie['Year'], '-') . '/' . $movie['imdbID']) }}">
@csrf
......@@ -17,12 +17,8 @@
*Support subscene.com link. ex: https://subscene.com/subtitles/bad-boys-for-life/english/2172695
</small>
</div>
<div id="loadedSubInfo" class="row justify-content-md-center">
<small id="forSubstitle" class="form-text text-muted">
*Support subscene.com link. ex: https://subscene.com/subtitles/bad-boys-for-life/english/2172695
</small>
</div>
<iframe id="jarframe" src="https://gifimage.net/wp-content/uploads/2018/11/loading-gif-cdn-2.gif" data-movie-id="{{ $movie['imdbID'] }}" data-movie-sub="{{ $substitle ?? '' }}" frameborder="0" width="100%" height="600" allowfullscreen="allowfullscreen"><img src="https://gifimage.net/wp-content/uploads/2018/11/loading-gif-cdn-2.gif"></iframe>
<div id="loadedSubInfo" class="row justify-content-md-center"></div>
<iframe id="jarframe" src="https://gifimage.net/wp-content/uploads/2018/11/loading-gif-cdn-2.gif" data-movie-id="{{ $movie['imdbID'] }}" data-movie-sub="{{ $substitle ?? '' }}" frameborder="0" width="100%" height="640" allowfullscreen="allowfullscreen"></iframe>
@endsection
@push('scripts')
......
@extends('layout')
@section('content')
<h2 class="cover-heading">Search @if ($keyword) of: {{ $keyword }} @endif</h2>
<div class="row justify-content-md-center">
<h2 class="cover-heading text-center">Search @if ($keyword) of: {{ $keyword }} @endif</h2>
<div class="row justify-content-sm-center">
<form class="form-inline" method="post" action="{{ url('search') }}">
@csrf
<div class="form-group mb-2">
......@@ -13,27 +13,24 @@
</form>
</div>
@isset ($movies)
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">Poster</th>
<th scope="col">Title</th>
<th scope="col">Year</th>
<th scope="col">Sub</th>
<th scope="col">Quality</th>
</tr>
</thead>
<tbody>
@foreach ($movies as $movie)
<tr>
<td><img src="{{ $movie['poster'] }}" class="img-thumbnail" style="max-width: 200px"></td>
<td><a href="{{ url('player/' . Str::slug($movie['title'] . $movie['year'], '-') . '/' . $movie['imdb']) }}">{{ $movie['title'] }}</a></td>
<td>{{ $movie['year'] }}</td>
<td>{{ $movie['sub'] }}</td>
<td>{{ $movie['quality'] }}</td>
</tr>
<div class="row">
<div class="col-6 mx-auto">
<div class="media">
<img src="{{ Muvi::getPosterUrl($movie['poster']) }}" class="mr-3 img-fluid" style="max-width: 150px">
<div class="media-body">
<h5 class="mt-0"><a href="{{ url('player/' . Str::slug($movie['title'] . $movie['year'], '-') . '/' . $movie['imdb']) }}">{{ $movie['title'] }} ({{ $movie['year'] }})</a></h5>
Subtitle: {{ $movie['sub'] }} <br>
Quality : {{ $movie['quality'] }} <br>
Genre : {{ $movie['genre'] }} <br>
Runtime : {{ $movie['runtime'] }} <br>
IMDb Rating: {{ $movie['rating'] }}
</div>
</div>
<hr>
</div>
</div>
@endforeach
</tbody>
</table>
@endisset
@endsection
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment