mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-15 11:53:19 +00:00
(add concert index template)
This commit is contained in:
@@ -6,3 +6,8 @@
|
|||||||
color: @text-dark;
|
color: @text-dark;
|
||||||
vertical-align: text-bottom; // Trial and error, this is the best option for 20px icon + 16px text
|
vertical-align: text-bottom; // Trial and error, this is the best option for 20px icon + 16px text
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.zondicon-sm {
|
||||||
|
height: 1em;
|
||||||
|
width: 1em;
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,68 @@
|
|||||||
|
@extends('layouts.master')
|
||||||
|
|
||||||
|
@section('body')
|
||||||
|
<header>
|
||||||
|
<nav class="navbar p-xs-y-3">
|
||||||
|
<div class="container">
|
||||||
|
<div class="navbar-content">
|
||||||
|
<div>
|
||||||
|
<img src="/img/logo.svg" alt="TicketBeast" style="height: 2.5rem;">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<form class="inline-block" action="{{ route('auth.logout') }}" method="POST">
|
||||||
|
{{ csrf_field() }}
|
||||||
|
<button type="submit" class="link link-light">Log out</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="bg-light p-xs-y-4 border-b">
|
||||||
|
<div class="container">
|
||||||
|
<div class="flex-spaced flex-y-center">
|
||||||
|
<h1 class="text-lg">Your concerts</h1>
|
||||||
|
<a href="{{ route('backstage.concerts.new') }}" class="btn btn-primary">Add concert</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bg-soft p-xs-y-5">
|
||||||
|
<div class="container m-xs-b-4">
|
||||||
|
<div class="row">
|
||||||
|
@foreach ($concerts as $concert)
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-section">
|
||||||
|
<div class="m-xs-b-4">
|
||||||
|
<div class="m-xs-b-2">
|
||||||
|
<h1 class="text-lg wt-bold">{{ $concert->title }}</h1>
|
||||||
|
<p class="wt-medium text-dark-soft">{{ $concert->subtitle }}</p>
|
||||||
|
</div>
|
||||||
|
<p class="text-sm m-xs-b-2">
|
||||||
|
@icon('location', 'zondicon-sm text-dark-soft m-xs-r-1')
|
||||||
|
{{ $concert->venue }} – {{ $concert->city }}, {{ $concert->state }}
|
||||||
|
</p>
|
||||||
|
<p class="text-sm">
|
||||||
|
@icon('calendar', 'zondicon-sm text-dark-soft m-xs-r-1')
|
||||||
|
{{ $concert->formatted_date }} @ {{ $concert->formatted_start_time }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="text-right">
|
||||||
|
<a href="#" class="btn btn-secondary btn-block">Edit</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer class="p-xs-y-6 text-light-muted">
|
||||||
|
<div class="container">
|
||||||
|
<p class="text-center">© TicketBeast {{ date('Y') }}</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
@endsection
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ Route::post('/logout', 'Auth\LoginController@logout')->name('auth.logout');
|
|||||||
|
|
||||||
Route::group(['middleware' => 'auth', 'prefix' => 'backstage', 'namespace' => 'Backstage'], function () {
|
Route::group(['middleware' => 'auth', 'prefix' => 'backstage', 'namespace' => 'Backstage'], function () {
|
||||||
Route::get('/concerts', 'ConcertsController@index');
|
Route::get('/concerts', 'ConcertsController@index');
|
||||||
Route::get('/concerts/new', 'ConcertsController@create');
|
Route::get('/concerts/new', 'ConcertsController@create')->name('backstage.concerts.new');
|
||||||
Route::post('/concerts', 'ConcertsController@store');
|
Route::post('/concerts', 'ConcertsController@store');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user