@extends('layouts.frontend') @section('content') @section('style') {{-- --}} @endsection @php $timeCalculate = new \App\Http\Controllers\Frontend\FlightController(); @endphp

Flight search result

  • Home
  • Flight search result

From

{{-- JFK - John F. Kennedy International... --}}

To

{{-- LCY, London city airport --}}

Departure date

Thursday

Arrive date

Thursday

From

DAC, Hazrat Shahajalal International...

To

LCY, London city airport

Journey date

Thursday

Return date

Saturday

From

DAC, Hazrat Shahajalal International...

To

LCY, London city airport

Journey date

Thursday

Return date

Saturday
@php if (isset($response->Schedules[0])) { $countFlights = count($response->Schedules[0]); } else { $countFlights = 0; } @endphp @if (isset($responseTbo->Response->Results[0])) @php $countFlights = $countFlights + count($responseTbo->Response->Results[0]); @endphp @endif

{{ $countFlights }} tours found

Filter by price (Onward)
Number of stops
Airlines
Refundable
Filter by price (Return)
Number of stops
Airlines
Refundable
Show net fare
@if (isset($response->Schedules[0])) @foreach ($response->Schedules[0] as $flightKey => $flight)

From

{{ date('H:i', strtotime($flight->DDate)) }}

{{--
{{request()->from_city}}
--}}
{{ date('Y-m-d', strtotime($flight->DDate)) }}
icon
{{ count($flight->Itinerary) == 1 ? 'non-stop' : count($flight->Itinerary) - 1 . ' stop' }}

{{ $flight->Dur }}

To

{{ date('H:i', strtotime($flight->ADate)) }}

{{--
{{request()->to_city}}
--}}
{{ date('Y-m-d', strtotime($flight->ADate)) }}
₹{{ $flight->Fare->GrandTotal }}
{{-- Book now --}}
@endforeach @endif {{-- Start OB TBO --}} @if (isset($responseTbo->Response) && isset($responseTbo->Response->Results[0])) @foreach ($responseTbo->Response->Results[0] as $flightKeyTbo => $flight) @php $customerfare = $timeCalculate->fare_markup($flight->Fare->OfferedFare, $flight->Fare->PublishedFare,$flight->Segments[0][0]->Airline->AirlineCode, $flight->Segments[0][0]->Airline->FlightNumber, $flight->Fare->BaseFare, $flight->Fare->YQTax); // print_r($customerfare['customer_fare']); @endphp @if (count($flight->Segments[0]) > 1)
@else
@endif

{{ $flight->Segments[0][0]->Origin->Airport->AirportCode }}

From

@foreach ($flight->Segments as $getSegment) {{-- @foreach ($getSegment as $segmentList) --}}

{{ date('H:i', strtotime($getSegment[0]->Origin->DepTime)) }}

{{ date('Y-m-d', strtotime($getSegment[0]->Origin->DepTime)) }}
{{-- @php print_r($segmentList->Origin->Airport->AirportCode); @endphp --}} {{-- @endforeach --}} @endforeach {{--

{{$flight->Src}}

--}} {{--
{{date('Y-m-d', strtotime($flight->DDate))}}
--}}
icon @if (count($flight->Segments[0]) > 1)
{{ count($flight->Segments[0]) - 1 }} Stop
@foreach ($flight->Segments as $getSegment) @foreach ($getSegment as $segmentList) @if (isset($segmentList->AccumulatedDuration) && $segmentList->AccumulatedDuration > 0)

@php echo $timeCalculate->minuteToHour($segmentList->AccumulatedDuration); @endphp

@endif @endforeach @endforeach @else
Non-stop
@foreach ($flight->Segments as $getSegment) @foreach ($getSegment as $segmentList) {{-- @if (isset($segmentList->AccumulatedDuration) && $segmentList->AccumulatedDuration > 0) --}}

@php echo $timeCalculate->minuteToHour($segmentList->Duration); @endphp

{{-- @endif --}} @endforeach @endforeach @endif {{--

{{$flight->Dur}}

--}}

{{ $flight->Segments[0][0]->Destination->Airport->AirportCode }}

To

@foreach ($flight->Segments as $getSegment) {{-- @foreach ($getSegment as $segmentList) --}}

{{ date('H:i', strtotime($getSegment[count($flight->Segments[0]) - 1]->Destination->ArrTime)) }}

{{ date('Y-m-d', strtotime($getSegment[count($flight->Segments[0]) - 1]->Destination->ArrTime)) }}
{{-- @endforeach --}} @endforeach {{--

{{$flight->Des}}

--}} {{--
{{date('Y-m-d', strtotime($flight->ADate))}}
--}}
₹ {{ $customerfare['customer_fare']; }} {{-- {{$flight->Fare->GrandTotal}} --}}
{{-- $flight->Fare->PublishedFare --}} {{-- Book now --}} {{-- --}}
{{--
@foreach ($flight->Segments as $ilinerary) @foreach ($ilinerary as $ilineraryList) @if ($ilineraryList->GroundTime > 0)
{{ $ilineraryList->GroundTime }}
@endif
{{ $ilineraryList->Origin->Airport->AirportCode }} {{ date('H:i', strtotime($ilineraryList->Origin->DepTime)) }}

{{ date('Y-m-d', strtotime($ilineraryList->Origin->DepTime)) }}

{{ $ilineraryList->Duration }}
{{ $ilineraryList->Destination->Airport->AirportCode }} {{ date('H:i', strtotime($ilineraryList->Destination->ArrTime)) }}

{{ date('Y-m-d', strtotime($ilineraryList->Destination->ArrTime)) }}


Refund Policy:


@if ($flight->IsRefundable == false) NonRefundable @else Refundable @endif

Baggage

{{ $ilineraryList->Baggage }} / person

Cabin: {{ $ilineraryList->CabinBaggage }} / person

@endforeach @endforeach
Fare Summary
Base Fare ₹ {{$flight->FareBreakdown[0]->BaseFare}}
Tax ₹ {{$flight->FareBreakdown[0]->Tax}}
Total ₹ {{$flight->FareBreakdown[0]->BaseFare + $flight->FareBreakdown[0]->Tax}}
...
--}}
@endforeach @endif {{-- End OB TBO --}}
Show net fare
@if (isset($response->Schedules[1])) @foreach ($response->Schedules[1] as $flightKey => $flight)

