@stack($name . '_input_start')
@if (!empty($text)) {!! Form::label($name, $text, ['class' => 'form-control-label'])!!} @endif
$attachment->id, 'name' => $attachment->filename . '.' . $attachment->extension, 'path' => route('uploads.get', $attachment->id), 'type' => $attachment->mime_type, 'size' => $attachment->size, 'downloadPath' => route('uploads.download', $attachment->id), ]; @endphp @endforeach @elseif ($value instanceof \Plank\Mediable\Media) @php $attachments[] = [ 'id' => $attachment->id, 'name' => $value->filename . '.' . $value->extension, 'path' => route('uploads.get', $value->id), 'type' => $attachment->mime_type, 'size' => $attachment->size, 'downloadPath' => false, ]; @endphp @else @php $attachment = \Plank\Mediable\Media::find($value); $attachments[] = [ 'id' => $attachment->id, 'name' => $attachment->filename . '.' . $attachment->extension, 'path' => route('uploads.get', $attachment->id), 'type' => $attachment->mime_type, 'size' => $attachment->size, 'downloadPath' => false, ]; @endphp @endif :attachments="{{ json_encode($attachments) }}" @endif v-model="{{ !empty($attributes['v-model']) ? $attributes['v-model'] : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.'. $name : 'form.' . $name) }}" >
@stack($name . '_input_end')