@extends('Dashboard::layouts.dashboard')
@section('content')
<div class="d-sm-flex align-items-center justify-content-between mb-4">
    {!! Breadcrumbs::render(request()->route()->getName(), $element) !!}
    <div>
        <a href="{{ route('admin.dynamic-content', ['seccion' => $section]) }}" class="d-none d-sm-inline-block btn btn-sm btn-warning shadow-sm">
            <i class="fas fa-step-backward fa-sm text-white-50"></i>
            Volver Atras
        </a>
    </div>
</div>
<x-dashboard-messages/>
<dynamic-content-form
    form-name="Añadir"
    url-data="{{ route('admin.dynamic-content.data', ['seccion' => $section, 'id' => $id]) }}"
    url-back="{{ route('admin.content', ['seccion' => $section]) }}"
    url-action="{{ route('admin.dynamic-content.update', ['id' => $element->id]) }}"
></dynamic-content-form>
@endsection
