@php $languageCode = $language->code; App::setLocale($languageCode); @endphp 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%'; $DejaVu_Sans = 'DejaVu Sans, serif'; @endphp @php $position = $bookingInfo->currencyTextPosition; $currency = $bookingInfo->currencyText; $bg_color = '#' . $websiteInfo->primary_color; @endphp @if ($bookingInfo->variation != null) @php $variations = json_decode($bookingInfo->variation, true); @endphp @foreach ($variations as $variation) @if (!empty($event->ticket_logo))

image

@endif @if ($language->direction == 1) @else @endif @if ($language->direction == 1) @else @endif

image

{{-- @if (!empty($event->ticket_image)) image @endif --}}

{{ @$eventInfo->title }}


{{ $bookingInfo->city }}, {{ is_null($bookingInfo->state) ? '' : $bookingInfo->state . ',' }} {{ $bookingInfo->country }}

{{ FullDateTimeInvoice($bookingInfo->event_date) }}


@php $ticket_content = App\Models\Event\TicketContent::where([ ['ticket_id', $variation['ticket_id']], ['language_id', $language->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

@if ($ticket_content && $ticket->pricing_type == 'variation')
@endif

@if ($ticket_content && $ticket->pricing_type == 'variation') {{ @$ticket_content->title }} - @endif {{ $variation['name'] }}


{{ __('Billing Address') }}

{{ $bookingInfo->address }}


{{ __('BOOKING DATE') }}

{{ date_format($bookingInfo->created_at, 'M d, Y') }}

{{ __('DURATION') }}

{{ @$bookingInfo->evnt->duration }}

{{ __('BOOKING ID') }}

{{ '#' . $bookingInfo->booking_id }}


{{-- Slot system --}} @if (array_key_exists('slot_name', $variation) && array_key_exists('seat_name', $variation))

{{ __('SLOT NAME') }}

{{ $variation['slot_name'] }}

{{ __('SEAT NAME') }}

{{ $variation['seat_name'] }}

@endif

{{ __('TAX') }}

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

{{ __('EARLY BIRD') }}

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

{{ __('COUPON') }}

{{ $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

@if (!empty($event->ticket_image)) image @endif

image

{{-- Information --}} @if (!empty($event->instructions))
{!! $event->instructions !!}
@endif
@if (!$loop->last)
@endif @endforeach @else @for ($i = 1; $i <= $bookingInfo->quantity; $i++) @if (!empty($event->ticket_logo))

image

@endif @if ($language->direction == 1) @else @endif @if ($language->direction == 1) @else @endif

image

@if (!empty($event->ticket_image)) image @endif

{{ @$eventInfo->title }}


{{ $bookingInfo->city }}, {{ is_null($bookingInfo->state) ? '' : $bookingInfo->state . ',' }} {{ $bookingInfo->country }}

{{ FullDateTimeInvoice($bookingInfo->event_date) }}



{{ __('BILLING ADDRESS') }}

{{ $bookingInfo->address }}


{{ __('BOOKING DATE') }}

{{ date_format($bookingInfo->created_at, 'M d, Y') }}

{{ __('DURATION') }}

{{ @$bookingInfo->evnt->duration }}

{{ __('BOOKING ID') }}

{{ '#' . $bookingInfo->booking_id }}


{{ __('TAX') }}

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

{{ __('EARLY BIRD') }}

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

{{ __('COUPON') }}

{{ $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

@if (!empty($event->ticket_image)) image @endif

image

{{-- Information --}} @if (!empty($event->instructions))
{!! $event->instructions !!}
@endif
@if ($i < $bookingInfo->quantity)
@endif @endfor @endif