File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,10 @@ class="btn btn-primary">
123
123
<div class =" seating-plan" style ="
124
124
@if ($plan- >image _url )
125
125
background-image :url (' {{ $plan->image_url }}' );
126
- background-size : contain ;
127
- background-repeat : no-repeat ;
126
+ min-height : {{ getimagesize($plan->image_url)[1] }}px "
127
+ @else
128
+ min-height: {{ (collect ($seats [$plan -> id ] ?? [])-> max (' y' ) * 2 ) + 4 } }em; "
128
129
@endif
129
- min-height : {{ ($seats->max (' y' ) * 2 ) + 4 }}em ; "
130
130
>
131
131
@foreach ($seats as $seat )
132
132
@php
Original file line number Diff line number Diff line change 2
2
<div class =" seating-plan" style ="
3
3
@if ($plan- >image _url )
4
4
background-image :url (' {{ $plan->image_url }}' );
5
- background-size : contain ;
6
- background-repeat : no-repeat ;
5
+ min-height : {{ getimagesize($plan->image_url)[1] }}px "
6
+ @else
7
+ min-height: {{ (collect ($seats [$plan -> id ] ?? [])-> max (' y' ) * 2 ) + 4 } }em; "
7
8
@endif
8
- min-height : {{ (collect($seats[$plan->id] ?? [])- >max ('y ') * 2) + 4 }}em ; "
9
9
>
10
10
@foreach ($seats [$plan -> id ] ?? [] as $seat )
11
11
@php
You can’t perform that action at this time.
0 commit comments