@if(!$trainerFound)
PT profiliniz bulunamadı. Lütfen salon yöneticinizle iletişime geçin.
@else
{{-- Özet Kartları --}}

Çekilebilir Bakiye

{{ number_format($availableBalance, 2) }} ₺

@if($availableBalance >= 100) @endif

Bekleyen Talep

{{ number_format($pendingBalance, 2) }} ₺

Toplam Kazanç

{{ number_format($totalEarned, 2) }} ₺

{{-- Engellenen Günler --}}
Tatil / Engellenen Günler
@if($blockedDatesMessage)
{{ $blockedDatesMessage }}
@endif @if($showBlockedDatesForm)
@endif @if($trainer && $trainer->blockedDates->count())
@foreach($trainer->blockedDates->sortBy('blocked_date') as $bd) @endforeach
TarihNeden
{{ $bd->blocked_date->format('d.m.Y') }} {{ $bd->reason ?? '—' }}
@else

Engellenen gün yok.

@endif
{{-- IBAN Bilgileri --}}
Ödeme Bilgileri
@if($ibanMessage)
{{ $ibanMessage }}
@endif @if($showIbanForm)
@error('iban')
{{ $message }}
@enderror
@error('bankName')
{{ $message }}
@enderror
@error('accountName')
{{ $message }}
@enderror
@else @if($iban)
IBAN: {{ $iban }} Banka: {{ $bankName }} Hesap Adı: {{ $accountName }}
@else

Para çekme talebi oluşturabilmek için IBAN bilgilerinizi ekleyin.

@endif @endif
{{-- Para Çekme --}} @if($withdrawMessage)
{{ $withdrawMessage }}
@endif @if($showWithdrawForm)
Para Çekme Talebi
@error('withdrawAmount')
{{ $message }}
@enderror
@endif {{-- Müsaitlik Programı --}}
Müsaitlik Programı
@if($availabilityMessage)
{{ $availabilityMessage }}
@endif @if($showAvailabilityForm) @php $dayNames = \App\Models\PtAvailability::$dayNames; @endphp
@foreach($availabilities as $day => $data)
@if(!empty($data['enabled'])) @foreach($data['ranges'] as $idx => $range)
@if(count($data['ranges']) > 1) @endif
@endforeach
@endif
@endforeach
@else @php $dayNames = \App\Models\PtAvailability::$dayNames; $activedays = collect($availabilities)->filter(fn($d) => $d['enabled']); @endphp @if($activedays->isEmpty())

Henüz müsaitlik programı tanımlanmamış. Düzenle'ye tıklayın.

@else
@foreach($activedays as $day => $data)
{{ $dayNames[$day] }}
@foreach($data['ranges'] as $range)
{{ $range['start'] }}–{{ $range['end'] }}
@endforeach
@endforeach
@endif @endif
{{-- Conflict Modal --}} @if(!empty($conflictSlots)) @endif {{-- Yaklaşan Randevular --}}
Yaklaşan Randevular
{{ count($upcomingBookings) }}
@forelse($upcomingBookings as $booking)
{{ $booking->user?->name }}
{{ $booking->total_hours }} saat • {{ number_format($booking->pt_earning_amount, 2) }} ₺
@foreach($booking->slots->sortBy('slot_date') as $slot) {{ $slot->slot_date->format('d.m') }} {{ substr($slot->slot_start_time,0,5) }} @endforeach
@empty
Yaklaşan randevu yok.
@endforelse
{{-- Geçmiş Randevular --}}
Geçmiş Randevular
@forelse($pastBookings as $booking)
{{ $booking->user?->name }}
{{ $booking->slots->first()?->slot_date?->format('d.m.Y') }} • {{ $booking->total_hours }} saat • {{ number_format($booking->pt_earning_amount, 2) }} ₺
@empty
Geçmiş randevu yok.
@endforelse
@if($pastBookings->hasPages()) @endif
{{-- Takvim --}}
Müsaitlik Takvimi
{{ \Carbon\Carbon::createFromFormat('Y-m', $calendarMonth)->locale('tr')->isoFormat('MMMM YYYY') }}
@if(empty($calendar))

Bu ay için müsaitlik programı tanımlanmamış.

@else
@foreach($calendar as $date => $slots) @php $dayCarbon = \Carbon\Carbon::parse($date); $hasBooked = collect($slots)->contains('available', false); $allBooked = collect($slots)->every(fn($s) => !$s['available']); @endphp
{{ $dayCarbon->format('d.m') }}
{{ $dayCarbon->locale('tr')->dayName }}
@foreach($slots as $slot) @if($slot['available']) {{ $slot['start'] }} @else {{ $slot['start'] }} @if($slot['customer']) · {{ explode(' ', $slot['customer'])[0] }} @endif @endif @endforeach
@endforeach
09:00 Müsait 09:00 · Ali Dolu (müşteri adı)
@endif
@endif {{-- Randevu Detay Modal --}} @if($detailBooking) @endif