@php $fieldId = 'upload_' . $field . '_' . uniqid(); $camId = 'cam_' . $field . '_' . uniqid(); $inputName = $multiple ? "{$field}[]" : $field; @endphp
{{-- Existing files --}} @if($existing->count())
@foreach($existing as $doc)
@if($doc->isImage()) @else @endif
{{ $doc->original_name }}
{{ number_format($doc->file_size / 1024, 0) }} KB
@endforeach
@endif {{-- Drop Zone --}}
Drag & drop atau pilih file
{{ $hint }}
{{-- Tombol Ambil Foto --}} {{-- Preview list file baru --}} @error($field)
{{ $message }}
@enderror {{-- ── Camera Modal (Full Screen) ──────────────────────── --}}
{{-- CAMERA VIEW --}}
{{-- Video fills entire screen --}} {{-- Loading overlay --}}
{{-- Header (absolute top) --}}
{{ $label }}
{{-- Controls (absolute bottom) --}}
{{-- REVIEW VIEW --}}
{{-- Preview image fills screen --}} {{-- Compression spinner (center) --}}
Mengompresi foto…
{{-- Header (absolute top) --}}
Pratinjau
{{-- Save panel (absolute bottom) --}}
Ukuran:
{{-- ERROR VIEW --}}

{{-- Hidden canvas for capture --}}