29 lines
951 B
PHP
29 lines
951 B
PHP
|
@extends('layout.master')
|
||
|
|
||
|
@section('content')
|
||
|
@include('admin.partials.breadcrumb', ['subPage'=>'Создать', 'page'=>'Новости', 'pageUrl'=>route('admin.posts.index')])
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-12">
|
||
|
<div class="card">
|
||
|
<div class="card-body">
|
||
|
<h6 class="card-title">Создание новости</h6>
|
||
|
<form action="{{ route('admin.posts.store') }}" method="POST" enctype="multipart/form-data" class="forms-sample">
|
||
|
@csrf
|
||
|
@include('admin.posts._form')
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|
||
|
|
||
|
@push('custom-scripts')
|
||
|
<script src="{{ asset('assets/plugins/ckeditor/ckeditor.js') }}"></script>
|
||
|
<script>
|
||
|
CKEDITOR.replace('body', {
|
||
|
filebrowserUploadUrl: "{{ route('admin.post.storeImage', ['_token' => csrf_token() ]) }}",
|
||
|
filebrowserUploadMethod: 'form'
|
||
|
});
|
||
|
</script>
|
||
|
@endpush
|