@extends('layout.layout') {{-- Content --}} @section('content') @if(Request::is('admin/news/create')) @include('custom::component.reply-btn', ['url' => route('admin.news.index')]) @elseif(Request::is('admin/news/*/edit')) @include('custom::component.reply-btn', ['url' => route('admin.news.show', $news->id)]) @endif
{{csrf_field()}} {!! $form->render() !!}
@php $text = '新增' @endphp @if (isset($news)) @php $text = '儲存' @endphp @foreach ($news->attachments as $i => $attachment) @endforeach @endif
@endsection {{-- Script --}} @section('script') @parent @endsection