@foreach ($booking->booking_draft_items as $booking_draft_item)
@if ($booking_draft_item->in_pdf)
@if (in_array($booking_draft_item->draft_type_id, ['26', '30', '31', '32', '33', '34', '35', '36', '37', '41', '42']))
| {{ _format_date($booking_draft_item->start_date) }} |
{{ _format_date($booking_draft_item->end_date) }} |
{!! _format_text($booking_draft_item->service) !!} |
@if (in_array($booking_draft_item->draft_type_id, ['30', '36', '37']))
@if ($booking_draft_item->adult > 0)
{!! $booking_draft_item->adult == 1 ? $booking_draft_item->adult . ' Erwachsener' : $booking_draft_item->adult . ' Erwachsene' !!}
@endif
@if ($booking_draft_item->children > 0)
{!! $booking_draft_item->children == 1 ? $booking_draft_item->children . ' Kind' : $booking_draft_item->children . ' Kinder' !!}
@endif
@else
@if ($booking_draft_item->adult > 0)
{!! $booking_draft_item->adult == 1 ? $booking_draft_item->adult . ' Person' : $booking_draft_item->adult . ' Personen' !!}
@endif
@endif
@if ($booking_draft_item->adult > 0 || $booking_draft_item->children > 0)
@if ($booking_draft_item->draft_type_id == 36 || $booking_draft_item->draft_type_id == 37)
Gesamt {{ $booking_draft_item->days_duration }}
{{ $booking_draft_item->days_duration == 1 ? 'Tag' : 'Tage' }}
@else
Gesamt:
@endif
@endif
|
@if ($booking_draft_item->adult > 0)
{{ $booking_draft_item->price_adult }} €
@endif
@if ($booking_draft_item->children > 0)
{{ $booking_draft_item->price_children }} €
@endif
@if ($booking_draft_item->adult > 0 || $booking_draft_item->children > 0)
{{ _number_format($booking_draft_item->getItemPrice('total')) }} €
@endif
|
@elseif($booking_draft_item->draft_type_id == 27)
| {{ _format_date($booking_draft_item->start_date) }} |
{{ _format_date($booking_draft_item->end_date) }} |
{!! _format_text($booking_draft_item->service) !!} |
{{ $booking->pax }} |
|
@else
| {{ _format_date($booking_draft_item->start_date) }} |
{{ _format_date($booking_draft_item->end_date) }} |
{!! _format_text($booking_draft_item->service) !!} |
{{ $booking->pax }} |
|
@endif
@endif
@endforeach