@extends('website.layouts.master', ['no_transparent_header' => false]) @section('css') @endsection @section('content')
@include('website.layouts.includes.leftside_profile', ['type' => "requests"])

My Requests Of {{ $on_request->code }}

Here is your last Requests

@if($on_request->invoice) @if ($on_request->invoice->status == 0) @php $msg_invoice = __('basic.not paid'); $text_color_invoice = 'cancel-color-btn'; @endphp @elseif ($on_request->invoice->status == 1) @php $text_color_invoice = 'pend-color-btn'; $msg_invoice = __('basic.pending'); @endphp @elseif ($on_request->invoice->status == 2) @php $text_color_invoice = 'prog-color-btn'; $msg_invoice = __('basic.installment'); @endphp @elseif ($on_request->invoice->status == 3) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = __('basic.paid'); @endphp @elseif ($on_request->invoice->status == 4) @php $msg_invoice = __('basic.refund'); $text_color_invoice = 'cancel-color-btn'; @endphp @endif Invoice {{ $msg_invoice }} @else No Invoice @endif
@foreach ($on_request->items as $item) @if ($item->status == 1) @php $text_color = 'not_accepted-color-btn'; $msg = __('Send'); @endphp @elseif ($item->status == 2) @php $text_color = 'pend-color-btn'; $msg = __('In progress'); @endphp @elseif ($item->status == 3) @php $text_color = 'done-color-btn'; $msg = __('Accept'); @endphp @elseif ($item->status == 4) @php $text_color = 'cancel-color-btn'; $msg = __('Not accept'); @endphp @elseif ($item->status == 5) @php $text_color = 'cancel-color-btn'; $msg = __('Canceled'); @endphp @endif @if ($item->type === "hotel") @php $img = URL::asset('img/unit/' . $item->requestable->hotel->main_image); @endphp @elseif ($item->type === "trip") @php $img = URL::asset('img/trip/' . $item->requestable->trip->main_image); @endphp @elseif ($item->type === "package") @php $img = URL::asset('img/package/' . $item->requestable->package->main_image); @endphp @elseif ($item->type === "visa") @php $img = URL::asset('img/visa/cat/' . $item->requestable->visa->main_image); @endphp @endif

{{ $item->name }}

@if ($item->type === "hotel")
Type: {{ $item->cat }}
Meal: {{ $item->meal }}
@elseif($item->type === "package")
Type: {{ $item->cat }}
Capacity: {{ $item->capacity }} People
@elseif($item->type === "visa")
Type: {{ $item->cat }}
Valid for: {{ $item->capacity }} Days
@endif
Status

{{$msg}}

{{ $item->start_at }}

@if ($item->end_at)

{{ $item->end_at }}

@endif
@if($item->discount > 0)

Discount: {{ $item->discount }} L.E

@endif

{{ $item->final_price }} L.E

@endforeach
Subtotal
{{ $item->subtotal }}EGP
Discount
{{ $item->discount }} EGP
Final Price
{{ $item->final_price }} EGP
@endsection @section('js') @endsection