@extends('admin.layout.master') @section('css') @endsection @section('content') @php $money = fn ($value) => number_format((float) $value, 2) . ' ' . __('admin.sar'); $number = fn ($value) => number_format((float) $value); $operationClass = fn ($operation) => $operation === 'deposit' ? 'badge-success' : 'badge-warning'; @endphp
{{ __('routes.finance.index') }}
{{ $filters['label'] }}
@haspermission('admin.settlements.index') {{ __('admin.settlements') }} @endhaspermission
{{ __('admin.gross_ride_revenue') }}
{{ $money($summary['gross_revenue']) }}
{{ __('admin.completed_rides') }}: {{ $number($summary['rides_count']) }}
{{ __('admin.company_net_revenue') }}
{{ $money($summary['company_net_revenue']) }}
{{ __('admin.after_investor_share') }}
{{ __('admin.investor_share_estimated') }}
{{ $money($summary['investor_share_estimated']) }}
{{ __('admin.unsettled_revenue') }}: {{ $money($summary['unsettled_revenue']) }}
{{ __('admin.average_ride_revenue') }}
{{ $money($summary['average_ride_revenue']) }}
{{ __('admin.duration_hours') }}: {{ number_format((float) $summary['duration_hours'], 1) }}
{{ __('admin.revenue_performance') }}
{{ __('admin.gross_net_and_rides') }}
{{ __('admin.period_snapshot') }}
{{ __('admin.operational_revenue_scope') }}
{{ __('admin.clients') }} {{ $number($summary['clients_count']) }}
{{ __('admin.scooters') }} {{ $number($summary['scooters_count']) }}
{{ __('admin.providers') }} {{ $number($summary['providers_count']) }}
{{ __('admin.settled_revenue') }} {{ $money($summary['active_settlement_revenue']) }}

{{ __('admin.open_pending_settlements') }} {{ $money($settlements['open']['total_amount']) }}
{{ __('admin.period_pending_settlements') }} {{ $money($settlements['pending']['total_amount']) }}
{{ __('admin.period_paid_settlements') }} {{ $money($settlements['accepted']['total_amount']) }}
{{ __('admin.period_rejected_settlements') }} {{ $number($settlements['rejected']['count']) }}
{{ __('admin.wallet_deposits') }}
{{ $money($wallet['deposits']) }}
{{ __('admin.wallet_top_ups') }}: {{ $money($wallet['top_ups']) }}
{{ __('admin.wallet_withdrawals') }}
{{ $money($wallet['withdrawals']) }}
{{ __('admin.ride_wallet_deductions') }}: {{ $money($wallet['ride_deductions']) }}
{{ __('admin.wallet_net_flow') }}
{{ $money($wallet['net_flow']) }}
{{ __('admin.transactions') }}: {{ $number($wallet['transactions_count']) }}
{{ __('admin.refunds_and_adjustments') }}
{{ $money($wallet['refunds'] + $wallet['admin_adjustments']) }}
{{ __('admin.package_deductions') }}: {{ $money($wallet['package_deductions']) }}
@foreach($table_widgets as $table => $widget)
@include('admin.finance.partials.table-widget', compact('widget'))
@endforeach
@endsection @section('js') @endsection