@php
$id_pass = [];
if (auth()->check() && ($passActive = auth()->user()->subscriptions)) {
foreach ($passActive as $pass) {
$id_pass[$pass->id_subscription] = $pass->days;
}
}
@endphp
@foreach ($showPasses as $el)
@if ($boat && $boat->length <= $el->boat_length)
id])) data-max-length="{{ $amp->data->price_type == '3days_boats' ? $el->boat_length : 'false' }}"
data-max-day="{{ $id_pass[$el->id] }}" @endif>
{!! file_get_contents(public_path('storage/svg/icon_navbarAMP6.svg')) !!}
PASS {{ $el->nights }} {{ translate('day(s)') }}
{{ translate('Max.Length') }}
{{ $el->boat_length }}m
@if (empty($id_pass[$el->id]))
@if ($amp->price_type == 'local')
{{ $el->price_local }}
@else
{{ $el->price }}
@endif
€
@else
{{ 'J - ' . $id_pass[$el->id] }}
@endif
@elseif(empty($boat))
{!! file_get_contents(public_path('storage/svg/icon_navbarAMP6.svg')) !!}
PASS {{ $el->nights }} {{ translate('day(s)') }}
{{ translate('Max.Length') }}
{{ $el->boat_length }}m
@if ($amp->price_type == 'local')
{{ $el->price_local }}
@else
{{ $el->price }}
@endif
€
@endif
@endforeach
{{ translate('If a pass is active on your account, the concerned thumbnail above will appear in green. Then you can book a mooring freely in the concerned period.') }}