{{-- resources/views/groups/form.blade.php --}} @extends('layouts.app') @section('css') @endsection @section('js') @endsection @push('pageTitle') {{ isset($postCategory) && isset($readonly) && $readonly ? __('labels.view_post_category') : (isset($postCategory) ? __('labels.edit_post_category') : __('labels.create_post_category')) }} @endpush @section('content') @include('components.common.page-header', [ 'pageTitle' => isset($postCategory) && isset($readonly) && $readonly ? __('labels.view_post_category') : (isset($postCategory) ? __('labels.edit_post_category') : __('labels.create_post_category')), 'actionButton' => [ 'url' => route('post-categories.index'), 'text' => __('labels.back_to_post_categories'), ], ]) @include('components.common.flush-message') @include('components.common.validation-errors')
@csrf @if(isset($postCategory)) @method('PUT') @endif
{{-- Title --}}
@error('title')
{{ $message }}
@enderror
{{-- Description --}}
@error('description')
{{ $message }}
@enderror
@include('components.form.author-name', [ 'readonly' => isset($readonly) && $readonly ? 1 : 0, 'authorName' => old('author_name', isset($postCategory->author_name) && $postCategory->author_name ? $postCategory->author_name : auth()->user()->name), ])
is_active ?? true))>
@error('is_active')
{{ $message }}
@enderror
@if(!isset($readonly) || (isset($readonly) && !$readonly))
{{ __('labels.cancel') }}
@endif
@endsection