@php
if ($event->date_type == 'multiple') {
$event_date = eventLatestDates($event->id);
$date = strtotime(@$event_date->start_date);
} else {
$date = strtotime(@$event->start_date);
}
@endphp
-
{{ date('d M', $date) }}
-
{{ $event->date_type == 'multiple' ? @$event_date->duration : $event->duration }}
-
@php
$start_time = strtotime($event->start_time);
@endphp
{{ date('h:s A', $start_time) }}
@if ($event->organizer_id != null)
@php
$organizer = App\Models\Organizer::where('id', $event->organizer_id)->first();
@endphp
@if ($organizer)
{{ __('By') }} {{ $organizer->username }}
@endif
@else
@php
$admin = App\Models\Admin::first();
@endphp
{{ $admin->username }}
@endif
@php
$desc = strip_tags(@$event->information->description);
@endphp
@if (strlen($desc) > 100)
{{ mb_substr($desc, 0, 100) . '....' }}
@else
{{ $desc }}
@endif
@php
$ticket = DB::table('tickets')
->where('event_id', $event->id)
->first();
@endphp
@if ($event->event_type == 'venue')
@if ($event->information->city != null)
{{ $event->information->city }}
@endif
@if ($event->information->country)
, {{ $event->information->country }}
@endif
@else
{{ __('Online') }}
@endif
@if ($ticket)
@if ($ticket->event_type == 'online')
@if ($ticket->price != null)
@if ($ticket->early_bird_discount == 'enable' && $ticket->early_bird_discount_type == 'fixed')
@php
$calculate_price = $ticket->price - $ticket->early_bird_discount_amount;
@endphp
{{ symbolPrice($calculate_price) }}
{{ symbolPrice($ticket->price) }}
@elseif ($ticket->early_bird_discount == 'enable' && $ticket->early_bird_discount_type == 'percentage')
@php
$p_price = ($ticket->price * $ticket->early_bird_discount_amount) / 100;
$calculate_price = $ticket->price - $p_price;
@endphp
{{ symbolPrice($calculate_price) }}
{{ symbolPrice($ticket->price) }}
@else
@php
$calculate_price = $ticket->price;
@endphp
{{ symbolPrice($calculate_price) }}
@endif
@else
{{ __('Free') }}
@endif
@endif
@if ($ticket->event_type == 'venue')
@if ($ticket->pricing_type == 'variation')
@php
$variation = json_decode($ticket->variations, true);
$price = $variation[0]['price'];
@endphp
@if ($ticket->early_bird_discount == 'enable' && $ticket->early_bird_discount_type == 'fixed')
@php
$calculate_price = $price - $ticket->early_bird_discount_amount;
@endphp
{{ symbolPrice($calculate_price) }}
{{ symbolPrice($price) }}
@elseif ($ticket->early_bird_discount == 'enable' && $ticket->early_bird_discount_type == 'percentage')
{{ symbolPrice($price) }}
@php
$p_price = ($ticket->price * $ticket->early_bird_discount_amount) / 100;
$calculate_price = $price - $p_price;
@endphp
{{ symbolPrice($calculate_price) }}
@else
@php
$calculate_price = $price;
@endphp
{{ symbolPrice($calculate_price) }}
@endif
*
@elseif($ticket->pricing_type == 'normal')
@if ($ticket->early_bird_discount == 'enable' && $ticket->early_bird_discount_type == 'fixed')
@php
$calculate_price = $ticket->price - $ticket->early_bird_discount_amount;
@endphp
{{ symbolPrice($calculate_price) }}
{{ symbolPrice($ticket->price) }}
@elseif ($ticket->early_bird_discount == 'enable' && $ticket->early_bird_discount_type == 'percentage')
@php
$p_price = ($ticket->price * $ticket->early_bird_discount_amount) / 100;
$calculate_price = $ticket->price - $p_price;
@endphp
{{ symbolPrice($calculate_price) }}
{{ symbolPrice($ticket->price) }}
@else
@php
$calculate_price = $ticket->price;
@endphp
{{ symbolPrice($calculate_price) }}
@endif
@else
{{ __('Free') }}
@endif
@endif
@endif
@if (Auth::guard('customer')->check())
@php
$customer_id = Auth::guard('customer')->user()->id;
$event_id = $event->id;
$checkWishList = checkWishList($event_id, $customer_id);
@endphp
@else
@php
$checkWishList = false;
@endphp
@endif