16 lines
461 B
PHP
16 lines
461 B
PHP
@php
|
|
$data = [
|
|
'name' => $name,
|
|
'value' => old($name, $model->{$name} ?? []) ?? [],
|
|
'placeholder' => $placeholder,
|
|
'itemsList' => $itemsList,
|
|
'itemLimit' => $itemLimit ?? null,
|
|
'errors' => $errors->getBag('default')->getMessages() ?? []
|
|
];
|
|
@endphp
|
|
<div class="belongs-to-many-dropdown" data-json='@json($data)'></div>
|
|
@include('modules.input-error', [
|
|
'inputName' => $name,
|
|
'helperId' => "{$id}Help",
|
|
'helper' => $helper,
|
|
])
|