@extends('layouts.site') @section('title', 'Foto Saya · '.$event->bride_groom_names) @section('noindex', true) @section('content') @include('guest.partials.header', ['event' => $event, 'compact' => true])
← Kembali ke galeri @if ($uploadOpen) Ubah ucapan @endif

Foto Saya

Halo, {{ $guest->name }}. Foto di bawah ini hanya bisa dikelola dari perangkat ini.

@include('partials.flash')
{{-- Kuota --}}
Sisa kuota: {{ $remaining }} foto {{ $photos->count() }} / {{ $max }} terpakai
{{-- Foto yang sudah di-upload --}} @if ($photos->isNotEmpty())
@foreach ($photos as $photo)
@if ($photo->hasImage()) @php($v = $photo->updated_at?->timestamp) Foto saya @endif @if ($photo->isProcessing())
Sedang diproses…
@elseif ($photo->isFailed())
Foto gagal diproses. File mungkin rusak atau formatnya tidak didukung. Silakan ganti atau hapus.
@endif
@if ($uploadOpen)
@csrf @method('PUT')
@unless ($photo->isProcessing())
@csrf
@endunless
@csrf @method('DELETE')
@else

{{ $photo->caption ?: 'Tanpa caption' }}

@endif
@endforeach
@if ($photos->contains(fn ($p) => $p->isProcessing()))
Halaman akan diperbarui otomatis setelah foto selesai diproses.
@endif @endif {{-- Form upload --}} @if (! $uploadOpen)
Periode upload telah berakhir.
@elseif ($remaining > 0)
@csrf

Upload Foto

Pilih hingga {{ $remaining }} foto (JPG, PNG, WEBP{{ str_contains($accept, 'heic') ? ', HEIC' : '' }}, GIF). Foto otomatis dirapikan ukurannya.

@else
Kuota foto Anda sudah penuh. Anda masih bisa mengganti atau menghapus foto di atas.
@endif
@endsection