Finished Menuplan;)

This commit is contained in:
Sebastian Davaris 2020-06-29 08:43:35 +02:00
parent 4061b590cb
commit 5be4b752d7
2 changed files with 16 additions and 9 deletions

View File

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

View File

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