@extends('backend.partials.master') @section('title') {{ ___('label.visa') }} {{ ___('menus.reports') }} @endsection @section('maincontent') @php // Percentages are taken over decided cases only — counting in-progress // applications as failures understates the real approval rate. $total = $byStatus->sum(); $approved = (int) ($byStatus['Approved'] ?? 0); $rejected = (int) ($byStatus['Rejected'] ?? 0); $decided = $approved + $rejected; $rate = $decided ? round($approved / $decided * 100) : 0; @endphp
{{ ___('label.approval_rate') }}

{{ $rate }}%

{{ $approved }} / {{ $decided }} {{ ___('label.decided') }}
{{ ___('label.applications') }}

{{ number_format($total) }}

{{ ___('label.service_revenue') }}

{{ currency_symbol() }}{{ number_format($earned) }}

{{ ___('label.of') }} {{ currency_symbol() }}{{ number_format($collected) }} {{ ___('label.collected') }}
{{ ___('label.rejections') }}

{{ number_format($rejected) }}

{{ ___('label.revenue_by_service') }}

@forelse($byService as $row) @empty @endforelse
{{ ___('label.country') }} {{ ___('label.visa_type') }} {{ ___('label.applications') }} {{ ___('label.govt_fee') }} {{ ___('label.service_revenue') }}
{{ $row->country }} {{ $row->visa_type }} {{ number_format($row->total) }} {{ currency_symbol() }}{{ number_format($row->govt_total) }} {{ currency_symbol() }}{{ number_format($row->service_total) }}
{{ ___('alert.no_data_available') }}
{{ ___('label.link_applications_to_services_hint') }}

{{ ___('label.by_country') }}

@endsection @push('scripts') @endpush