@extends('layouts.' . ($ajax ? 'ajax' : 'app'), [ 'title' => trans('calendars.event.create.title', ['name' => $calendar->name]), 'description' => trans('calendars.event.create.description'), 'breadcrumbs' => [ ['url' => route('calendars.index'), 'label' => trans('calendars.index.title')], ['url' => route('calendars.show', $calendar->id), 'label' => $calendar->name], trans('crud.tabs.events'), ] ]) @section('content')
@include('partials.errors') {!! Form::open(array('route' => ['calendars.event.store', $calendar->id], 'method'=>'POST', 'data-shortcut' => "1")) !!} @include('calendars.events._form')
@if (!$ajax) {!! trans('crud.or_cancel', ['url' => (!empty($cancel) ? $cancel : url()->previous() . (strpos(url()->previous(), '#relation') === false ? '#relation' : null))]) !!} @endif
{!! Form::close() !!}
@endsection