edit.blade.php 1.25 KB
@extends('layout.admin', ['title' => 'Редактирование новости'])

@section('content')
    <section class="favorites">
        <div class="favorites-top">
            <div class="container">
                <div class="breadcrumbs">
                    <ul class="breadcrumbs__list">
                        <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('user.index') }}">Главная</a></li>
                        <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="{{ route('admin.news.index') }}">Новости </a></li>
                        <li class="breadcrumbs__item"><span class="breadcrumbs__link">Редактирование новости </span></li>
                    </ul>
                </div>
                <h1 class="favorites__title title-main">Редактирование новости</h1>
            </div>
        </div>
        <div class="favorites-cnt">
            <div class="container">
                <form method="post" enctype="multipart/form-data" action="{{ route('admin.news.update', ['news' => $news->id])}}" style="width:100%">
                    @include('admin.news.form')
                </form>
            </div>
        </div>
    </section>
@endsection