@extends('user.layouts') @section('title', 'Transaction') @section('header') @endsection @section('content')
View and manage all transaction details
| SN | NAME / USER ID | PHONE NO | BUSINESS NAME | TRANSACTION ID | PAYMENT ID | PLAN | DATE & TIME | STATUS |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{-- NAME / USER ID --}}
{{ $customerInitial }}
{{ $customerName }}
|
{{-- PHONE --}}
{{ optional($sub->user)->phone_number ?? 'N/A' }} | {{-- BUSINESS --}}
{{ $businessName }}
|
{{-- TRANSACTION ID --}}
{{ $sub->transaction_id ?? 'N/A' }} | {{-- PAYMENT ID --}}{{ $sub->payment_id ?? 'N/A' }} | {{-- PLAN / AMOUNT --}}@if( $sub->amount !== null && $sub->amount !== '' ) ₹{{ number_format( (float) $sub->amount, 2 ) }} @else N/A @endif | {{-- DATE --}} @php $transactionTime = $sub->created_at ? $sub->created_at->copy()->timezone('Asia/Kolkata') : null; @endphp
@if($transactionTime)
{{ $transactionTime->format('d-m-Y') }}
{{ $transactionTime->format('h:i A') }}
@else
N/A
@endif
|
{{-- STATUS --}}
{{ $statusText }} |