@extends('admin.layout') @section('title', 'Payments') @section('page-title', 'Payments Management') @section('content')
| 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') @endif |
| No payments yet | |||||||