@extends('layouts.app') @section('title', 'Shipping & RTO Analytics - Admin') @section('content')
@include('admin.partials.sidebar')

Logistics IQ

Return to Origin (RTO) & Carrier Performance Analysis

Total Shipments

{{ $stats['total_shipments'] }}

Total RTO Events

{{ $stats['total_rto'] }}

Net RTO Rate

{{ number_format($stats['rto_rate'], 2) }}%

Carrier-Wise RTO Performance
@forelse($courierRto as $rto) @empty @endforelse
Courier Partner RTO Count Impact
{{ strtoupper($rto->courier_name) }}
{{ $rto->count }} @php $impact = ($rto->count / max(1, $stats['total_rto'])) * 100; @endphp
{{ number_format($impact, 1) }}%
No RTO data recorded for carriers.
Seller-Wise RTO Analysis
@forelse($vendorRto as $rto) @empty @endforelse
Vendor Shop RTO Count Status
{{ $rto->shop_name }}
{{ $rto->count }} @if($rto->count > 10) High Alert @else Stable @endif
No RTO data recorded for vendors.
Smart Suggestions
Address Verification

Orders with incomplete or vague addresses have a 40% higher chance of RTO. Consider enabling address verification API.

COD Confirmation

Implementing an IVR or manual confirmation for COD orders above ₹2000 can reduce RTOs by up to 25%.

Payment & Reports
RTO by Payment Method
@forelse($paymentRto as $rto)
{{ strtoupper($rto->payment_method) }} {{ $rto->count }}
@php $pImpact = ($rto->count / max(1, $stats['total_rto'])) * 100; @endphp
{{ number_format($pImpact, 1) }}% of total RTO
@empty

No payment data found.

@endforelse
@endsection