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">
<ul>
<!-- Intentional Asignment ! -->
@if( $room_display_name="-" ) @endif
@foreach($rooms as $room)
@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 ! -->
@if ($room_display_name=$room->room_name) @endif
@endif
<li> {{ $room->user_name}}
@if(Auth::user()->role=="ADMIN")
<a href="/tour/{{$tour->id}}/cancelBookingAdmin/{{$room->user_id}}" class="text-primary">(X)</a>
@endif
</li>
@if(strlen($room->user_name))
<li> {{ $room->user_name}}
@if(Auth::user()->role=="ADMIN")
<a href="/tour/{{$tour->id}}/cancelBookingAdmin/{{$room->user_id}}" class="text-primary">(X)</a>
@endif
</li>
@endif
@endforeach
</ul>