if (!function_exists('vendor_asset')) {
function vendor_asset($path)
{
+ $path = trim($path, '/');
+ $dest = public_path($path);
+
+ $e = explode('/', $path);
+ array_splice($e, 3, 0, ['public']);
+ $local = base_path(implode('/', $e));
+
+ if (!file_exists($local)) {
+ array_splice($e, 3, 0, ['src']);
+ $local = base_path(implode('/', $e));
+ }
+
+ if (!file_exists($dest) || filemtime($local) > filemtime($dest) || filesize($local) != filesize($dest)) {
+ copy($local, $dest);
+ }
+
return asset($path);
}
}
--- /dev/null
+.bunchmultiple .bunchmultiple__wrapper {
+ padding: 15px;
+ border: 1px solid #eee;
+ background: #fafafa;
+ margin-bottom: 15px;
+}
+.bunchmultiple .bunchmultiple__wrapper > .form-group {
+ padding: 0;
+}
+.bunchmultiple .bunchmultiple__wrapper > .form-group > label {
+ font-size: 1.2em;
+ margin-bottom: 24px;
+}
+.bunchmultiple .bunchmultiple__wrapper .sample {
+ display: none;
+}
+/*# sourceMappingURL=bunchmultiple.css.map */
\ No newline at end of file
--- /dev/null
+{"version":3,"sources":["bunchmultiple.less"],"names":[],"mappings":"AAAA,cACI;EACI,aAAA;EACA,sBAAA;EACA,mBAAA;EACA,mBAAA;;AALR,cACI,wBAMI;EACI,UAAA;;AARZ,cACI,wBAMI,cAGI;EACI,gBAAA;EACA,mBAAA;;AAZhB,cACI,wBAeI;EACI,aAAA","file":"bunchmultiple.css"}
\ No newline at end of file
{{-- FIELD CSS - will be loaded in the after_styles section --}}
@push('crud_fields_styles')
- <link rel="stylesheet" type="text/css" href="{{ vendorasset('vendor/cubist/backpack/bunchmultiple.css') }}">
+ <link rel="stylesheet" type="text/css" href="{{ vendor_asset('vendor/cubist/backpack/bunchmultiple/bunchmultiple.css') }}">
@endpush
{{-- FIELD JS - will be loaded in the after_scripts section --}}
@push('crud_fields_scripts')
- <script type="text/javascript" src="{{ vendorasset('vendor/cubist/backpack/bunchmultiple.js') }}"></script>
+ <script type="text/javascript" src="{{ vendor_asset('vendor/cubist/backpack/bunchmultiple/bunchmultiple.js') }}"></script>
@endpush
@endif