@extends('frontend.layout') @section('pageHeading') {{ $admin == true ? $organizer->username : $organizer->username }} @endsection @section('meta-keywords', "{{ $organizer->username }}") @section('meta-description', "$organizer->details") @section('hero-section')
@endsection @section('content')

{{ __('All Events') }}

@if (count($events) > 0) @foreach ($events as $event) @if (!empty($event->information))
    @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
@if (strlen($event->information->title) > 45) {{ mb_substr($event->information->title, 0, 50) . '....' }} @else {{ $event->information->title }} @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
@endif @endforeach @else
{{ __('No Event Found') }}
@endif
@foreach ($categories as $category)
@php $language_id = $currentLanguageInfo->id; if (request()->filled('admin') && request()->input('admin') == 'true') { $c_events = adminCategoryWiseEvents($category->id, $language_id, $organizer->id); } else { $c_events = categoryWiseEvents($category->id, $language_id, $organizer->id); } @endphp @if (count($c_events) > 0) @foreach ($c_events as $event) @if (!empty($event->information))
  • @php $date = strtotime($event->start_date); @endphp {{ date('d M', $date) }}
  • 21h
  • @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
@if (strlen($event->information->title) > 45) {{ mb_substr($event->information->title, 0, 50) . '....' }} @else {{ $event->information->title }} @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') @php $p_price = ($ticket->price * $ticket->early_bird_discount_amount) / 100; @endphp @php $calculate_price = $price - $p_price; @endphp {{ symbolPrice($calculate_price) }} {{ symbolPrice($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
@endif @endforeach @else
{{ __('No Event Found') }}
@endif
@endforeach
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@endsection