@extends('layouts.frontend.master') @section('title', $event->name . ' - Event Details') @push('css') @endpush @section('content')
@csrf

Event Details

{{-- Event Name (full width) --}}
Event Name

{{ $event->name ?? '' }}

{{-- Venue (left side) --}}

Venue

{{ $event->venue ?? '' }}

{{-- Category (right side) --}} @if($event->category)

Category

{{ $event->category ?? '' }}

@endif {{-- Date & Time (left side) --}}

Date & Time

@php $futureDates = $event->dates->filter(function($e) { return isset($e->end_date_time) && \Carbon\Carbon::parse($e->end_date_time)->isFuture(); }); if($futureDates->count() > 0){ $firstStart = \Carbon\Carbon::parse($futureDates->first()->start_date_time); $lastEnd = \Carbon\Carbon::parse($futureDates->last()->end_date_time); } @endphp @if(isset($firstStart) && isset($lastEnd))

@if($firstStart->isSameDay($lastEnd)) {{ $firstStart->format('M j, Y') }} ({{ $firstStart->format('g:i A') }} - {{ $lastEnd->format('g:i A') }}) @else {{ $firstStart->format('M j, Y g:i A') }} - {{ $lastEnd->format('M j, Y g:i A') }} @endif

@endif
{{--last_payment_date (right side)--}} @if($event->last_payment_date)

Last Payment Date

{{ $event->last_payment_date? \Carbon\Carbon::parse($event->last_payment_date)->format('M j, Y g:i A') : 'Not specified' }}

@endif {{-- Highlights (right side) --}} @if(!empty($event->highlights))

Highlights

    @foreach($event->highlights as $highlight)
  • {{ $highlight ?? '' }}
  • @endforeach
@endif
{{-- Expected Attendees (full width) --}} @if(!empty($event->expected_attendees))

Expected Attendees

{{ $event->expected_attendees ?: 'Not specified' }}

@endif {{-- Description (full width) --}} @if(!empty($event->description))

Description

{!! $event->description ?: 'Not specified' !!}

@endif
@if($event->last_payment_date && $event->last_payment_date > now())

Event Registration Options

{{-- Alumni --}} @auth

Alumni Registration

For BAU 2001-2002 Alumni already registered

{{-- Alumni Section (only show Sign in if not logged in) --}}
@else @endauth {{-- Guest --}} @if ($event->is_guest_allowed)

Guest Registration

For guests invited by organizer and have the Guest ID

@endif
{{-- Guest Info --}} @if ($event->is_guest_allowed) @endif

Registration Form

Day-Based Participation

Select your preferred participation duration:

@php $full_reservation_offers = []; $total_fee_member = 0; $total_fee_guest = 0; foreach ($event->dates as $day) { if (!empty($day->day_offer)) { $full_reservation_offers = array_merge($full_reservation_offers, array_map('trim', explode(',', $day->day_offer) ) ); } $total_fee_member += (int)$day->fee; $total_fee_guest += (int)$day->other_guest_fee; } $full_reservation_offers = array_unique($full_reservation_offers); @endphp {{----}} @foreach ($event->dates as $item) @endforeach

Attendee Categories

{{--

Primary attendee

--}}

@if($event->is_accommodation_available)

Special Requirements

@endif @endif
@if($event->last_payment_date && $event->last_payment_date > now())

Payment Summary

Select Day Participation and number of attendees to see your payment summary.

Subtotal: ৳0.00
{{--
--}} {{-- Payment Gateway Processing Fee:--}} {{-- ৳0.00--}} {{--
--}}
Software Maintenance Fee: 5%
Total: ৳0.00
(Subtotal + Maintenance Fee)
@auth
@else {{-- --}} {{-- Please login--}} {{-- --}} @endauth
@else

Payment Summary

Payment date expired

@endif
@endsection @push('js') @endpush