@extends('layouts.site') @section('title', 'Hesabım — Kolay Abonelik') @section('content') @php $steps = [ 'new' => 'Başvuru Alındı', 'contacted' => 'İletişime Geçildi', 'assigned' => 'Bayiye Yönlendirildi', 'converted' => 'Abone Oldunuz', ]; $stepKeys = array_keys($steps); $initials = collect(explode(' ', $customer->name))->map(fn ($p) => mb_substr($p, 0, 1))->take(2)->implode(''); $active = request('tab', 'basvurular'); @endphp
{{-- Sol menü --}} {{-- İçerik --}}
@if ($active === 'sifre')

Şifremi Değiştir

@if (session('password_success'))
{{ session('password_success') }}
@endif
@csrf
@error('current_password')

{{ $message }}

@enderror @error('password')

{{ $message }}

@enderror
@else

Merhaba, {{ $customer->name }} 👋

Başvurularınızın güncel durumunu buradan takip edebilirsiniz.

@forelse ($applications as $application)

{{ $application->package?->name }}

{{ $application->package?->company?->name }} — {{ $application->created_at->format('d.m.Y') }}

@if ($application->status === 'rejected')
Başvurunuz reddedildi.
@else @php $currentIndex = array_search($application->status, $stepKeys); @endphp
@foreach ($steps as $key => $label) @php $reached = $currentIndex !== false && $loop->index <= $currentIndex; @endphp
{{ $loop->iteration }}

{{ $label }}

@if (! $loop->last) @php $nextReached = $currentIndex !== false && ($loop->index + 1) <= $currentIndex; @endphp
@endif @endforeach
@endif @if ($application->status === 'converted' && $application->subscription_id)

🎉 Tebrikler, aboneliğiniz oluşturuldu.

@endif
@empty
Henüz bir başvurunuz yok. Paketlere göz atıp başvurun →
@endforelse
@endif
@endsection