@if(!defined('LOAD_COLOR'))
    @push('scripts')
    	<script src="{{ asset('/assets/plugins/jquery-minicolors/jquery.minicolors.min.js') }}"></script>  

    	<script>
    		function initColor(sel) {
                var selector = (typeof(sel) == 'undefined') ? '.color' : sel;  
                var settings = {
                    position: 'bottom left',
                    theme: 'bootstrap'
                };
    			$(selector).minicolors(settings);
    		}
    	</script>

    @endpush

    @push('css')
    	<link rel="stylesheet" href="{{ asset('/assets/plugins/jquery-minicolors/jquery.minicolors.css') }}">  
    @endpush
    @php(define('LOAD_COLOR', true))
@endif