@extends('website.layouts.master_top') @section('css') @endsection @section('content')

Your Visa Applications

Here is your last Visa applications

@foreach ($on_request as $item) @if ($item->status == 0) @php $text_color = 'not_accepted-color-btn'; $msg = __('in progress'); @endphp @elseif ($item->status == 1) @php $text_color = 'pend-color-btn'; $msg = __('review documents'); @endphp @elseif ($item->status == 2) @php $text_color = 'cancel-color-btn'; $msg = __('Document problem'); @endphp @elseif ($item->status == 3) @php $text_color = 'prog-color-btn'; $msg = __('Return Document'); @endphp @elseif ($item->status == 4) @php $text_color = 'active-color-btn'; $msg = __('Send to broker'); @endphp @elseif ($item->status == 5) @php $text_color = 'cancel-color-btn'; $msg = __('Refused'); @endphp @elseif ($item->status == 6) @php $text_color = 'main-color-btn'; $msg = __('Approved'); @endphp @elseif ($item->status == 7) @php $text_color = 'done-color-btn'; $msg = __('ready to collect'); @endphp @endif @if ($item->type === "unit_package") @php $img = $item->requestable->hotel->main_image; @endphp @elseif ($item->type === "trip") @php $img = $item->requestable->trip->main_image; @endphp @elseif ($item->type === "full_package") @php $img = $item->requestable->package->main_image; @endphp @elseif ($item->type === "visa") @php $img = $item->requestable->destination->image; @endphp @elseif ($item->status == 5) @php $text_color = 'cancel-color-btn'; @endphp @endif
{{ $item->visa->name }} {{ $item->type }}
{{ $item->cat }}
Status

{{ $msg }}

{{ $item->start_at }}

{{ $item->duration }}

{{ $item->visa->destination->name }}

{{ $item->sell }}

@endforeach
@endsection @section('js') @endsection