direction == 1) dir="rtl" @endif> {{-- required meta tags --}} {{-- title --}} {{ 'Invoice | ' . config('app.name') }} {{-- fav icon --}} {{-- styles --}} @php $_15px = '15px'; $_10px = '10px'; $_12px = '12px'; $b_color = '565656'; $w_47 = '47%'; @endphp
@php $position = $bookingInfo->currencyTextPosition; $currency = $bookingInfo->currencyText; @endphp
{{-- enrolment details start --}}
{{ __('Booking Details') }}

{{ __('Booking ID') . ': ' }} {{ '#' . $bookingInfo->booking_id }}

{{ __('Booking Date') . ': ' }} {{ date_format($bookingInfo->created_at, 'M d, Y') }}

{{ __('Event Name') . ': ' }} {{ @$eventInfo->title }}

{{ __('Event Start Date') . ': ' }} {{ FullDateTimeInvoice($bookingInfo->event_date) }}

@if (@$bookingInfo->evnt->date_type == 'single')

{{ __('Event End Date') . ': ' }} {{ Carbon\Carbon::parse(@$bookingInfo->evnt->end_date . @$bookingInfo->evnt->end_time)->format('d M, Y h:ia') }}

{{ __('Duration') . ': ' }} {{ @$bookingInfo->evnt->duration }}

@else @php $date = Carbon\Carbon::parse($bookingInfo->event_date)->format('Y-m-d'); $time = Carbon\Carbon::parse($bookingInfo->event_date)->format('H:i'); $evnt = @$bookingInfo->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)->format('D, M d, Y H:i a') }} @endif

{{ __('Duration') . ': ' }} @if (!empty($evnt)) {{ $evnt->duration }} @endif

@endif

{{ __('Tax') }} ({{ $bookingInfo->tax_percentage }}%) : {{ $position == 'left' ? $currency . ' ' : '' }}{{ is_null($bookingInfo->tax) ? '0.00' : $bookingInfo->tax }}{{ $position == 'right' ? ' ' . $currency : '' }}

{{ __('Early Bird Discount') . ': ' }} {{ $position == 'left' ? $currency . ' ' : '' }}{{ is_null($bookingInfo->early_bird_discount) ? '0.00' : $bookingInfo->early_bird_discount }}{{ $position == 'right' ? ' ' . $currency : '' }}

{{ __('Coupon Discount') . ': ' }} {{ $position == 'left' ? $currency . ' ' : '' }}{{ is_null($bookingInfo->discount) ? '0.00' : $bookingInfo->discount }}{{ $position == 'right' ? ' ' . $currency : '' }}

{{ __('Total Paid') . ': ' }} {{ $position == 'left' ? $currency . ' ' : '' }}{{ $bookingInfo->price + $bookingInfo->tax }}{{ $position == 'right' ? ' ' . $currency : '' }}

{{ __('Payment Method') . ': ' }} {{ is_null($bookingInfo->paymentMethod) ? '-' : $bookingInfo->paymentMethod }}

{{ __('Payment Status') . ': ' }} @if ($bookingInfo->paymentStatus == 'completed') {{ __('Completed') }} @elseif ($bookingInfo->paymentStatus == 'pending') {{ __('Pending') }} @elseif ($bookingInfo->paymentStatus == 'rejected') {{ __('Rejected') }} @else - @endif

{{ __('Quantity') . ': ' }} @if (!is_null($bookingInfo->quantity)) {{ $bookingInfo->quantity }} @else - @endif

{{-- billing details start --}}
@if ($bookingInfo->variation != null)
@php $variations = json_decode($bookingInfo->variation, true); @endphp @foreach ($variations as $variation) @endforeach
{{ __('Ticket') }} {{ __('Quantity') }}
@php $ticket = App\Models\Event\Ticket::where('id', $variation['ticket_id'])->first(); $ticketContent = App\Models\Event\TicketContent::where([['ticket_id', $variation['ticket_id'], ['language_id', $currentLanguageInfo->id]]])->first(); if (empty($ticketContent)) { $ticketContent = App\Models\Event\TicketContent::where([['ticket_id', $variation['ticket_id']]])->first(); } @endphp @if ($ticketContent && $ticket) {{ $ticketContent->title }} @if ($ticket->pricing_type == 'variation') @php $varition_key = App\Models\Event\VariationContent::where([['ticket_id', $ticket->id], ['name', $variation['name']]]) ->select('key') ->first(); $de_lang = App\Models\Language::where('is_default', 1)->first(); $varition_name = App\Models\Event\VariationContent::where([['ticket_id', $ticket->id], ['language_id', $de_lang->id], ['key', $varition_key->key]])->first(); if ($varition_name) { $name = $varition_name->name; } else { $name = ''; } @endphp ({{ $name }}) @endif @endif {{ $variation['qty'] }}
@endif
{{ __('Billing Details') }}

{{ __('Name') . ': ' }} {{ $bookingInfo->fname . ' ' . $bookingInfo->lname }}

{{ __('Email') . ': ' }} {{ $bookingInfo->email }}

{{ __('Contact Number') . ': ' }} {{ $bookingInfo->phone }}

{{ __('Address') . ': ' }} {{ $bookingInfo->address }}

{{ __('City') . ': ' }} {{ $bookingInfo->city }}

{{ __('State') . ': ' }} {{ is_null($bookingInfo->state) ? '-' : $bookingInfo->state }}

{{ __('Country') . ': ' }} {{ $bookingInfo->country }}

{{-- billing details end --}}