Added Production build.
This commit is contained in:
@@ -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 Status</h2>
|
||||
<form action="{{ @route("admin-store-state") }}" 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-state") }}">Opret Ny</a>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Titel</th>
|
||||
<th>Rediger</th>
|
||||
<th>Slet</th>
|
||||
</tr>
|
||||
@foreach($states as $state)
|
||||
<tr>
|
||||
<td>{{ $state->name }}</td>
|
||||
<td>
|
||||
<a href="/admin/states/{{ $state->id }}/edit"><ion-icon name="pencil-outline"></ion-icon></a>
|
||||
</td>
|
||||
<td>
|
||||
<form action="/admin/states/{{ $state->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($state)
|
||||
|
||||
<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="{{ $state->name }}">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Opdater</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endisset
|
||||
</div>
|
||||
</x-layout>
|
||||
Reference in New Issue
Block a user