@php $page = 'transactions' @endphp @extends('includes.layout') @section('content')

Earnings

@if($user->role != 'user')
@endif
@forelse ($earnings as $item)
Trx:

{{ $item->earning_code() ?? "N/A" }}


Plan:

{{ $item->payment->plan->name }} PLAN


User:

{{ $item->user->name }}


Amount:

${{ number_format($item->amount, 2) }}


Status:

{{ Str::ucfirst($item->status) }}


Payment Date:

{{ $item->created_at->diffForHumans() }}


Action:

@empty

No Data Available at this Moment

@endforelse
{{ $earnings->render("pagination::bootstrap-4") }}
@endsection