@extends('admin.layout') @section('content')
{{ __('Subscription Log') }}
@if (count($memberships) == 0)

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

@else
@foreach ($memberships as $key => $membership) @php $bex = json_decode($membership->settings); @endphp @endforeach
{{ __('Transaction Id') }} {{ __('Username') }} {{ __('Amount') }} {{ __('Payment Status') }} {{ __('Payment Method') }} {{ __('Receipt') }} {{ __('Actions') }}
{{ strlen($membership->transaction_id) > 30 ? mb_substr($membership->transaction_id, 0, 30, 'UTF-8') . '...' : $membership->transaction_id }} @php $vendor = $membership->vendor()->first(); @endphp @if ($vendor) {{ $vendor->username }} @endif @if ($membership->price == 0) {{ __('Free') }} @else {{ format_price($membership->price) }} @endif @if (json_decode($membership->transaction_details) !== 'offline') @if ($membership->status == 1)

{{ __('Success') }}

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

{{ __('Pending') }}

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

{{ __('Rejected') }}

@endif @else
@csrf
@endif
{{ $membership->payment_method }} @if (!empty($membership->receipt)) {{ __('Show') }} @else - @endif @if (!empty($membership->name !== 'anonymous')) {{ __('Detail') }} @else - @endif
@endif
@endsection