@extends('layouts.app') @section('page-title', $edit ? __('Update Announcement') : __('New Announcement')) @section('page-heading', $edit ? __('Update Announcement') : __('New Announcement')) @section('breadcrumbs') @stop @section('content') @include('partials.messages') @if ($edit) {!! Form::open(['route' => ['announcements.update', $announcement], 'id' => 'announcement-form', 'method' => 'PUT']) !!} @else {!! Form::open(['route' => 'announcements.store', 'id' => 'announcement-form']) !!} @endif
{{ $edit ? __('Update Announcement') : __('Create an Announcement') }}
@if (! $edit)
@endif
{!! Form::close() !!} @stop @section('scripts') {!! JsValidator::formRequest(\Vanguard\Announcements\Http\Requests\AnnouncementRequest::class, '#announcement-form') !!} @stop