This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ajax = (url, data, success, error, method) => { | |
var params = typeof data == 'string' ? data : Object.keys(data).map( | |
k => encodeURIComponent(k) + '=' + encodeURIComponent(data[k]) | |
).join('&'); | |
if(method === undefined) | |
method = "POST"; | |
var xhr = new XMLHttpRequest(); | |
xhr.open(method, url); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Table Structure | |
-- | |
CREATE TABLE `territories` ( | |
`id` varchar(6) COLLATE utf8mb4_unicode_ci NOT NULL, | |
`name` varchar(127) COLLATE utf8mb4_unicode_ci NOT NULL, | |
`level` enum('1','2','3') COLLATE utf8mb4_unicode_ci NOT NULL, | |
`parent_id` varchar(6) COLLATE utf8mb4_unicode_ci DEFAULT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if($field['value'] == "") | |
return; | |
$crud->route = $field['route']; | |
?> | |
<div @include('crud::inc.field_wrapper_attributes') > | |
<h3 style="margin-top:0">{!! $field['label'] !!}</h3> | |
<div class="array-container form-group"> |
OlderNewer