@php $person_types = $booking->getJsonMeta('person_types')
@endphp
@if(!empty($person_types))
@foreach($person_types as $type)
| {{$type['name']}}: {{$type['number']}} * {{format_money($type['price'])}} |
{{format_money($type['price'] * $type['number'])}}
|
@endforeach
@else
| {{__("Guests")}}: {{$booking->total_guests}} {{format_money($booking->getMeta('base_price'))}} |
{{format_money($booking->getMeta('base_price') * $booking->total_guests)}}
|
@endif
@php $extra_price = $booking->getJsonMeta('extra_price')@endphp
@if(!empty($extra_price))
| {{__("Extra Prices:")}} |
@foreach($extra_price as $type)
| {{$type['name']}}: |
{{format_money($type['total'] ?? 0)}}
|
@endforeach
|
@endif
@php $discount_by_people = $booking->getJsonMeta('discount_by_people')
@endphp
@if(!empty($discount_by_people))
| {{__("Discounts:")}} |
@foreach($discount_by_people as $type)
|
@if(!$type['to'])
{{__('from :from guests',['from'=>$type['from']])}}
@else
{{__(':from - :to guests',['from'=>$type['from'],'to'=>$type['to']])}}
@endif
:
|
- {{format_money($type['total'] ?? 0)}}
|
@endforeach
|
@endif