@extends('layouts.admin') @section('title', $title) @section('content') @php $routeName = match ($section) { 'assets' => 'admin.assets', 'mining' => 'admin.mining', 'methods' => 'admin.methods', 'tasks' => 'admin.tasks', default => 'admin.airdrops' }; $saveRoute = $routeName.'.save'; @endphp @if (in_array($section, ['assets', 'methods'])) @endif
{{ in_array($section, ['mining', 'tasks', 'airdrops']) ? 'Rewards' : 'Platform setup' }}

{{ $title }}

{{ $editing ? 'Update the selected item below.' : 'Create and manage what users see on the platform.' }}

@if ($editing)Cancel Editing@endif

{{ $editing ? 'Edit' : 'Add New' }}

Fields marked by the browser are required.

@if ($section === 'assets')
@csrf @if ($editing)@endif
Advanced settings
@elseif ($section === 'mining')
@csrf
Advanced settings
@elseif ($section === 'methods')
@csrf @if ($editing)@endif
@elseif ($section === 'tasks')
@csrf @if ($editing)@endif
Streak rewards
@else
@csrf @if ($editing)@endif
Advanced eligibility
@endif

Current Items

{{ $rows->count() }} total

@forelse($rows as $row)
{{ $row->name ?? $row->title ?? ($row->asset->name ?? 'Mining reward') }}
{{ $row->symbol ?? ($row->rewardAsset->symbol ?? $row->asset->symbol ?? '') }}
@if($section === 'assets'){{ ucfirst($row->type) }}{{ $row->network ? ' · '.$row->network : '' }}@elseif($section === 'mining'){{ rtrim(rtrim($row->rate, '0'), '.') }} {{ $row->asset->symbol }} per {{ $row->rate_unit }}@elseif($section === 'methods'){{ ucfirst($row->type) }} · Minimum {{ rtrim(rtrim($row->minimum, '0'), '.') }}@elseif($section === 'tasks')Reward: {{ rtrim(rtrim($row->reward_amount, '0'), '.') }} {{ $row->rewardAsset->symbol }} · {{ str_replace('_', ' ', ucfirst($row->frequency)) }}@else{{ rtrim(rtrim($row->reward_amount, '0'), '.') }} {{ $row->asset->symbol }} per claim · {{ ucfirst($row->status) }}@endif
Edit
@empty@endforelse
@endsection