@extends('backend.layouts.app') @section('title', 'Edit Speech') @section('content') @php $pageTitle = 'Edit Speech'; $indexRoute = 'content-speech.index'; $indexLabel = 'Speeches'; @endphp @include('backend.layouts.partials._page_header')
@csrf @method('PUT')
@include('backend.module.contentSpeech._form')

Translations

Each translation is a separate record (parent → translation).

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->speech_language] ?? $translation->speech_language ?? "-" }} {{ $translation->speech_title ?? "-" }} @php $badge = match ($translation->speech_status) { 'PUBLISHED' => 'bg-success-50 text-success-600 dark:bg-success-500/10 dark:text-success-400', 'DRAFT' => 'bg-warning-50 text-warning-600 dark:bg-warning-500/10 dark:text-warning-400', default => 'bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-300', }; @endphp {{ $statuses[$translation->speech_status] ?? $translation->speech_status ?? "-" }}
@csrf @method("DELETE")
@endif
Cancel
@endsection @push("styles") @include("backend.layouts.partials._directory-select2-styles") @endpush @push("scripts") @endpush