Copy-over tour layout (members per room) from show form to edit form

This commit is contained in:
Torsten 2022-06-13 10:07:17 +02:00
parent 201cbde2d3
commit ddbd95573f

View file

@ -90,19 +90,26 @@
<div class="card-body"> <div class="card-body">
<ul> <ul>
<!-- Intentional Asignment ! -->
@if( $room_display_name="-" ) @endif @if( $room_display_name="-" ) @endif
@foreach($rooms as $room) @foreach($rooms as $room)
@if ($room_display_name != $room->room_name) @if ($room_display_name != $room->room_name)
<p>{{$room->room_name}}</p> @if(strlen($room_display_name))
<hr/>
@endif
<ul><b>{{$room->room_name}}</b></ul>
<!-- Intentional Asignment ! --> <!-- Intentional Asignment ! -->
@if ($room_display_name=$room->room_name) @endif @if ($room_display_name=$room->room_name) @endif
@endif @endif
<li> {{ $room->user_name}}
@if(Auth::user()->role=="ADMIN") @if(strlen($room->user_name))
<a href="/tour/{{$tour->id}}/cancelBookingAdmin/{{$room->user_id}}" class="text-primary">(X)</a> <li> {{ $room->user_name}}
@endif @if(Auth::user()->role=="ADMIN")
</li> <a href="/tour/{{$tour->id}}/cancelBookingAdmin/{{$room->user_id}}" class="text-primary">(X)</a>
@endif
</li>
@endif
@endforeach @endforeach
</ul> </ul>