v0.10.1 - Added location on washing_reservations and created a WashingMachineSeeder.php
This commit is contained in:
@@ -47,7 +47,6 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
{{-- Brugere --}}
|
||||
<div class="card">
|
||||
<div class="head" style="background-color: orange;">
|
||||
<div>
|
||||
@@ -68,7 +67,6 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{-- Aktiviteter --}}
|
||||
<div class="card">
|
||||
<div class="head" style="background-color: red;">
|
||||
<div>
|
||||
@@ -107,7 +105,7 @@
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<p style="padding: 0 4px">Der er ingen aktiviteter</p>
|
||||
<p style="padding: 0 4px; text-align: center">Der er ingen aktiviteter</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
@@ -10,26 +10,9 @@
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<div class="row align-items-center">
|
||||
<!--<a class="btn btn-inline btn-sde-blue mb-0" href="{{ route('washing-reservations.create') }}"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Reservation</a>!-->
|
||||
|
||||
<form method="post" action="{{ route("washing-reservations.store") }}">
|
||||
@csrf
|
||||
<input type="text" class="form-controller" id="search" name="search" placeholder="//TODO: Søg på vaskemaskine, tid, bruger"></input>
|
||||
</form>
|
||||
|
||||
|
||||
<input class="checkbox-inline" type="checkbox" name="checkbox" id="vaskemaskine" value="vaskemaskine">
|
||||
<label for="navn">Vaskemaskine</label>
|
||||
<input class="checkbox-inline" type="checkbox" name="checkbox" id="tidspunkt" value="tidspunkt">
|
||||
<label for="efternavn">Tidspunkt</label>
|
||||
<input class="checkbox-inline" type="checkbox" name="checkbox" id="bruger" value="bruger">
|
||||
<label for="email">Bruger</label>
|
||||
|
||||
|
||||
</div>
|
||||
<table class="tbl mt-2">
|
||||
<table class="tbl mt-0">
|
||||
<tr>
|
||||
<th>Lokation</th>
|
||||
<th>Vaskemaskine</th>
|
||||
<th>Tidspunkt</th>
|
||||
<th>Bruger</th>
|
||||
@@ -37,6 +20,7 @@
|
||||
</tr>
|
||||
@foreach($reservations as $reservation)
|
||||
<tr>
|
||||
<td>{{ \App\Location::query()->find(\App\WashingMachine::query()->find($reservation->machine_id)->location_id)->name }}</td>
|
||||
<td>{{ \App\WashingMachine::query()->find($reservation->machine_id)->name }}</td>
|
||||
<td>{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($reservation->time))->format('d/m/Y \k\l\. H:i') }}</td>
|
||||
<td>{{ ucfirst(\App\User::query()->find($reservation->user_id)->name_first) }} {{ ucfirst(\App\User::query()->find($reservation->user_id)->name_last) }}</td>
|
||||
|
||||
Reference in New Issue
Block a user