@php $isShowTicket = isset($ticket) && ! empty($ticket) && is_array($ticket); $isShowDirectByLink = isset($showDirectByLink) ? $showDirectByLink : ($isShowTicket && empty($ticket['benefits'])); // Generate a unique ID for the Book Now button (modal vs normal card) $bookNowButtonId = $isShowTicket ? 'book-now-btn-' . $ticket['id'] . ($isShowDirectByLink ? '-modal' : '') : null; @endphp @if ($isShowTicket)
{{ $ticket['name_with_details']['ticket_name'] }} @if ($ticket['name_with_details']['location']) {{ $ticket['name_with_details']['location'] }} @endif
@if (! empty($ticket['new_price']) && $ticket['new_price']['amount'] > 0) @if ($ticket['new_price']['amount'] != $ticket['current_price']['amount'])
{{ __('app.tickets.Full Price') }}
{{ $ticket['new_price']['currency_symbol'] }} {{ number_format($ticket['new_price']['amount']) }}
{{ $ticket['new_price']['all_prices']['usd_amount']['currency_symbol'] }} {{ number_format($ticket['new_price']['all_prices']['usd_amount']['amount']) }}
@endif
{{ __('app.tickets.Sale Price') }}
{{ $ticket['current_price']['currency_symbol'] }} {{ number_format($ticket['current_price']['amount']) }}
{{ $ticket['current_price']['all_prices']['usd_amount']['currency_symbol'] }} {{ number_format($ticket['current_price']['all_prices']['usd_amount']['amount']) }}
@else
FREE
@endif
@if ($isShowDirectByLink)
@if ($ticket['status'] == 'active') {{ __('app.tickets.Book Now') }} @else
@endif
@else
@if ($ticket['status'] == 'active') {{ __('app.tickets.Book Now') }} @else
@endif
{{ __('app.tickets.whats included') }}
@endif
@endif