Finished Menuplan;)
This commit is contained in:
parent
4061b590cb
commit
5be4b752d7
|
@ -15,19 +15,19 @@
|
||||||
@csrf
|
@csrf
|
||||||
@method("PUT")
|
@method("PUT")
|
||||||
<label for="mandag">Mandag:</label>
|
<label for="mandag">Mandag:</label>
|
||||||
<input type="text" name="mandag" id="mandag" value="{{ $menuplan->monday }}" required>
|
<input type="text" name="monday" id="mandag" value="{{ $menuplan->monday }}" required>
|
||||||
<label for="tirsdag">Tirsdag:</label>
|
<label for="tirsdag">Tirsdag:</label>
|
||||||
<input type="text" name="tirsdag" id="tirsdag" value="{{ $menuplan->tuesday }}" required>
|
<input type="text" name="tuesday" id="tirsdag" value="{{ $menuplan->tuesday }}" required>
|
||||||
<label for="onsdag">Onsdag:</label>
|
<label for="onsdag">Onsdag:</label>
|
||||||
<input type="text" name="onsdag" id="onsdag" value="{{ $menuplan->wednesday }}" required>
|
<input type="text" name="wednesday" id="onsdag" value="{{ $menuplan->wednesday }}" required>
|
||||||
<label for="torsdag">Torsdag:</label>
|
<label for="torsdag">Torsdag:</label>
|
||||||
<input type="text" name="torsdag" id="torsdag" value="{{ $menuplan->thursday }}" required>
|
<input type="text" name="thursday" id="torsdag" value="{{ $menuplan->thursday }}" required>
|
||||||
<label for="fredag">Fredag:</label>
|
<label for="fredag">Fredag:</label>
|
||||||
<input type="text" name="fredag" id="fredag" value="{{ $menuplan->friday }}" required>
|
<input type="text" name="friday" id="fredag" value="{{ $menuplan->friday }}" required>
|
||||||
<label for="lørdag">Lørdag:</label>
|
<label for="lørdag">Lørdag:</label>
|
||||||
<input type="text" name="lørdag" id="lørdag" value="{{ $menuplan->saturday }}" required>
|
<input type="text" name="saturday" id="lørdag" value="{{ $menuplan->saturday }}" required>
|
||||||
<label for="søndag">Søndag:</label>
|
<label for="søndag">Søndag:</label>
|
||||||
<input type="text" name="søndag" id="søndag" value="{{ $menuplan->sunday }}" required>
|
<input type="text" name="sunday" id="søndag" value="{{ $menuplan->sunday }}" required>
|
||||||
|
|
||||||
<input type="submit" class="btn btn-dark text-white" value="Opret Menuplan">
|
<input type="submit" class="btn btn-dark text-white" value="Opret Menuplan">
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -31,8 +31,15 @@
|
||||||
<td>{{$menuplan->friday}}</td>
|
<td>{{$menuplan->friday}}</td>
|
||||||
<td>{{$menuplan->saturday}}</td>
|
<td>{{$menuplan->saturday}}</td>
|
||||||
<td>{{$menuplan->sunday}}</td>
|
<td>{{$menuplan->sunday}}</td>
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
<td><a href="{{ route("menu-plans.edit", [ "menu_plan" => $menuplan ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||||
<td><a href="{{ route("menu-plans.destroy", [ "menu_plan" => $menuplan ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
<td>
|
||||||
|
<form method="post" action="{{ route("menu-plans.destroy", [ "menu_plan" => $menuplan ]) }}" class="w-100">
|
||||||
|
@csrf
|
||||||
|
@method("delete")
|
||||||
|
|
||||||
|
<button class="w-100" type="submit"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></button>
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue