Fixed Routes and blades.
This commit is contained in:
@@ -22,10 +22,10 @@
|
||||
<div class="segment">
|
||||
<h3 class="text-white">Menuplan</h3>
|
||||
<div class="row">
|
||||
<a href="" class="text-white"><img src="{{ asset('/images/icons/eye.svg') }}" alt="Read">Vis Menuplan</a>
|
||||
<a href="{{ route("menu-plans.index") }}" class="text-white"><img src="{{ asset('/images/icons/eye.svg') }}" alt="Read">Vis Menuplan</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Menuplan</a>
|
||||
<a href="{{ route("menu-plans.create") }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Menuplan</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
@section("content")
|
||||
<h1>Opret Bruger:</h1>
|
||||
<form method="post" action="/users">
|
||||
<form method="post" action="{{ route("users.store") }}">
|
||||
@csrf
|
||||
<label for="name_first">Fornavn:</label>
|
||||
<input type="text" name="name_first" id="name_first" required>
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
||||
</tr>
|
||||
@foreach($users as $user)
|
||||
<tr>
|
||||
@foreach($users as $user)
|
||||
<td>{{ $user->id }}</td>
|
||||
<td>{{ $user->name_first }}</td>
|
||||
<td>{{ $user->name_last }}</td>
|
||||
@@ -29,7 +29,9 @@
|
||||
<td>{{ $user->phone }}</td>
|
||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
{{ $users->links() }}
|
||||
@endsection
|
||||
|
||||
@@ -6,28 +6,36 @@
|
||||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="" class="text-white">Vis Vaskemaskiner</a> /
|
||||
<a href="" class="text-white">Opret Vaskemaskine</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<table class="tbl">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Fornavn</th>
|
||||
<th>Efternavn</th>
|
||||
<th>Email</th>
|
||||
<th>Tlf nr</th>
|
||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{ID}</td>
|
||||
<td>{Fornavn}</td>
|
||||
<td>{Efternavn}</td>
|
||||
<td>{Email}</td>
|
||||
<td>{TLF}</td>
|
||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<h1>Opret Bruger:</h1>
|
||||
<form method="post" action="{{ route("washing-machines.store") }}">
|
||||
@csrf
|
||||
<label for="name_first">Navn:</label>
|
||||
<input type="text" name="name" id="name" max="60" required>
|
||||
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||
</form>
|
||||
|
||||
{{-- <table class="tbl">--}}
|
||||
{{-- <tr>--}}
|
||||
{{-- <th>ID</th>--}}
|
||||
{{-- <th>Fornavn</th>--}}
|
||||
{{-- <th>Efternavn</th>--}}
|
||||
{{-- <th>Email</th>--}}
|
||||
{{-- <th>Tlf nr</th>--}}
|
||||
{{-- <th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>--}}
|
||||
{{-- <th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>--}}
|
||||
{{-- </tr>--}}
|
||||
{{-- <tr>--}}
|
||||
{{-- <td>{ID}</td>--}}
|
||||
{{-- <td>{Fornavn}</td>--}}
|
||||
{{-- <td>{Efternavn}</td>--}}
|
||||
{{-- <td>{Email}</td>--}}
|
||||
{{-- <td>{TLF}</td>--}}
|
||||
{{-- <td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>--}}
|
||||
{{-- <td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>--}}
|
||||
{{-- </tr>--}}
|
||||
{{-- </table>--}}
|
||||
@endsection
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
{{--@extends("admin.users.update")--}}
|
||||
|
||||
{{--Create Menuplan--}}
|
||||
{{--@extends("admin.menuplan.create")--}}
|
||||
{{--@extends("admin.menuplans.create")--}}
|
||||
|
||||
{{--Read Menuplan--}}
|
||||
{{--@extends("admin.menuplan.show")--}}
|
||||
{{--@extends("admin.menuplans.show")--}}
|
||||
|
||||
{{--Update Menuplan--}}
|
||||
{{--@extends("admin.menuplan.update")--}}
|
||||
{{--@extends("admin.menuplans.update")--}}
|
||||
|
||||
Reference in New Issue
Block a user