@extends('backend.partials.master') @section('title') {{ ___('admin.flight_reports_a2622d') }} @endsection @section('maincontent') @include('backend.reports._filterbar') @php $laDonut = ['labels' => $byStatus->pluck('status')->all(), 'series' => $byStatus->pluck('total')->map(fn($v) => (int) $v)->all()]; $laTrend = ['type' => 'bar', 'labels' => $byAirline->pluck('airline')->all(), 'series' => [['name' => 'Fare', 'data' => $byAirline->pluck('fare')->map(fn($v) => (float) $v)->all()]]]; @endphp
{{ ___('admin.tickets_5c622a') }}

{{ number_format($total) }}

{{ ___('admin.total_fare_e3679e') }}

{{ currency_symbol() }}{{ number_format($totalFare) }}

{{ ___('admin.confirmed_8cc7ac') }}

{{ number_format($confirmed) }}

{{ ___('admin.refunded_cancelled_107c2a') }}

{{ number_format($refunded) }}

{{ ___('admin.by_status_555c76') }}

@foreach($byStatus as $s) {{ admin_label($s->status) }} {{ number_format($s->total) }} {{ currency_symbol() }}{{ number_format($s->fare) }} @endforeach

{{ ___('admin.by_airline_0921b2') }}

@foreach($byAirline as $a) {{ $a->airline }}{{ number_format($a->total) }}{{ currency_symbol() }}{{ number_format($a->fare) }} @endforeach
@endsection