@extends('admin.layout') @section('title', 'Payments') @section('page-title', 'Payments Management') @section('content')
💰
Rs {{ number_format($stats['total_revenue']) }}
Total Revenue
{{ $stats['paid_bookings'] }}
Paid Bookings
{{ $stats['pending_payments'] }}
Pending Payments
📱
{{ $stats['mobile_payments'] }}
Mobile Payments

🔧 Payment Gateway Settings

@csrf
📱
JazzCash
Mobile Wallet
📲
Easypaisa
Mobile Wallet
🏦
Bank Transfer
Direct Bank / SadaPay / NayaPay
💵
Cash on Ride
Pay directly to driver

💲 Pricing & Commission

@csrf
Fixed fee added to each booking
Percentage taken from driver earnings

Recent Payments

@forelse($recent_payments as $booking) @empty @endforelse
Booking ID Passenger Route Amount Method Status Date Actions
#{{ $booking->id }} {{ $booking->passenger->name ?? 'N/A' }} {{ $booking->ride->route->fromCity->name ?? 'N/A' }} → {{ $booking->ride->route->toCity->name ?? 'N/A' }} Rs {{ number_format($booking->total_price * 280) }} @if(str_contains(strtolower($booking->payment_method ?? 'cash'), 'jazz')) JazzCash @elseif(str_contains(strtolower($booking->payment_method ?? ''), 'easy')) Easypaisa @else Cash @endif @if($booking->payment_status == 'paid') Paid @elseif($booking->payment_status == 'pending') Pending @else {{ ucfirst($booking->payment_status) }} @endif {{ $booking->created_at->format('M d, Y') }} @if($booking->payment_status == 'pending')
@csrf
@endif
No payments yet
@endsection