File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
resources/views/admin/events Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,12 @@ class="badge bg-muted text-muted-fg">{{ $clanMember->clan->name }}</span>
125
125
style =" min-width : {{ collect($seats[$plan->id] ?? [])- >max ('x ') * 2 + 4 }}em ;" >
126
126
<div class =" card-body p-0" >
127
127
<div class =" seating-plan" style ="
128
- @if ($plan- >image _url )
129
- background-image :url (' {{ $plan->image_url }}' );
130
- @endif
131
- min-height : {{ (collect($seats[$plan->id])- >max ('y ') * 2) + 4 }}em ; "
128
+ @if ($plan- >image _url )
129
+ background-image :url (' {{ $plan->image_url }}' );
130
+ min-height : {{ getimagesize($plan->image_url)[1] }}px "
131
+ @else
132
+ min-height: {{ (collect ($seats [$plan -> id ] ?? [])-> max (' y' ) * 2 ) + 4 } }em; "
133
+ @endif
132
134
>
133
135
@foreach ($seats [$plan -> id ] as $seat )
134
136
@php
@@ -168,7 +170,7 @@ class="badge bg-muted text-muted-fg">{{ $clanMember->clan->name }}</span>
168
170
@if ($link )
169
171
href=" {{ $link } }"
170
172
@endif
171
- style =" left : {{ $seat->x * 2 }}em ; top : {{ $seat->y * 2 }}em ;"
173
+ style=" left: {{ $seat -> x * 0.02 * $plan -> scale } }em; top: {{ $seat -> y * 0.02 * $plan -> scale } } em; width: {{ 0.019 * $plan -> scale } } em; height: {{ 0.019 * $plan -> scale } }em; "
172
174
data-bs-trigger=" hover " data-bs-toggle=" popover "
173
175
data-bs-placement=" right " data-bs-html=" true "
174
176
title=" {{ $seat -> description } } {{ $seat -> label } }"
You can’t perform that action at this time.
0 commit comments