resources/views/postTranslations/create.blade.php
@extends('laravel-smart-blog::postTranslations.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.add_new_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('postTranslations.store') }}" method="POST">
@csrf
@include('laravel-smart-blog::partials.input-hidden', [
'name' => 'post_id',
'value' => $postId
])
@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' => 'Title',
'name' => 'title',
'placeholder' => 'Post title',
'value' => old('title'),
'required' => true,
])
</div>
<div class="col-12">
@include('laravel-smart-blog::partials.textarea-plain', [
'title' => __('views.before_post_contents'),
'name' => 'before_content',
'value' => old('before_content'),
'required' => false,
])
</div>
<div class="col-12">
@include('laravel-smart-blog::partials.textarea-post', [
'title' => 'Text',
'name' => 'body',
'placeholder' => 'Post text',
'value' => old('body'),
'required' => true,
])
</div>
<div class="col-12">
@include('laravel-smart-blog::partials.textarea-plain', [
'title' => __('views.after_post_contents'),
'name' => 'after_content',
'value' => old('after_content'),
'required' => false,
])
</div>
</div>
<div class="row mt-2">
<div class="col-12 action">
@include('laravel-smart-blog::partials.buttons-back-submit', [
'route' => 'posts.index'
])
</div>
</div>
</form>
</div>
@endsection