@foreach ($appointment->invoice_items as $item)
@if ($item->debtor)
@php
$debtor_ur_wa = route('booking_print', $appointment->code);
@endphp
@if ($item->type == 1)
@php
$service_type = "Hotel";
@endphp
@elseif ($item->type == 2)
@php
$service_type = "Single Bus";
@endphp
@elseif ($item->type == 3)
@php
$service_type = "Round Bus";
@endphp
@elseif ($item->type == 4)
@php
$service_type = "Visa";
@endphp
@elseif ($item->type == 5)
@php
$service_type = "Airline Single";
@endphp
@elseif ($item->type == 6)
@php
$service_type = "airline round";
@endphp
@elseif ($item->type == 7)
@php
$service_type = "Package";
@endphp
@elseif ($item->type == 8)
@php
$service_type = "Trip";
@endphp
@endif
@endif
{{ $service_type }}
@if ($item->room_type)
{{ $item->room_type }} Room
@endif {{ $item->categorizable->name }} @if ($item->days)
for {{ $item->days }} days
@endif
{{ "*" . $item->qty }}
@if ($item->final_price)
{{ $item->final_price }}
{{ __('basic.egp') }}
@else
No fees
@endif
{{ __('basic.discount') }}
@if ($appointment->invoice_item)
@if (!empty($invoice->invoice_item->invoice->discount))
{{ $appointment->invoice_item->invoice->discount }}
{{ __('basic.egp') }}
@else
0
@endif
@else
No Discount
@endif
{{ __('basic.total price') }}
{{ $appointment->final_price }}
{{ __('basic.egp') }}
Here is the total price including tax
{{ __('Final price') }}
{{ $appointment->final_price }}
{{ date('d M Y', strtotime($appointment->created_at)) }}