EVOLUTION-MANAGER
Edit File: index.blade.php
@extends('layouts.backend') @section('ruta') Gertor CMS FIXSYSTEM @stop @section('titulo') GALERIA @stop @section('contenido') @include('alerts.errors') @include('alerts.success') @include('alerts.request') <div class="wrapper wrapper-content animated fadeInRight"> {{-- {!! Form::open(['route'=>'postimagen', 'method' => 'POST','files'=>'true']) !!} --}} <input type="hidden" name="_token" value="{{ csrf_token() }}"> <div class="form-group"> {!! Form::label('archivos', 'Galeria :') !!} <input id="fotos" type="file" name="fotos[]" multiple> </div> {{-- {!!Form::submit('Guardar',['class'=>'btn btn-primary'])!!} {!! Form::close() !!} --}} </div> @stop @section('script') <script type="text/javascript"> $(document).ready(function() { $(".inline").colorbox(); $('#fotos').fileinput({ language:"es", 'theme': 'explorer', showUpload:false, uploadUrl:"{{ URL::asset('subirfoto')}}", MinFileCount: 1, MaxFileCount: 5, overwriteInitial: false, initialPreviewAsData: true, initialPreview: [ @if(count($fotos_adicionales)) @foreach ($fotos_adicionales as $fota) "{{asset($fota->path)}}", @endforeach @endif ], initialPreviewConfig: [ @if(count($fotos_adicionales)) @foreach ($fotos_adicionales as $fota) {caption: "{{ $fota->titulo }} ", size: 329892, width: "120px", url: "{{ URL::asset('borrarfoto')}}", key: "{{$fota->id}}"}, @endforeach @endif ] }); }); </script> @endsection