@extends('organizer.layout') @section('content')
@php $position = $booking->currencyTextPosition; $currency = $booking->currencyText; @endphp
{{ __('Booking ID') . ' ' . '#' . $booking->booking_id }}
{{ __('Booking Date') . ' :' }}
{{ FullDateTime($booking->created_at) }}
{{ __('Event Start Date') . ' :' }}
{{ $booking->event_date }}
@if (@$booking->evnt->date_type == 'single')
{{ __('Event End Date') . ' :' }}
{{ Carbon\Carbon::parse(@$booking->evnt->end_date . @$booking->evnt->end_time)->format('D, M d, Y h:i A') }}
{{ __('Duration') . ' :' }}
{{ @$booking->evnt->duration }}
@else @php $date = Carbon\Carbon::parse($booking->event_date)->format('Y-m-d'); $time = Carbon\Carbon::parse($booking->event_date)->format('H:i'); $evnt = @$booking->evnt ->dates() ->where('start_date', $date) ->where('start_time', $time) ->first(); @endphp
{{ __('Event End Date') . ' :' }}
@if (!empty($evnt)) {{ Carbon\Carbon::parse(@$evnt->end_date . @$evnt->end_time)->translatedFormat('D, M d, Y h:i a') }} @endif
{{ __('Duration') . ' :' }}
@if (!empty($evnt)) {{ $evnt->duration }} @endif
@endif
{{ __('Early Bird Discount') }} (-) :
@if (!is_null($booking->early_bird_discount)) {{ $position == 'left' ? $currency . ' ' : '' }}{{ $booking->early_bird_discount }}{{ $position == 'right' ? ' ' . $currency : '' }} @else - @endif
{{ __('Coupon Discount') }} (-) :
@if (!is_null($booking->discount)) {{ $position == 'left' ? $currency . ' ' : '' }}{{ $booking->discount }}{{ $position == 'right' ? ' ' . $currency : '' }} @else - @endif
{{ __('Tax') }} ({{ $booking->tax_percentage }}%+)
@if (!is_null($booking->tax)) {{ $position == 'left' ? $currency . ' ' : '' }}{{ $booking->tax }}{{ $position == 'right' ? ' ' . $currency : '' }} ({{ __('Received by Admin') }}) @else - @endif
{{ __('Customer Paid') . ' :' }}
@if (!is_null($booking->price)) {{ $position == 'left' ? $currency . ' ' : '' }}{{ $booking->price + $booking->tax }}{{ $position == 'right' ? ' ' . $currency : '' }} @else - @endif
{{ __('Commission') }} ({{ $booking->commission_percentage }}%)
@if (!is_null($booking->commission)) {{ $position == 'left' ? $currency . ' ' : '' }}{{ $booking->commission }}{{ $position == 'right' ? ' ' . $currency : '' }} ({{ __('Received by Admin') }}) @else - @endif
{{ __('Received by Organization') }}
@if (!is_null($booking->price - $booking->commission)) {{ $position == 'left' ? $currency . ' ' : '' }}{{ $booking->price - $booking->commission }}{{ $position == 'right' ? ' ' . $currency : '' }} @else - @endif
{{ __('Paid via') . ' :' }}
@if (!is_null($booking->paymentMethod)) {{ $booking->paymentMethod }} @else - @endif
{{ __('Quantity') . ' :' }}
@if (!is_null($booking->quantity)) {{ $booking->quantity }} @else - @endif
{{ __('Payment Status') . ' :' }}
@if ($booking->paymentStatus == 'completed') {{ __('Completed') }} @elseif ($booking->paymentStatus == 'pending') {{ __('Pending') }} @elseif ($booking->paymentStatus == 'rejected') {{ __('Rejected') }} @else - @endif
{{ __('Tickect Scan Status') }}
@if ($booking->scan_status == 1) {{ __('Already Scanned') }} @else {{ __('Not Scanned') }} @endif
{{ __('Billing Details') }}
{{ __('Name') . ' :' }}
{{ $booking->fname . ' ' . $booking->lname }}
{{ __('Email') . ' :' }}
{{ $booking->email }}
{{ __('Phone') . ' :' }}
{{ $booking->phone }}
{{ __('Address') . ' :' }}
{{ $booking->address }}
{{ __('City') . ' :' }}
{{ $booking->city }}
{{ __('State') . ' :' }}
@if (!is_null($booking->state)) {{ $booking->state }} @else - @endif
{{ __('Country') . ' :' }}
{{ $booking->country }}
@if ($booking->variation != null)
{{ __('Tickets Info') }}
@if ($booking->variation != null) @php $variations = json_decode($booking->variation, true); @endphp @foreach ($variations as $variation) @endforeach @endif
{{ __('Ticket') }} {{ __('Quantity') }} {{ __('Price') }}
@php $ticket_content = App\Models\Event\TicketContent::where([['ticket_id', $variation['ticket_id']], ['language_id', $defaultLang->id]])->first(); $ticket = App\Models\Event\Ticket::where('id', $variation['ticket_id']) ->select('pricing_type') ->first(); @endphp @if ($ticket_content && $ticket->pricing_type == 'variation') {{ $ticket_content->title }} - @endif {{ $variation['name'] }} {{ $variation['qty'] }} @php $evd = $variation['early_bird_dicount'] / $variation['qty']; @endphp {{ symbolPrice($variation['price'] - $evd) }} @if ($variation['early_bird_dicount'] != null) {{ symbolPrice($variation['price']) }} @endif
@endif
@endsection