@extends('user.layout') @section('title','ড্রাইভ প্যাক হিস্ট্রি') @section('content') @php $statusLabels = [ 'pending' => 'Pending', 'processing' => 'Processing', 'success' => 'Success', 'cancelled' => 'Cancelled', 'failed' => 'Failed', ]; @endphp

ড্রাইভ প্যাক হিস্ট্রি

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
রিসেট
@forelse($orders as $order)
{{ $order->transaction_id }}
{{ $order->mobile_number }}
৳{{ number_format($order->amount, 2) }}
{{ $statusLabels[$order->status] ?? $order->status }}
{{ $order->title ?: $order->package_id }}
অপারেটর
{{ $order->operator }} / {{ ucfirst($order->recharge_type) }}
সময়
{{ $order->created_at ? $order->created_at->format('d M Y h:i A') : '-' }}
@if((float)($order->commission_amount ?? 0) > 0)
✅ কমিশন: ৳{{ number_format($order->commission_amount, 2) }}
@endif @if((float)($order->refunded_amount ?? 0) > 0)
🔁 ফেরত: ৳{{ number_format($order->refunded_amount, 2) }}
@endif
@empty
কোনো ড্রাইভ প্যাক হিস্ট্রি পাওয়া যায়নি
@endforelse
{{ $orders->links() }}
@endsection