Added Production build.

This commit is contained in:
2021-02-24 10:01:35 +01:00
commit 1e27c950c5
140 changed files with 14022 additions and 0 deletions
@@ -0,0 +1,22 @@
<x-layout>
<div class="container">
@isset($success)
<div class="alert alert-success" role="alert">{{ $success }}</div>
@endisset
<div class="card rounded shadow mt-2 mr-5 ml-5">
<div class="card-body">
<h2>Opret Tidsperiode</h2>
<form action="{{ @route("admin-store-timeperiod") }}" method="post">
@csrf
<div class="mb-3">
<label for="title" class="form-label">Navn</label>
<input type="text" class="form-control" id="title" name="name">
</div>
<button type="submit" class="btn btn-primary">Opret</button>
</form>
</div>
</div>
</div>
</x-layout>
@@ -0,0 +1,27 @@
<x-layout>
<div class="container">
<a href="{{ route("admin-create-timeperiod") }}">Opret Ny</a>
<table class="table">
<tr>
<th>Titel</th>
<th>Rediger</th>
<th>Slet</th>
</tr>
@foreach($timePeriods as $timePeriod)
<tr>
<td>{{ $timePeriod->name }}</td>
<td>
<a href="/admin/time-periods/{{ $timePeriod->id }}/edit"><ion-icon name="pencil-outline"></ion-icon></a>
</td>
<td>
<form action="/admin/time-periods/{{ $timePeriod->id }}/" method="post">
@method('delete')
@csrf
<button type="submit"><ion-icon name="trash-outline"></ion-icon></button>
</form>
</td>
</tr>
@endforeach
</table>
</div>
</x-layout>
@@ -0,0 +1,26 @@
<x-layout>
<div class="container">
@isset($success)
<div class="alert alert-success" role="alert">{{ $success }}</div>
@endisset
@isset($timePeriod)
<div class="card rounded shadow mt-2 mr-5 ml-5">
<div class="card-body">
<h2>Rediger Stilling</h2>
<form action="" method="post">
@method("put")
@csrf
<div class="mb-3">
<label for="title" class="form-label">Navn</label>
<input type="text" class="form-control" id="title" name="name" value="{{ $timePeriod->name }}">
</div>
<button type="submit" class="btn btn-primary">Opdater</button>
</form>
</div>
</div>
@endisset
</div>
</x-layout>