Ekapp/skolehjem/resources/views/admin/menuplans/edit.blade.php

35 lines
1.5 KiB
PHP

@extends("admin.layout.base")
@extends("admin.layout.header")
@section("title")
Menuplan - Rediger
@endsection
@section("path")
<a href="{{ route('menu-plans.edit', [ "menu_plan" => $menuplan ]) }}" class="text-white">Rediger Menuplan</a> /
@endsection
@section("content")
<h1>Rediger Menuplan:</h1>
<form method="post" action="{{ route("menu-plans.update", [ "menu_plan" => $menuplan ]) }}">
@csrf
@method("PUT")
<label for="mandag">Mandag:</label>
<input type="text" name="mandag" id="mandag" value="{{ $menuplan->monday }}" required>
<label for="tirsdag">Tirsdag:</label>
<input type="text" name="tirsdag" id="tirsdag" value="{{ $menuplan->tuesday }}" required>
<label for="onsdag">Onsdag:</label>
<input type="text" name="onsdag" id="onsdag" value="{{ $menuplan->wednesday }}" required>
<label for="torsdag">Torsdag:</label>
<input type="text" name="torsdag" id="torsdag" value="{{ $menuplan->thursday }}" required>
<label for="fredag">Fredag:</label>
<input type="text" name="fredag" id="fredag" value="{{ $menuplan->friday }}" required>
<label for="lørdag">Lørdag:</label>
<input type="text" name="lørdag" id="lørdag" value="{{ $menuplan->saturday }}" required>
<label for="søndag">Søndag:</label>
<input type="text" name="søndag" id="søndag" value="{{ $menuplan->sunday }}" required>
<input type="submit" class="btn btn-dark text-white" value="Opret Menuplan">
</form>
@endsection