{{ config('custom.invoice_header') }}


{!! getCompanyDetail('address') !!}

Email: {!! getCompanyDetail('email') !!}

Phone: {!! getCompanyDetail('phone') !!}

ABN: {!! getCompanyDetail('abn') !!}

{{--
--}}

{{$order->institution->name}}

{{$order->institution->address}}

Email: {{$order->institution->email}}

Phone: {{$order->institution->contact_number}}


Your Order Details: @if($order->order_status == \App\Constant\Constant::ORDER_COMPLETE) PAID @else UNPAID @endif

Tax Invoice Number:{{$order->invoice_number}}
Order Date:{{$order->order_date_formatted}}
Student Id:{{$order->graduate->student_id}}
Institute Name:{{$order->institution->name}}
Course Name:{{$order->graduate->course->course_name}}
Venue:{{$order->ceremony->venue}}
Ceremony Date:{{$order->ceremony->date_formatted}}
Ceremony Time:{{$order->ceremony->time}}
Address:{{$order->ceremony->address}}
{{$order->invoice_number}}

@if (isTrue($order->ceremony->enable_dietary_preference_option)) @endif @if (isTrue($order->ceremony->enable_underage_guests_option)) @endif @if (isTrue($order->ceremony->enable_mobility_accessibility_option)) @endif
Name:{{$order->graduate->full_name}}
Email:{{$order->graduate->email}}
Mobile:{{$order->graduate->mobile}}
Mailing Address:
{{$order->address}}
Dietary Preference:{{$order->graduate->dietary_preference}}
Underage Guests:
{{$order->graduate->underage_guests}}
Mobility Accessibility:{{$order->graduate->mobility_accessibility}}
@if (!is_null($order->graduate->seat_number))
Seat Number:{{$order->graduate->seat_number}}
@endif


@if (isGraduate($order->graduate->user_type)) @if($order->graduation->package->allowed_guest_number > 0 && isGraduate($order->graduate->user_type)) @endif @endif @if (isYesNoTextStatus($order->graduate->can_pre_order)) @foreach ($order->orderOtherProducts as $other) @endforeach @endif @if (isGraduate($order->graduate->user_type)) @if (isYesNoTextStatus($order->graduate->can_pre_order)) @endif @endif @if (isGraduate($order->graduate->user_type)) @if ($order->merchant_fee > 0) @endif @endif @if (isGraduate($order->graduate->user_type)) @endif
Item @if (isGraduate($order->graduate->user_type)) Price @endif
@foreach ($order->orderProducts as $op) @endforeach @foreach ($order->orderStaticProducts as $so) @endforeach
{{$op->packageProduct->product_name}}
(SIZE: {{ $op->product_size}})
{{$so->commonProduct->name}}
({{ $so->commonProduct->description}})
@if (isGraduate($order->graduate->user_type)) AUD {{amountForPDF($order, 'package_amount_formatted')}} @endif
{{$order->guest_number}} Guest(s) Tickets AUD {{amountForPDF($order, 'guest_price_amount_formatted')}}

{{ $other->otherProduct->product_name }} @if (!is_null($other->other_product_option_id))

- {{ $other->otherProductOption->name }}
@endif

QTY: {{ $other->quantity }}

AUD ${{ $other->product_total_price_formatted }}
Important: {{ $other->otherProduct->product_name }} Instructions
{!! $other->otherProduct->instruction !!}
Postage Fee AUD ${{ numberFormat($order->postage_fee) }}
Merchant Fee AUD ${{ $order->merchant_fee_amount_formatted }} ({{ $order->merchant_fee }}%)
Total {{amountForPDF($order, 'total_amount_formatted')}}
(Including GST)
{{ $order->payment_method }}
@if(isGraduate($order->graduate->user_type))


@if ($order->guestListsWithPaid()->count() > 0) {{-- {{ $order->ceremony->graduation->package->guest_ticket_note }}


--}} @foreach ($order->guestListsWithPaid as $guest) @php $guest_qrcode = generateQRCodeById($guest->id); @endphp
{!! $guest->first_name !!}
{!! strtoupper($guest->last_name) !!}

{{$guest->id}}
{{--
--}}
Guest Ticket
{{--
Ticket Price:  {{$order->free_guest_number >= $i ? '$0.00' : ticketAmountForPDF($order,'per_guest_price_amount')}} (Inc GST)
--}}
Ceremony Date:  {{$order->ceremony->date_formatted}}
Ceremony Time:  {{$order->ceremony->time}}
Venue:  {{$order->ceremony->venue}}
Address:  {{$order->ceremony->address}}
@if (isTrue($order->ceremony->enable_ticket_seat_options))
LOCATION
{{ $guest->seat_number ?? 'N/A' }}
@else
ROW/SEAT
N/A

NO ALLOCATED SEATING
@endif



@endforeach @else {{ $order->ceremony->graduation->package->guest_ticket_note }}


@for ($i = 1; $i<=$order->guest_number;$i++) @php $guest_qrcode = generateQRCodeById($order->invoice_number); @endphp
{!! $order->graduate->first_name !!}
{!! strtoupper($order->graduate->last_name) !!}

{{$order->invoice_number}}
{{--
--}}
Guest Ticket
{{--
Ticket Price:  {{$order->free_guest_number >= $i ? '$0.00' : ticketAmountForPDF($order,'per_guest_price_amount')}} (Inc GST)
--}}
Ceremony Date:  {{$order->ceremony->date_formatted}}
Ceremony Time:  {{$order->ceremony->time}}
Venue:  {{$order->ceremony->venue}}
Address:  {{$order->ceremony->address}}
ROW/SEAT
N/A

NO ALLOCATED SEATING




@endfor @endif @endif @if (isGraduate($order->graduate->user_type))
Academic Regalia Information
{!! $order->graduation->package->invoice_regalia_collection_text ?? null !!}


{!! $order->graduation->package->invoice_text ?? null !!}
@endif
{{ config('custom.invoice_header') }}