2020-06-25 11:30:58 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
2020-06-26 10:20:20 +00:00
|
|
|
Vaske Reservationer - Opret
|
2020-06-25 11:30:58 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
2020-07-01 09:38:09 +00:00
|
|
|
<a href="{{ route('washing-reservations.create') }}" class="text-white">Opret Vaskemaskine Reservation</a> /
|
2020-06-25 11:30:58 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-07-01 09:38:09 +00:00
|
|
|
<h1>Opret Reservation:</h1>
|
2020-06-25 11:30:58 +00:00
|
|
|
<form method="post" action="{{ route("washing-reservations.store") }}">
|
|
|
|
@csrf
|
2020-07-01 09:38:09 +00:00
|
|
|
<label for="time">Tidspunkt:</label>
|
|
|
|
<input type="datetime-local" name="time" id="time" required>
|
2020-07-29 09:53:37 +00:00
|
|
|
<label for="machine_id">Vaskemaskine:</label>
|
|
|
|
<select name="machine_id" id="machine_id" required>
|
2020-07-01 09:38:09 +00:00
|
|
|
<option disabled selected value> -- Vælg Vaskemaskine -- </option>
|
|
|
|
@foreach($machines as $machine)
|
|
|
|
<option value="{{ $machine->id }}">{{ $machine->name }}</option>
|
|
|
|
@endforeach
|
2020-06-25 11:30:58 +00:00
|
|
|
</select>
|
2020-07-29 09:53:37 +00:00
|
|
|
<label for="user_id">Bruger:</label>
|
|
|
|
<select name="user_id" id="user_id" required>
|
|
|
|
<option disabled selected value> -- Vælg Bruger -- </option>
|
|
|
|
@foreach($users as $user)
|
|
|
|
<option value="{{ $user->id }}">{{ ucfirst($user->name_first) }} {{ ucfirst($user->name_last) }}</option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
2020-06-25 11:30:58 +00:00
|
|
|
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
|
|
|
</form>
|
|
|
|
@endsection
|