@extends($ajaxCall) @section("content") @include('general.tab-header') {!! Form::open(['class' => 'form-inline', 'method'=>'GET', 'data-no_alert']) !!}
@if (isset($tableData) && count($tableData)) @php $grand_total_pax = isset($tableData['pax']['total']) ? $tableData['pax']['total'] : 0 @endphp @php $grand_total_revenue = isset($tableData['revenue']['total']) ? $tableData['revenue']['total'] : 0 @endphp @php $grand_total_yield = $grand_total_pax ? $grand_total_revenue / $grand_total_pax : 0 @endphp
Found:
{{ isset($grand_total_pax) ? number_format($grand_total_pax) : 0 }} Records.
Revenue:
${{ isset($grand_total_revenue) ? number_format($grand_total_revenue) : 0 }}
PAX:
{{ isset($grand_total_pax) ? number_format($grand_total_pax) : 0 }}
Yield:
${{ isset($grand_total_pax) ? (is_numeric($grand_total_yield) ? number_format($grand_total_yield) : 0) : 0 }}
@endif
{!!Form::submit("Submit", [ 'name' => "region_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report', ['report' => REGION_REPORT, 'report_name' => "Region"])
{!!Form::submit("Submit", [ 'name' => "country_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report', ['report' => COUNTRY_REPORT, 'report_name' => "Country"])
{!!Form::submit("Submit", [ 'name' => "city_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report', ['report' => CITY_REPORT, 'report_name' => "City"])
{!!Form::submit("Submit", [ 'name' => "agency_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report', ['report' => AGENCY_REPORT, 'report_name' => "Agency"])
{!!Form::submit("Submit", [ 'name' => "sales_channel_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report', ['report' => SALES_CHANNEL_REPORT, 'report_name' => "Sales Channel"])
{!!Form::submit("Submit", [ 'name' => "flight_number_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report', ['report' => FLIGHT_NUMBER_REPORT, 'report_name' => "Flight Number", 'boundLegend' => TRUE])
{!!Form::submit("Submit", [ 'name' => "sector_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report', ['report' => SECTOR_REPORT, 'report_name' => "Sector", 'boundLegend' => TRUE])
{!!Form::submit("Submit", [ 'name' => "route_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report-route', ['report' => ROUTE_REPORT, 'report_name' => "Route"])
{!!Form::submit("Submit", [ 'name' => "cabin_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report', ['report' => CABIN_REPORT, 'report_name' => "Cabin"])
{!!Form::submit("Submit", [ 'name' => "rbd_report", 'class' => "btn btn-primary" ])!!}
@include('commercial.index-report', ['report' => RBD_REPORT, 'report_name' => "RBD"])
{!! Form::close() !!} @stop @section("js_scripts") @stop