@include('pages.layout.flash_messages')
{{ __('Visa request No. '). $invoice->id }} @include('components.breadCrumb.show',['path' => route('visa.invoices.index'),'section' => __('Visa orders'),'title' => __('Visa request No. '). $invoice->id])

{{ __("Customer") }} {{ $invoice?->customer?->name }}
{{ __("Customer phone") }} {{ $invoice?->customer?->phone }}
{{ __("Status") }}
{{ __($invoice->status) }}
{{ __("Payment status") }}
{{ __($invoice->payment_status) }}
{{ __("Country") }} {{ $invoice?->country?->name }}
{{ __("Visa type") }} {{ $invoice?->type?->name }}
{{ __("Date of travel") }} {{ $invoice->date_of_travel }}
{{ __("No. of travelers") }} {{ $invoice->number_of_adults + $invoice->number_of_children }}
{{ __("No. of adults") }} {{ $invoice->number_of_adults }}
{{ __("No. of children") }} {{ $invoice->number_of_children }}
{{ __("Travelers relationship") }} {{ __($invoice->relationships) }}
{{ __("The sponsor") }} {{ __($invoice?->sponsor?->sponsor) }}
{{ __("Bank statement") }}
{{ __("Passport") }}
{{ __("Job letter") }}
{{ __("Order date") }} {{ $invoice->created_at?->format('Y-m-d h:i A') }}
{{ __('Action') }} @if($invoice->status == 'pending'||$invoice->status == 'accepted') {{ __('Edit') }} @endif {{--
@csrf @method('DELETE')
--}}
{{ __('Travelers inforamtion') }}
@foreach ($invoice->travelers as $traveler)
{{ __('Traveler No. : ').$traveler->num }} ({{ __($traveler->type) }})
@foreach ($traveler->groups as $group)

{{ $group->name }}

@forelse ($group->attributes as $attribute) @empty
{{__("No entry found")}}
@endforelse
{{__("Name")}} {{__("Value")}}

{{$attribute->name}}

@if ($attribute->type == 'multi_select')
    @foreach (json_decode($attribute->value) as $value)
  • @php $value = json_encode($value,true); @endphp {{ json_decode($value,true)[app()->getLocale()] }}
  • @endforeach
@elseif ($attribute->type == 'one_select')
    {{ (json_decode($attribute->value,true)[app()->getLocale()]) }}
@elseif($attribute->type == 'file') @else {{ $attribute->value }} @endif
@endforeach
@endforeach
{{ __('Reply') }}
@forelse ($invoice->replies as $reply) @empty
{{__("No entry found")}}
@endforelse
{{__("ID")}} {{__("Reply")}} {{__("Files")}}

{{$reply->id}}

{{$reply->reply}}
@if($reply->files->count()) @foreach ($reply->files as $file) @endforeach @else @endif