@php use App\Enums\TrxType; @endphp @extends('backend.layouts.app') @section('title', __('User Ranks')) @push('styles') @endpush @section('content')
{{ __('User Ranks Management') }}
{{ __('Add New') }}
@if($userRanks->isNotEmpty())
@foreach($userRanks as $userRank) @endforeach
{{ __('Name') . ' | ' . __('Description') }} {{ __('Trx Amount | Reward') }} {{ __('Trx Type Allowed') }} {{ __('Status') }} {{ __('Action') }}
{{ $userRank->name }}
{{ $userRank->name }} @if($userRank->is_default) {{ __('Default') }} @endif
{{ \Illuminate\Support\Str::limit($userRank->description, 70) }}
{{ $userRank->transaction_amount . ' ' . siteCurrency() }}
{{ $userRank->reward . ' ' . siteCurrency() }}
@forelse((array) $userRank->transaction_types as $transactionType) {{ title($transactionType) }} @empty {{ __('No transaction types') }} @endforelse {{ strtoupper($userRank->is_active ? __('active') : __('inactive')) }}
@else @endif
@include('backend.user_rank.partials._new_user_rank_modal') @include('backend.user_rank.partials._edit_user_rank_modal') @endsection @push('scripts') @endpush