2020-06-16 07:04:25 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
|
|
|
Bruger - Rediger
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
2020-06-29 07:08:49 +00:00
|
|
|
<a href="{{ route('users.edit', ['user' => $user]) }}" class="text-white">Rediger Bruger</a> /
|
2020-06-16 07:04:25 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-06-17 09:28:48 +00:00
|
|
|
<h1>Rediger Bruger:</h1>
|
2020-06-29 07:08:49 +00:00
|
|
|
<form method="post" action="{{ route("users.update", ['user' => $user]) }}">
|
2020-06-22 08:08:18 +00:00
|
|
|
@csrf
|
2020-06-29 06:50:50 +00:00
|
|
|
@method("put")
|
2020-06-17 09:28:48 +00:00
|
|
|
<label for="name_first">Fornavn:</label>
|
2020-06-30 06:03:42 +00:00
|
|
|
<input type="text" name="name_first" id="name_first" value="{{ $user->name_first }}" required>
|
2020-06-17 09:28:48 +00:00
|
|
|
<label for="name_last">Efternavn:</label>
|
2020-06-30 06:03:42 +00:00
|
|
|
<input type="text" name="name_last" id="name_last" value="{{ $user->name_last }}" required>
|
2020-06-17 09:28:48 +00:00
|
|
|
<label for="email">Email:</label>
|
2020-06-30 06:03:42 +00:00
|
|
|
<input type="email" name="email" id="email" value="{{ $user->name_email }}" required>
|
2020-06-17 09:28:48 +00:00
|
|
|
<label for="password1">Password:</label>
|
2020-06-30 06:03:42 +00:00
|
|
|
<input type="password" name="password" id="password1" value="" required>
|
2020-06-17 09:28:48 +00:00
|
|
|
<label for="password2">Confirm Password:</label>
|
2020-06-30 06:03:42 +00:00
|
|
|
<input type="password" id="password2" value="" required>
|
2020-06-17 09:28:48 +00:00
|
|
|
<label for="tel">Telefon nr:</label>
|
2020-06-30 06:03:42 +00:00
|
|
|
<input type="tel" name="phone" id="tel" value="{{ $user->phone }}" required>
|
|
|
|
<label for="role">Rolle:</label>
|
2020-06-30 11:22:02 +00:00
|
|
|
<select name="roles[]" id="roles" class="mb-2" multiple="multiple" required>
|
2020-07-01 07:27:54 +00:00
|
|
|
<option disabled selected value> -- Vælg Rolle(r) -- </option>
|
|
|
|
<option value>Ingen Rolle</option>
|
2020-06-30 10:07:38 +00:00
|
|
|
@foreach($roles as $role)
|
|
|
|
<option value="{{ $role->name }}">{{ $role->name }}</option>
|
|
|
|
@endforeach
|
2020-06-30 06:03:42 +00:00
|
|
|
</select>
|
2020-06-17 09:28:48 +00:00
|
|
|
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
|
|
|
</form>
|
2020-06-16 07:04:25 +00:00
|
|
|
@endsection
|