resources/views/columnGroupTranslations/edit.blade.php
@extends('laravel-columns::columnGroups.layout')
@section('content')
<div class="row py-4">
<div class="col-12 col-sm-9">
<h4>Edit column translation</h4>
</div>
<div class="col-12 col-sm-3 text-right">
<span class="badge badge-secondary">{{$selectedLocaleName}}</span>
</div>
</div>
@include('laravel-form-partials::error-management', [
'style' => 'alert-danger',
])
<form action="{{ route('columnGroupTranslations.update', $columnGroupTranslation->id) }}" method="POST">
@csrf
@method('PUT')
@include('laravel-form-partials::input-hidden', [
'name' => 'column_group_translation_id',
'value' => $columnGroupTranslation->id,
])
@include('laravel-form-partials::input-hidden', [
'name' => 'column_group_id',
'value' => $columnGroupId,
])
@include('laravel-form-partials::input-hidden', [
'name' => 'language_code',
'value' => $languageCode
])
<div class="row">
<div class="col-12">
@include('laravel-form-partials::input', [
'title' => 'Title',
'name' => 'title',
'placeholder' => '',
'value' => $columnGroupTranslation->title,
'required' => true,
])
</div>
<div class="col-12">
@include('laravel-form-partials::textarea-plain', [
'title' => 'Description',
'name' => 'description',
'value' => $columnGroupTranslation->description,
'required' => true,
])
</div>
<div class="col-12">
@include('laravel-form-partials::input', [
'title' => 'Button text',
'name' => 'button_text',
'placeholder' => '',
'value' => $columnGroupTranslation->button_text,
'required' => true,
])
</div>
<div class="col-12">
@include('laravel-form-partials::input', [
'title' => 'Image alt',
'name' => 'image_alt',
'placeholder' => '',
'value' => $columnGroupTranslation->image_alt,
'required' => true,
])
</div>
</div>
<div class="row mt-2">
<div class="col-12 action">
@include('laravel-form-partials::buttons-back-submit', [
'route' => 'columns.index'
])
</form>
<form action="{{ route('columnGroupTranslations.destroy',$columnGroupTranslation->id) }}" method="POST">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-link pl-0">Delete translation</button>
</form>
</div>
</div>
@endsection