@extends('layouts.horizontalLayout')
@section('title', 'Upload Event Photos')
@section('vendor-style')
@endsection
@section('vendor-script')
@endsection
@section('page-script')
@endsection
@section('content')
Upload Photos for Event: {{ $event->event_name }}
{{-- Success message --}}
@if(session('upload_success'))
{{ session('upload_success') }}
@endif
{{-- Face Detection Results --}}
@if(isset($detections) && $detections->count())
Face Detection Results:
@foreach($detections as $detect)
{{ $detect->filename }} -
Faces found:
{{ is_array($detect->face_details_json) ? count($detect->face_details_json) : (is_array(json_decode($detect->face_details_json, true)) ? count(json_decode($detect->face_details_json, true)) : 0) }}
@if(isset($detect->face_details_json['error']) || (is_array($detect->face_details_json) && isset($detect->face_details_json['error'])))
(error: {{ is_array($detect->face_details_json) ? $detect->face_details_json['error'] : json_decode($detect->face_details_json, true)['error'] }})
@endif
@endforeach
@endif
@endsection