@extends('user.layout') @section('content')
{{ __('Logs') }}
@if (count($memberships) == 0)

{{ __('NO MEMBERSHIP FOUND') }}

@else
@foreach ($memberships as $key => $membership) @php $bex = json_decode($membership->settings); @endphp @if (!empty($membership->receipt)) @else @endif @endforeach
{{ __('Transaction Id') }} {{ __('Package') }} {{ __('Amount') }} {{ __('Payment Status') }} {{ __('Payment Method') }} {{ __('Receipt') }} {{ __('Actions') }}
@php $txId = $membership->transaction_id; $isUpi = strtolower($membership->payment_method) === 'upi' || strtolower($membership->payment_method) === 'offline'; @endphp @if($isUpi && !empty($txId)) UTR {{ strlen($txId) > 28 ? mb_substr($txId, 0, 28, 'UTF-8') . '...' : $txId }} @elseif(!empty($txId)) {{ strlen($txId) > 28 ? mb_substr($txId, 0, 28, 'UTF-8') . '...' : $txId }} @else - @endif @if (!empty($membership->package)) {{ __($membership->package->title) }} {{ __($membership->package->term) }} @endif @if ($membership->price == 0) Free @else {{ format_price($membership->price) }} @endif @if ($membership->status == 1)

{{ __('Success') }}

@elseif ($membership->status == 0)

{{ __('Pending') }}

@elseif ($membership->status == 2)

{{ __('Rejected') }}

@endif
{{ __($membership->payment_method) }} @if (!empty($membership->receipt)) {{ __('View Receipt') }} @else {{ __('View Receipt') }} @endif @if (!empty($membership->name !== 'anonymous')) {{ __('Details') }} @else - @endif
@endif
@endsection @section('scripts') @endsection