@extends('backend.layouts.app') @section('title', 'Add Photo') @push('styles') @endpush @section('content') @php $pageTitle = 'Add Photo'; $galleryId = request('gallery_id'); $mode = request('mode', ''); $selectedGallery = $galleryId ? $galleries->firstWhere('gallery_id', $galleryId) : null; $galleryTitle = $selectedGallery ? ($selectedGallery->translations->firstWhere('gallery_translation_main', 1)?->gallery_translation_title ?? $selectedGallery->translations->first()?->gallery_translation_title ?? 'Gallery #' . $selectedGallery->gallery_id) : null; $parentLabel = 'Photo Galleries'; if ($galleryId) { $parentRoute = 'content-photo-list.index'; $parentRouteParams = ['gallery_id' => $galleryId]; } else { $parentRoute = 'content-photo-gallery.index'; $parentRouteParams = []; } @endphp @include('backend.layouts.partials._page_header') @php $inputClass = 'dark:bg-dark-900 shadow-theme-xs focus:border-brand-300 focus:ring-brand-500/10 dark:focus:border-brand-800 h-11 w-full rounded-lg border border-gray-300 bg-transparent px-4 py-2.5 text-sm text-gray-800 placeholder:text-gray-400 focus:ring-3 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30'; @endphp
{{-- Single Upload --}}
@csrf @if ($galleryId) @endif
{{-- Translations --}}

Translations

@php $firstLang = array_key_first($languages->toArray()); @endphp
@foreach ($languages as $code => $descr)
@endforeach
@foreach ($languages as $code => $descr)
@error('translations.' . $code . '.descr')

{{ $message }}

@enderror
@endforeach
{{-- Photo Information --}}

Photo Information

@if ($galleryId && $selectedGallery)
{{ $galleryTitle }}
@else
@endif @error('photo_gallery_id')

{{ $message }}

@enderror
@error('photo_sort')

{{ $message }}

@enderror

Max 30MB · jpg, jpeg, png, webp

@error('photo_url')

{{ $message }}

@enderror
Cancel
{{-- Bulk Upload --}}
@endsection @push('scripts') @endpush