resources/views/blogTranslations/edit.blade.php
@extends('laravel-smart-blog::blogTranslations.layout')
@section('content')
<div class="container max-w-md px-0">
<div class="row py-4">
<div class="col-12 col-sm-9">
<h4>@lang('views.edit_translation')</h4>
</div>
<div class="col-12 col-sm-3 text-right">
<span class="badge badge-secondary">{{$selectedLocaleName}}</span>
</div>
</div>
@include('laravel-smart-blog::partials.error-management', [
'style' => 'alert-danger',
])
<form action="{{ route('blogTranslations.update') }}" method="POST">
@csrf
@method('PUT')
@include('laravel-smart-blog::partials.input-hidden', [
'name' => 'blog_translation_id',
'value' => $blogTranslation->id
])
@include('laravel-smart-blog::partials.input-hidden', [
'name' => 'blog_id',
'value' => $blogId,
])
@include('laravel-smart-blog::partials.input-hidden', [
'name' => 'language_code',
'value' => $languageCode
])
<div class="row">
<div class="col-12">
@include('laravel-smart-blog::partials.input', [
'title' => 'Name',
'name' => 'name',
'placeholder' => 'Blog name',
'value' => $blogTranslation->name,
'required' => true,
])
</div>
<div class="col-12">
@include('laravel-smart-blog::partials.textarea', [
'title' => __('general.description'),
'name' => 'description',
'placeholder' => 'Description',
'value' => $blogTranslation->description,
'required' => false,
])
</div>
</div>
<div class="row mt-2">
<div class="col-12 action">
@include('laravel-smart-blog::partials.buttons-back-submit', [
'route' => 'blogs.index'
])
</form>
<form action="{{ route('blogTranslations.destroy',$blogTranslation->id) }}" method="POST">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-link pl-0">@lang('views.delete_translation')</button>
</form>
</div>
</div>
</div>
@endsection