{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: index.blade.php ------------------------------------------------------ Use: The user's profile: identity summary + stats, the read-only verified identity with a save-once birth date, and the editable contact email. ===================================================== --}} @extends('layouts.user') @section('title', __('front.profile.title')) @php use App\Support\Format; @endphp @section('breadcrumb') @endsection @section('page') @php $status = $user->verification_status; $badge = match ($status) { \App\Models\User::VERIFICATION_APPROVED => 'bg-[#e7f7ee] text-green-600', \App\Models\User::VERIFICATION_PENDING => 'bg-[#fff5e6] text-amber-600', default => 'bg-secondary-50 text-secondary-500', }; $currentJy = (int) \Morilog\Jalali\Jalalian::now()->getYear(); @endphp

{{ __('front.profile.title') }}

{{ __('front.profile.subtitle') }}

{{-- ===== Profile card ===== --}}
{{ mb_substr($user->first_name, 0, 1) }}.{{ mb_substr($user->last_name, 0, 1) }}
{{ $user->fullName() }}
{{ Format::persianDigits($user->mobile) }}
@if ($status === \App\Models\User::VERIFICATION_APPROVED) @endif {{ __('front.profile.status.'.$status) }}
{{ __('front.profile.member_since') }} {{ Format::persianDigits(Format::jalali($user->created_at, 'F Y')) }}
{{ __('front.profile.ceiling') }} @toman($ceiling)
{{ __('front.profile.available') }} @toman($available)
{{-- ===== Edit column ===== --}}
{{-- Identity (read-only + save-once birth date) --}}
@csrf @method('PUT')
{{ __('front.profile.identity_title') }}
@if ($user->birth_date !== null) @else
@endif
{{ __('front.profile.identity_note') }}
{{-- Save: the birth date is the only identity field that can be set here, and only while it is still empty. --}} @if ($user->birth_date === null)
@endif
{{-- Contact (read-only; each value changes through a verified modal) --}}
{{ __('front.profile.contact_title') }}

{{ __('front.profile.mobile_note') }}

{{ __('front.profile.email_note') }}

{{-- ===== Contact-change modal (mobile / email, two steps) ===== --}}
@endsection