@if (!($hideHeader ?? false))

{{ __('Profile Photos') }}

@if(($profile?->profile_type ?? 'self') !== 'self')

{{ __('Add a photo of yourself — this is who others will connect with.') }}

@endif

{{ __('1 primary photo and up to 4 extra photos.') }} @if (! $photos->where('is_primary', true)->first()) — {{ __('At least 1 photo is required to make your profile visible.') }} @endif

@endif @if (!($hideContactWarning ?? false))

{{ __('Photos containing contact details are not allowed and will be removed.') }}

@endif
@php $primary = $photos->firstWhere('is_primary', true); $extras = $photos->where('is_primary', false)->values(); @endphp
{{-- Primary photo --}}

{{ __('Primary photo') }}

@if ($primary)
{{ __('Primary photo') }} {{-- Edit (pencil) button --}}
@else @if ($photos->count() === 0)
@endif @endif @if (! $primary)
@csrf
@endif
{{-- Extra photos --}}

{{ __('Extra photos') }} ({{ $extras->count() }}/4)

@foreach ($extras as $photo)
{{ __('Photo') }} {{-- Edit (pencil) button --}}
@endforeach @if ($extras->count() < 4)
@csrf
@endif
{{-- Edit modal — Outer div scrolls (overflow-y-auto + items-start) so Apply is always reachable. The inner card has NO overflow so Cropper.js can measure layout correctly. --}}