File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -138,14 +138,14 @@ class="badge bg-muted text-muted-fg">{{ $clanMember->clan->name }}</span>
138
138
style =" min-width : {{ collect($seats[$plan->id] ?? [])- >max ('x ') * 2 + 4 }}em ;" >
139
139
<div class =" card-body p-0" >
140
140
<div class =" seating-plan" style ="
141
- @if ($plan- >image _ url )
142
- background-image :url (' {{ $plan->image_url }}' );
143
- min-height : {{ $plan->image_height}}px ;
144
- min-width : {{ $plan->image_width}}px " ;
145
- @else
146
- min-height: {{ (collect ($seats [$plan -> id ] ?? [] )-> max (' y' ) * 2 ) + 4 } }em; "
147
- @endif
148
- >
141
+ @if ($plan- >image _ height && $ plan- > image _ width )
142
+ background-image :url (' {{ $plan->image_url }}' );
143
+ min-height : {{ $plan->image_height}}px ;
144
+ min-width : {{ $plan->image_width}}px ;
145
+ @else
146
+ min-height : {{ (collect($seats[$plan->id])- >max ('y ') * 2) + 4 }}em ;
147
+ @endif
148
+ " >
149
149
@foreach ($seats [$plan -> id ] as $seat )
150
150
@php
151
151
$link = null ;
Original file line number Diff line number Diff line change @@ -121,14 +121,14 @@ class="btn btn-primary">
121
121
<div class =" card" >
122
122
<div class =" card-body p-0" >
123
123
<div class =" seating-plan" style ="
124
- @if ($plan- >image _ url )
124
+ @if ($plan- >image _ height && $ plan- > image _ width )
125
125
background-image :url (' {{ $plan->image_url }}' );
126
126
min-height : {{ $plan->image_height}}px ;
127
- min-width : {{ $plan->image_width}}px " ;
127
+ min-width : {{ $plan->image_width}}px ;
128
128
@else
129
- min-height: {{ (collect ($seats [ $plan -> id ] ?? [] )-> max (' y' ) * 2 ) + 4 } }em; "
129
+ min-height : {{ (collect($seats)- >max ('y ') * 2) + 4 }}em ;
130
130
@endif
131
- >
131
+ " >
132
132
@foreach ($seats as $seat )
133
133
@php
134
134
$class = ' available' ;
Original file line number Diff line number Diff line change 1
1
<div class =" card-body p-0" >
2
2
<div class =" seating-plan" style ="
3
- @if ($plan- >image _ url )
3
+ @if ($plan- >image _ height && $ plan- > image _ width )
4
4
background-image :url (' {{ $plan->image_url }}' );
5
5
min-height : {{ $plan->image_height}}px ;
6
- min-width : {{ $plan->image_width}}px " ;
6
+ min-width : {{ $plan->image_width}}px ;
7
7
@else
8
- min-height: {{ (collect ($seats [$plan -> id ] ?? [])-> max (' y' ) * 2 ) + 4 } }em; "
8
+ min-height : {{ (collect($seats[$plan->id] ?? [])- >max ('y ') * 2) + 4 }}em ;
9
9
@endif
10
- >
10
+ " >
11
11
@foreach ($seats [$plan -> id ] ?? [] as $seat )
12
12
@php
13
13
$url = null ;
You can’t perform that action at this time.
0 commit comments