@if(!empty($event->category))
@endif
{{ $event->title }}
@php
$eventAllBadges = $event->allBadges();
@endphp
{{-- Badges --}}
@if(count($eventAllBadges))
@foreach($eventAllBadges as $eventBadge)
@if(!empty($eventBadge->icon))
@endif
{{ $eventBadge->title }}
@endforeach
@endif
@if(!empty($event->summary))
{!! nl2br($event->summary) !!}
@endif
@php
$eventRate = $event->getRate();
@endphp
{{-- Rate --}}
@if($eventRate > 0)
@include('design_1.web.components.rate', [
'rate' => $eventRate,
'rateCount' => $event->getRateCount(),
'rateClassName' => ''
])
@endif
{{-- Online --}}
@if($event->type == "online")
{{ trans("update.online") }}
@else
@php
$specificLocationTitle = !empty($event->specificLocation) ? $event->specificLocation->getFullAddress(false, true, true, false, false) : null;
@endphp
@if(!empty($specificLocationTitle))
{{ $specificLocationTitle }}
@else
{{ trans("update.in_person") }}
@endif
@endif
{{-- Date --}}
@if(!empty($event->start_date))
{{ dateTimeFormat($event->start_date, 'j M Y') }}
@endif
@if(!is_null($event->capacity))
@php
$capacityPercent = $event->getCapacityPercent();
@endphp
@if($capacityPercent < 100)
{{ round($capacityPercent,1) }}%
{{ trans('update.capacity_reached') }}
@else
{{ trans('update.capacity_reached') }}!
{{ trans('update.all_seats_were_been_sold') }}
@endif
@endif