mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
(extract a shared backstage layout)
This commit is contained in:
@@ -1,24 +1,6 @@
|
||||
@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>
|
||||
@extends('layouts.backstage')
|
||||
|
||||
@section('backstageContent')
|
||||
<div class="bg-light p-xs-y-4 border-b">
|
||||
<div class="container">
|
||||
<h1 class="text-lg">Add a concert</h1>
|
||||
@@ -193,11 +175,4 @@
|
||||
<button type="submit" class="btn btn-primary">Add Concert</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<footer class="p-xs-y-6 text-light-muted">
|
||||
<div class="container">
|
||||
<p class="text-center">© TicketBeast {{ date('Y') }}</p>
|
||||
</div>
|
||||
</footer>
|
||||
@endsection
|
||||
|
||||
@@ -1,24 +1,6 @@
|
||||
@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>
|
||||
@extends('layouts.backstage')
|
||||
|
||||
@section('backstageContent')
|
||||
<div class="bg-light p-xs-y-4 border-b">
|
||||
<div class="container">
|
||||
<h1 class="text-lg">Edit concert</h1>
|
||||
@@ -194,11 +176,4 @@
|
||||
<button type="submit" class="btn btn-primary">Save Changes</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<footer class="p-xs-y-6 text-light-muted">
|
||||
<div class="container">
|
||||
<p class="text-center">© TicketBeast {{ date('Y') }}</p>
|
||||
</div>
|
||||
</footer>
|
||||
@endsection
|
||||
|
||||
@@ -1,24 +1,6 @@
|
||||
@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>
|
||||
@extends('layouts.backstage')
|
||||
|
||||
@section('backstageContent')
|
||||
<div class="bg-light p-xs-y-4 border-b">
|
||||
<div class="container">
|
||||
<div class="flex-spaced flex-y-center">
|
||||
@@ -51,7 +33,8 @@
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<a href="{{ route('concerts.show', $concert) }}" class="btn btn-sm btn-secondary">Get Ticket Link</a>
|
||||
<a href="#" class="btn btn-sm btn-secondary m-xs-r-2">Manage</a>
|
||||
<a href="{{ route('concerts.show', $concert) }}" class="link-brand text-sm wt-medium">Public Link</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -96,11 +79,4 @@
|
||||
</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
|
||||
|
||||
36
resources/views/layouts/backstage.blade.php
Normal file
36
resources/views/layouts/backstage.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('layouts.master')
|
||||
|
||||
@section('body')
|
||||
<div class="full-height bg-soft flex-col">
|
||||
<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>
|
||||
<a href="{{ route('backstage.concerts.index') }}" class="link link-light m-xs-r-6">
|
||||
Your Concerts
|
||||
</a>
|
||||
<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="flex-fit">
|
||||
@yield('backstageContent')
|
||||
</div>
|
||||
|
||||
<footer class="bg-dark p-xs-y-6 text-light-muted">
|
||||
<div class="container">
|
||||
<p class="text-center">© TicketBeast {{ date('Y') }}</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user