Bulletinboard/resources/views/occupation/show-occupation.blade.php

27 lines
934 B
PHP

<x-layout>
<div class="container">
@isset($success)
<div class="alert alert-success" role="alert">{{ $success }}</div>
@endisset
@isset($occupation)
<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="{{ $occupation->name }}">
</div>
<button type="submit" class="btn btn-primary">Opdater</button>
</form>
</div>
</div>
@endisset
</div>
</x-layout>