{{-- Progress update form with photos. Used by site managers (per assignment) and by staff (per order). --}} @php $progress = $progress ?? 0; $drafts = $drafts ?? collect(); $completeUrl = $completeUrl ?? null; $max = (int) config('erp.work.max_photos_per_update'); $draftData = $drafts->map(function ($p) { return ['id' => $p->id, 'thumb' => route('work-photos.show', [$p, 'thumb']), 'kb' => (int) round($p->bytes / 1024), 'has_location' => $p->hasLocation()]; })->values(); @endphp
@csrf @include('partials.error-summary')
Photos are stamped with the date, time and your location.
@if ($completeUrl)@endif
@if ($completeUrl)
Marking complete needs at least one photo of the finished work.
@endif