@extends('layouts.' . (request()->ajax() ? 'ajax' : 'app'), [ 'title' => trans('relations.edit.title', ['name' => $model->name]), 'description' => '', 'breadcrumbs' => [ ['url' => route($parent . '.index'), 'label' => trans($parent . '.index.title')], ['url' => route($parent . '.show', $model->id), 'label' => $model->name], trans('crud.tabs.relations'), trans('crud.update'), ] ]) @section('content')
@if ($ajax)

{{ __('relations.edit.title', ['name' => $model->name]) }}

@endif
@include('cruds.forms._errors') {!! Form::model($relation, ['method' => 'PATCH', 'route' => [$route . '.update', $model->id, $relation->id], 'data-shortcut' => 1, 'id' => 'relation-form' ]) !!} @include('cruds.relations._form') {!! Form::hidden('owner_id', $model->entity->id) !!}
@if (!$ajax){!! trans('crud.or_cancel', ['url' => (!empty($cancel) ? $cancel : url()->previous() . (strpos(url()->previous(), '#relation') === false ? '#relation' : null))]) !!}@endif
{!! Form::close() !!}
@endsection