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