@extends('backend.layouts.app') @section('title', 'Edit Image') @section('content') @php $pageTitle = 'Edit Image'; $indexRoute = 'content-image.index'; $indexLabel = 'Images'; @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
@csrf @method('PUT')

Image Information

@error('image_title')

{{ $message }}

@enderror
@error('image_language')

{{ $message }}

@enderror
@error('image_cat')

{{ $message }}

@enderror
@error('image_type')

{{ $message }}

@enderror
@error('image_status')

{{ $message }}

@enderror
@error('image_sort')

{{ $message }}

@enderror
@error('image_url')

{{ $message }}

@enderror
@if($image->image_file)
Current Image

Current file: {{ basename($image->image_file) }}

@endif @error('image_file')

{{ $message }}

@enderror
@if ($image->image_main === '1' || $image->image_main === 1)

Translations

Add Translation
@if ($translations->isEmpty())
No translations yet. Click "Add Translation" to create one.
@else @foreach ($translations as $translation) @endforeach
Language Title Status Actions
{{ $languages[$translation->image_language] ?? $translation->image_language ?? '-' }} {{ $translation->image_title ?? '-' }} {{ $statuses[$translation->image_status] ?? $translation->image_status ?? '-' }}
@csrf @method('DELETE')
@endif
@endif
Cancel
@endsection @push('scripts') @endpush