@extends('layouts.frontend') @section('content') @section('style') {{-- --}} @endsection @php if (auth()->check()) { $timeCalculate = new \App\Http\Controllers\Frontend\FlightController(); // dd($timeCalculate); } else { $timeCalculate = new \App\Http\Controllers\Customer\CustomerController(); // dd($timeCalculate); } // $timeCalculate = $timeCalculate->minuteToHour("60"); // print_r($timeCalculate); die; @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
@if (!isset($response->Schedules[0]) && $responseTbo->Response->Error->ErrorCode > 0)

No Record Found!

@else
@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
Number of stops
Airlines
Refundable
Show net fare
{{-- Start user for TBO api --}} @if (isset($responseTbo->Response->Results[0])) @foreach ($responseTbo->Response->Results[0] as $flightKeyTbo => $flight) @php if (!empty($timeCalculate)) { $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); } // dd($customerfare); // print_r($customerfare['customer_fare']); @endphp @if (count($flight->Segments[0]) > 1)
@else
@endif
@foreach ($flight->Segments as $getSegment)

{{ $getSegment[0]->Origin->Airport->AirportCode }}

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

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

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

@endif @endforeach @else
Non-stop
@foreach ($getSegment as $segmentList)

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

@endforeach @endif

{{ $getSegment[count($getSegment) - 1]->Destination->Airport->AirportCode }}

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

{{ date('Y-m-d', strtotime($getSegment[count($getSegment) - 1]->Destination->ArrTime)) }}
@endforeach
₹ {{ $customerfare['customer_fare'] }} {{-- {{$flight->Fare->GrandTotal}} $flight->Fare->PublishedFare --}} {{-- @php print_r($flight); @endphp --}}
@if(Auth::check()) @else Book now @endif {{-- --}}
@endforeach @endif {{-- End user for TBO api --}} {{-- Start user for Custom api --}} @if (isset($customResponse)) @foreach ($customResponse as $flightKey => $flight)

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

{{--
{{request()->from_city}}
--}}
{{ date('Y-m-d', strtotime($flight->from_date)) }}
icon @php $start_datetime = new DateTime($flight->from_date); $diff = $start_datetime->diff(new DateTime($flight->to_date)); @endphp

{{ $diff->d }}d:{{ $diff->h }}h:{{ $diff->i }}m

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

{{--
{{request()->to_city}}
--}}
{{ date('Y-m-d', strtotime($flight->to_date)) }}
{{--
₹{{ $customerfare['customer_fare'] }}
--}}
₹ {{-- {{ $customerfare['agent_fare'] }} --}} {{ $flight->price }}
{{-- @if(Auth::Check()) @else Book now @endif --}}
@endforeach @endif {{-- End user for Custom api --}} {{-- Start user for kafila api --}} @if (isset($response->Schedules[0])) @foreach ($response->Schedules[0] as $flightKey => $flight) @php if (!empty($timeCalculate)) { $customerfare = $timeCalculate->fare_markup($flight->Fare->GrandTotal, $flight->Fare->GrandTotal, $flight->FName, $flight->FNo, $flight->Fare->BasicTotal, $flight->Fare->YqTotal); } @endphp

{{ 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 }}

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

{{--
{{request()->to_city}}
--}}
{{ date('Y-m-d', strtotime($flight->ADate)) }}
₹{{ $customerfare['customer_fare'] }}
@if(Auth::check()) @else Book now @endif
@endforeach @endif {{-- End user for Kafila api --}}
@endif
icon

Get the latest news and offers

Subscribe to our newsletter

@section('scripts') @endsection @endsection