@extends('backend.subscription.layout') @section('title', __('Subscription Transactions')) @section('sub_title', __('Subscription Transactions')) @section('sub_icon', 'transaction-2') @section('sub_subtitle', __('All subscription payment records including new subscriptions and renewals.')) @section('sub_action') @lang('User Subscriptions') @endsection @section('sub_content') {{-- Filter --}}
@if(request()->hasAny(['search','plan_id','type','date'])) @lang('Reset') @endif
{{-- Table --}}
@forelse($transactions as $trx) @empty @endforelse
# @lang('User') @lang('Plan') @lang('Type') @lang('Amount') @lang('TRX ID') @lang('Date')
{{ $trx->id }}
{{ $trx->user->name }}
{{ $trx->plan->name }} @php $typeColor = match($trx->type) { 'new' => 'primary', 'renewal' => 'info', 'refund' => 'warning', default => 'secondary', }; @endphp {{ ucfirst($trx->type) }} {{ $trx->currency_code }} {{ number_format($trx->amount,siteDecimalPlaces()) }} {{ $trx->trx_id ?? '—' }} {{ $trx->created_at->format('d M Y, H:i') }}
@if($transactions->hasPages()) @endif
@endsection