@extends('frontend.main_master') @section('body-class', 'panel-page panel-scrollable') @section('title', t('balance') . ' - ' . t('site-title')) @push('styles') @endpush @section('content')
{{ t('no-usage-data') }}
{{ t('no-recent-purchases') }}
| {{ t('date') }} | {{ t('product') }} | {{ t('type') }} | {{ t('amount') }} |
|---|---|---|---|
| {{ $purchase->created_at?->format('d.m.Y H:i') }} | @if ($purchase->package) {{ $purchase->package->name }} @else @php $labelMap = [ 'subscription' => t('subscription-purchase'), 'single_comment' => t('single-comment'), 'single_chat' => t('single-chat'), 'single_report' => t('single-report'), 'single_comment_tokens' => t('single-comment-tokens'), ]; @endphp {{ $labelMap[$purchase->purchase_type] ?? ucfirst($purchase->purchase_type) }} @endif | @switch($purchase->purchase_type) @case('package') {{ t('packages') }} @break @case('subscription') {{ t('subscriptions') }} @break @case('single_comment') {{ t('single-comment') }} @break @case('single_chat') {{ t('single-chat') }} @break @case('single_report') {{ t('single-report') }} @break @case('single_comment_tokens') {{ t('single-comment-tokens') }} @break @default {{ $purchase->purchase_type }} @endswitch | {{ number_format($purchase->amount_paid, 2) }} {{ t('currency') }} |
{{ t('no-recent-gifts') }}
| {{ t('date') }} | {{ t('gift') }} | {{ t('validity') }} |
|---|---|---|
| {{ optional($gift->date)->format('d.m.Y H:i') }} | {{ $gift->label }} | {{ optional($gift->valid_from)->format('d.m.Y') }} - {{ optional($gift->valid_to)->format('d.m.Y') }} |