@php use App\Enums\EventSettingTypesEnum; use Illuminate\Support\Carbon; $eventGeneralSettings = isset($eventSettings) && isset($eventSettings[EventSettingTypesEnum::GENERAL->value]) ? $eventSettings[EventSettingTypesEnum::GENERAL->value] : null; $isTimerFixed = ! empty($eventGeneralSettings['tickets_timer_position']['value']) && $eventGeneralSettings['tickets_timer_position']['value'] == 'fixed'; $countDownDate = $isTimerShow && $eventTicketsTimer ? Carbon::parse($eventTicketsTimer)->format('Y-m-d H:i:s') : null; // $countDownDate = $start // ? $start->format('M d, Y') // : ($end ? $end->format('M d, Y') : null); @endphp @if (isset($tickets) && count($tickets))
{{--

{{ __('app.Tickets') }}

--}} @if ($isTimerShow && $eventTicketsTimer)

{{ __('app.Tickets') }}

{{ __('labels.Prices increase') }}:
@endif
@foreach ($tickets as $key => $ticket)
@include('website.components.responsive-ticket-card', ['ticket' => $ticket])
@endforeach
@endif @pushIf($isTimerShow && $countDownDate, 'scripts') @endPushIf