This commit is contained in:
ak-piracha 2023-05-29 14:07:53 +09:30
parent 60d2046b6d
commit 825a9a384d

View file

@ -71,11 +71,14 @@
@section('moar_scripts')
<!-- bootstrap color picker -->
<?php
$color = request()->old('color', $item->color) ? request()->old('color', $item->color) : '#AA3399';
?>
<script nonce="{{ csrf_token() }}">
$(function() {
$('.color').colorpicker({
color: '#AA3399',
color: '{{ $color }}',
format: 'hex'
});
});