From

{{ date('H:i', strtotime($flight->DDate)) }}

{{--
{{request()->from_city}}
--}}
{{ date('Y-m-d', strtotime($flight->DDate)) }}
icon
{{ count($flight->Itinerary) == 1 ? 'non-stop' : count($flight->Itinerary) - 1 . ' stop' }}

{{ $flight->Dur }}

To

{{ date('H:i', strtotime($flight->ADate)) }}

{{--
{{request()->to_city}}
--}}
{{ date('Y-m-d', strtotime($flight->ADate)) }}
₹{{ $flight->Fare->GrandTotal }}
{{-- Book now --}}
@endforeach @endif {{-- Start IB TBO --}} @if (isset($responseTbo->Response) && isset($responseTbo->Response->Results[0])) @foreach ($responseTbo->Response->Results[1] as $flightKeyTbo => $flight) @php $customerfareib = $timeCalculate->fare_markup($flight->Fare->OfferedFare, $flight->Fare->PublishedFare,$flight->Segments[0][0]->Airline->AirlineCode, $flight->Segments[0][0]->Airline->FlightNumber, $flight->Fare->BaseFare, $flight->Fare->YQTax); // echo $flight->Fare->PublishedFare; // echo "
"; // print_r($customerfareib['customer_fare']); @endphp @if (count($flight->Segments[0]) > 1)
@else
@endif

{{ $flight->Segments[0][0]->Origin->Airport->AirportCode }}

From

@foreach ($flight->Segments as $getSegment) {{-- @foreach ($getSegment as $segmentList) --}}

{{ date('H:i', strtotime($getSegment[0]->Origin->DepTime)) }}

{{ date('Y-m-d', strtotime($getSegment[0]->Origin->DepTime)) }}
{{-- @php print_r($segmentList->Origin->Airport->AirportCode); @endphp --}} {{-- @endforeach --}} @endforeach
icon @if (count($flight->Segments[0]) > 1)
{{ count($flight->Segments[0]) - 1 }} Stop
@foreach ($flight->Segments as $getSegment) @foreach ($getSegment as $segmentList) @if (isset($segmentList->AccumulatedDuration) && $segmentList->AccumulatedDuration > 0)

@php echo $timeCalculate->minuteToHour($segmentList->AccumulatedDuration); @endphp

@endif @endforeach @endforeach @else
Non-stop
@foreach ($flight->Segments as $getSegment) @foreach ($getSegment as $segmentList) {{-- @if (isset($segmentList->AccumulatedDuration) && $segmentList->AccumulatedDuration > 0) --}}

@php echo $timeCalculate->minuteToHour($segmentList->Duration); @endphp

{{-- @endif --}} @endforeach @endforeach @endif {{--

{{$flight->Dur}}

--}}

{{ $flight->Segments[0][0]->Destination->Airport->AirportCode }}

To

@foreach ($flight->Segments as $getSegment)

{{ date('H:i', strtotime($getSegment[count($flight->Segments[0]) - 1]->Destination->ArrTime)) }}

{{ date('Y-m-d', strtotime($getSegment[count($flight->Segments[0]) - 1]->Destination->ArrTime)) }}
@endforeach {{--

{{$flight->Des}}

--}} {{--
{{date('Y-m-d', strtotime($flight->ADate))}}
--}}
₹ {{ $customerfareib['customer_fare']; }} {{-- {{ $flight->Fare->PublishedFare }} --}}
{{-- Book now --}} {{--
--}}
{{--
@foreach ($flight->Segments as $ilinerary) @foreach ($ilinerary as $ilineraryList) @if ($ilineraryList->GroundTime > 0)
{{ $ilineraryList->GroundTime }}
@endif
{{ $ilineraryList->Origin->Airport->AirportCode }} {{ date('H:i', strtotime($ilineraryList->Origin->DepTime)) }}

{{ date('Y-m-d', strtotime($ilineraryList->Origin->DepTime)) }}

{{ $ilineraryList->Duration }}
{{ $ilineraryList->Destination->Airport->AirportCode }} {{ date('H:i', strtotime($ilineraryList->Destination->ArrTime)) }}

{{ date('Y-m-d', strtotime($ilineraryList->Destination->ArrTime)) }}


Refund Policy:


@if ($flight->IsRefundable == false) NonRefundable @else Refundable @endif

Baggage

{{ $ilineraryList->Baggage }} / person

Cabin: {{ $ilineraryList->CabinBaggage }} / person

@endforeach @endforeach
Fare Summary
Base Fare ₹ {{$flight->FareBreakdown[0]->BaseFare}}
Tax ₹ {{$flight->FareBreakdown[0]->Tax}}
Total ₹ {{$flight->FareBreakdown[0]->BaseFare + $flight->FareBreakdown[0]->Tax}}
...
--}}
@endforeach @endif {{-- End IB TBO --}}
icon

Get the latest news and offers

Subscribe to our newsletter

@section('scripts') @endsection @endsection