File: /var/www/vhost/disk-apps/demo.sports-crowd.com/resources/views/photos_club/edit.blade.php
@extends('modules.head') @section('contenido')
<h3>
<a class="ruta" class="" href="{{ url('/photos') }}">{{ Lang::get('messages.photos_club.title') }} </a>
<span class="separador-ruta">|</span>
<a class="ruta" class="" href="{{ url('/photos/edit/' . $publication->id) }}">
{{ Lang::get('messages.photos_club.edit') }}
</a>
</h3>
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ Lang::get('messages.photos_club.edit') }}</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<form method="POST" id="form_edit" object_id="{{ $publication->id }}">
@method('PUT')
@include('photos_club.form')
@include('layouts.button_edit')
</form>
</div>
<!-- /.box-body -->
</div>
<script>
$(document).ready(function() {
var multiselectValues = <?php echo json_encode($multiselectValues); ?>;
var multiselectValuesId = [];
multiselectValues.forEach(function(valor, indice, array) {
multiselectValuesId.push(valor.tag_id);
});
$('.myclase').val(multiselectValuesId).change();
});
</script>
@endsection