@include('partials.errors')
@if (!empty($model))
{!! Form::model(
$model,
[
'method' => 'PATCH',
'route' => ['campaign_dashboard_widgets.update', $model],
'data-shortcut' => '1'
]
) !!}
@else
{!! Form::open([
'route' => ['campaign_dashboard_widgets.store'],
'method'=>'POST',
'data-shortcut' => '1'
]) !!}
@endif
{{ csrf_field() }}
@include('dashboard.widgets.forms._' . $widget)
{!! Form::close() !!}
@if (!empty($model))
{!! Form::open(['method' => 'DELETE','route' => ['campaign_dashboard_widgets.destroy', $model], 'class' => 'form-inline']) !!}
{!! Form::close() !!}
@endif