Bulletinboard/resources/views/state/show-status.blade.php

27 lines
924 B
PHP

<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>