ldc-op-insta/resources/views/bo/partials/inputs/pivot-belongsToMany.blade.php
2023-04-21 14:49:53 +00:00

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,
])