ldc-supportweb/resources/views/markers/labelField.blade.php
Jérémy Munsch 40c38fa7d6
Secure Front APP
- Remove external JS and CSS dependencies
- Use Vuejs runtime
- Add xss sanitizer
- Normalize Laravel mix + add cleaner
- Update npm deps
- Upgrade bootswatch theme
2022-05-23 17:41:14 +02:00

16 lines
478 B
PHP

<td>
<label class="form-label">{{ $prop['label'] }}</label>
</td>
<td>
@php
$dataVue = [
'name' => 'label',
'value' => old($fieldName, $model->{$fieldName} ?? $prop['default'] ?? ''),
'labels' => $markerLabels->mapWithKeys(function($value, $key) { return [$key => ['code' => $key, 'label' => $value]]; })
];
@endphp
<div
id="marker-label-select"
class="sticky-top"
data-json='@json($dataVue)'></div>
</td>