@extends('layouts.dashboard') @section('content') .row .col-md-12 .box .box-header.dark %h2 Actualizar información .box-body {!! Form::model($post,['route'=> ['blog.admin.entry.update',$post->id],"method"=>"PUT", 'enctype'=>'multipart/form-data']) !!} @include('blog::entry.fields') .dker.p-a.text-right .col-md-12 %a.btn.danger{:href=>"{{route('blog.admin.entry.index')}}", :style=>"margin-right:10px"} Cancelar {!! Form::submit('Actualizar información', ['class'=>'btn dark']) !!} {!! Form::close() !!} / .modal nuevo contrato #ver.modal.fade{"data-backdrop" => "true"} .modal-dialog.modal-lg .modal-content.box-shadow-z3 .modal-body.text-center.p-lg - if ($post->cover == null) %h4 No hay imagen asignada - else %img.image-modal-preview{"src"=> "{{asset('storage/'.$post->cover)}}"} .modal-footer %button.btn.dark.p-x-md{"data-dismiss" => "modal", :type => "button"} Cerrar - if ($post->cover != null) {!! Form::open(['route'=> ['delete.cover.entry',$post->id],'method'=>'DELETE'])!!} %button.btn.btn-danger.button-mb{:onclick => "return confirm('¿Estás seguro de eliminar este elemento?');", :type => "submit"} %i.fas.fa-trash-alt.icon-special-size Eliminar {!! Form::close()!!} / /.modal-content @endsection @section('script_extras') %script{:src => "https://cdn.ckeditor.com/4.8.0/standard/ckeditor.js"} :javascript CKEDITOR.replace('body'); $('#tags').select2(); $("#publication_date").datepicker({ dateFormat: "yy-mm-dd" }); @endsection