{{--
=====================================================
Etebarit - by Gisoo Web Solutions
------------------------------------------------------
Gisoo.net
------------------------------------------------------
Copyright (c) 2026 Gisoo Web Solutions
=====================================================
This code is protected by copyright
=====================================================
File: dashboard.blade.php
------------------------------------------------------
Use: The user panel landing: the virtual card, available
credit and cash, the next few installments and the
latest transactions. An order is only ever named by
its id and shop -- never by what was bought.
=====================================================
--}}
@extends('layouts.user')
@section('title', __('front.panel.dashboard'))
@php use App\Support\Format; @endphp
@section('page')
{{ __('front.dashboard.card_none') }}
@endif{{ __('front.standing.unlock_hint', [ 'points' => Format::persianDigits((string) $unlock['points_needed']), 'level' => $unlock['next_label'], ]) }}
{{ __('front.standing.no_suggestions') }}
@endunless @elseif ($commitment) {{-- Active commitment: a compact snapshot of the live plan --}} @php $paidPercent = $commitment['total'] > 0 ? (int) round($commitment['paid'] / $commitment['total'] * 100) : 0; @endphp@if ($commitment['unpaid'] > 0) {{ __('front.standing.commitment_points', ['points' => Format::persianDigits((string) $commitment['earnable_points'])]) }} @else {{ __('front.standing.commitment_points_done') }} @endif
{{ __('front.dashboard.no_upcoming') }}
@endforelse{{ __('front.dashboard.no_recent') }}
@endforelse