@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | //Loading Assets |
4 | 4 | $asset_already = []; |
5 | -foreach($forms as $form) { |
|
5 | +foreach ($forms as $form) { |
|
6 | 6 | $type = @$form['type'] ?: 'text'; |
7 | 7 | $name = $form['name']; |
8 | 8 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | //Loading input components |
22 | 22 | $header_group_class = ""; |
23 | -foreach($forms as $index=>$form) { |
|
23 | +foreach ($forms as $index=>$form) { |
|
24 | 24 | |
25 | 25 | $name = $form['name']; |
26 | 26 | @$join = $form['join']; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | @$value = (isset($row->{$name})) ? $row->{$name} : $value; |
29 | 29 | |
30 | 30 | $old = old($name); |
31 | -$value = (! empty($old)) ? $old : $value; |
|
31 | +$value = (!empty($old)) ? $old : $value; |
|
32 | 32 | |
33 | 33 | $validation = array(); |
34 | 34 | $validation_raw = isset($form['validation']) ? explode('|', $form['validation']) : array(); |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | //Loading Assets |
3 | 3 | $asset_already = []; |
4 | -foreach($forms as $form) { |
|
4 | +foreach ($forms as $form) { |
|
5 | 5 | $type = @$form['type'] ?: 'text'; |
6 | 6 | |
7 | 7 | if (in_array($type, $asset_already)) continue; |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | <table id='table-detail' class='table table-striped'> |
31 | 31 | |
32 | 32 | <?php |
33 | - foreach($forms as $index=>$form): |
|
33 | + foreach ($forms as $index=>$form): |
|
34 | 34 | |
35 | 35 | $name = $form['name']; |
36 | 36 | @$join = $form['join']; |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ?> |
78 | 78 | |
79 | 79 | @if(file_exists($file_location)) |
80 | - <?php $containTR = (substr(trim(file_get_contents($file_location)), 0, 4) == '<tr>') ? TRUE : FALSE;?> |
|
80 | + <?php $containTR = (substr(trim(file_get_contents($file_location)), 0, 4) == '<tr>') ? TRUE : FALSE; ?> |
|
81 | 81 | @if($containTR) |
82 | 82 | @include('crudbooster::default.type_components.'.$type.'.component_detail') |
83 | 83 | @else |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | </tr> |
88 | 88 | @endif |
89 | 89 | @elseif(file_exists($user_location)) |
90 | - <?php $containTR = (substr(trim(file_get_contents($user_location)), 0, 4) == '<tr>') ? TRUE : FALSE;?> |
|
90 | + <?php $containTR = (substr(trim(file_get_contents($user_location)), 0, 4) == '<tr>') ? TRUE : FALSE; ?> |
|
91 | 91 | @if($containTR) |
92 | 92 | @include('vendor.crudbooster.type_components.'.$type.'.component_detail') |
93 | 93 | @else |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | @endif |
102 | 102 | |
103 | 103 | |
104 | - <?php endforeach;?> |
|
104 | + <?php endforeach; ?> |
|
105 | 105 | |
106 | 106 | </table> |
107 | 107 | </div> |
108 | 108 | \ No newline at end of file |
@@ -51,12 +51,12 @@ discard block |
||
51 | 51 | <table id='table_dashboard' class="table table-hover table-striped table-bordered"> |
52 | 52 | <thead> |
53 | 53 | <tr class="active"> |
54 | - <?php if($button_bulk_action):?> |
|
54 | + <?php if ($button_bulk_action):?> |
|
55 | 55 | <th width='3%'><input type='checkbox' id='checkall'/></th> |
56 | - <?php endif;?> |
|
57 | - <?php if($show_numbering):?> |
|
56 | + <?php endif; ?> |
|
57 | + <?php if ($show_numbering):?> |
|
58 | 58 | <th width="1%">{{ trans('crudbooster.no') }}</th> |
59 | - <?php endif;?> |
|
59 | + <?php endif; ?> |
|
60 | 60 | <?php |
61 | 61 | foreach ($columns as $col) { |
62 | 62 | if ($col['visible'] === FALSE) continue; |
@@ -103,13 +103,13 @@ discard block |
||
103 | 103 | <tbody> |
104 | 104 | @if(count($result)==0) |
105 | 105 | <tr class='warning'> |
106 | - <?php if($button_bulk_action && $show_numbering):?> |
|
106 | + <?php if ($button_bulk_action && $show_numbering):?> |
|
107 | 107 | <td colspan='{{count($columns)+3}}' align="center"> |
108 | - <?php elseif( ($button_bulk_action && ! $show_numbering) || (! $button_bulk_action && $show_numbering) ):?> |
|
108 | + <?php elseif (($button_bulk_action && !$show_numbering) || (!$button_bulk_action && $show_numbering)):?> |
|
109 | 109 | <td colspan='{{count($columns)+2}}' align="center"> |
110 | 110 | <?php else:?> |
111 | 111 | <td colspan='{{count($columns)+1}}' align="center"> |
112 | - <?php endif;?> |
|
112 | + <?php endif; ?> |
|
113 | 113 | |
114 | 114 | <i class='fa fa-search'></i> {{trans("crudbooster.table_data_not_found")}} |
115 | 115 | </td> |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | @foreach($html_contents['html'] as $i=>$hc) |
120 | 120 | |
121 | 121 | @if($table_row_color) |
122 | - <?php $tr_color = NULL;?> |
|
122 | + <?php $tr_color = NULL; ?> |
|
123 | 123 | @foreach($table_row_color as $trc) |
124 | 124 | <?php |
125 | 125 | $query = $trc['condition']; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | }"); |
135 | 135 | ?> |
136 | 136 | @endforeach |
137 | - <?php echo "<tr class='$tr_color'>";?> |
|
137 | + <?php echo "<tr class='$tr_color'>"; ?> |
|
138 | 138 | @else |
139 | 139 | <tr> |
140 | 140 | @endif |
@@ -149,13 +149,13 @@ discard block |
||
149 | 149 | |
150 | 150 | <tfoot> |
151 | 151 | <tr> |
152 | - <?php if($button_bulk_action):?> |
|
152 | + <?php if ($button_bulk_action):?> |
|
153 | 153 | <th> </th> |
154 | - <?php endif;?> |
|
154 | + <?php endif; ?> |
|
155 | 155 | |
156 | - <?php if($show_numbering):?> |
|
156 | + <?php if ($show_numbering):?> |
|
157 | 157 | <th> </th> |
158 | - <?php endif;?> |
|
158 | + <?php endif; ?> |
|
159 | 159 | |
160 | 160 | <?php |
161 | 161 | foreach ($columns as $col) { |
@@ -310,8 +310,8 @@ discard block |
||
310 | 310 | </div> |
311 | 311 | <form method='get' action=''> |
312 | 312 | <div class="modal-body"> |
313 | - <?php foreach($columns as $key => $col):?> |
|
314 | - <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) continue;?> |
|
313 | + <?php foreach ($columns as $key => $col):?> |
|
314 | + <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) continue; ?> |
|
315 | 315 | |
316 | 316 | <div class='form-group'> |
317 | 317 | |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | </div> |
407 | 407 | |
408 | 408 | </div> |
409 | - <?php endforeach;?> |
|
409 | + <?php endforeach; ?> |
|
410 | 410 | |
411 | 411 | </div> |
412 | 412 | <div class="modal-footer" align="right"> |
@@ -508,17 +508,17 @@ discard block |
||
508 | 508 | <option <?=($setting->default_paper_size == 'Letter') ? "selected" : ""?> value='Letter'>Letter</option> |
509 | 509 | <option <?=($setting->default_paper_size == 'Legal') ? "selected" : ""?> value='Legal'>Legal</option> |
510 | 510 | <option <?=($setting->default_paper_size == 'Ledger') ? "selected" : ""?> value='Ledger'>Ledger</option> |
511 | - <?php for($i = 0;$i <= 8;$i++): |
|
511 | + <?php for ($i = 0; $i <= 8; $i++): |
|
512 | 512 | $select = ($setting->default_paper_size == 'A'.$i) ? "selected" : ""; |
513 | 513 | ?> |
514 | 514 | <option <?=$select?> value='A{{$i}}'>A{{$i}}</option> |
515 | - <?php endfor;?> |
|
515 | + <?php endfor; ?> |
|
516 | 516 | |
517 | - <?php for($i = 0;$i <= 10;$i++): |
|
517 | + <?php for ($i = 0; $i <= 10; $i++): |
|
518 | 518 | $select = ($setting->default_paper_size == 'B'.$i) ? "selected" : ""; |
519 | 519 | ?> |
520 | 520 | <option <?=$select?> value='B{{$i}}'>B{{$i}}</option> |
521 | - <?php endfor;?> |
|
521 | + <?php endfor; ?> |
|
522 | 522 | </select> |
523 | 523 | <div class='help-block'><input type='checkbox' name='default_paper_size' |
524 | 524 | value='1'/> {{trans("crudbooster.export_dialog_set_default")}}</div> |
@@ -5,15 +5,15 @@ discard block |
||
5 | 5 | } |
6 | 6 | |
7 | 7 | $confirm_box = ''; |
8 | - if (isset($a['confirmation']) && ! empty($a['confirmation']) && $a['confirmation']) { |
|
8 | + if (isset($a['confirmation']) && !empty($a['confirmation']) && $a['confirmation']) { |
|
9 | 9 | |
10 | - $a['confirmation_title'] = ! empty($a['confirmation_title']) ? $a['confirmation_title'] : trans('crudbooster.confirmation_title'); |
|
11 | - $a['confirmation_text'] = ! empty($a['confirmation_text']) ? $a['confirmation_text'] : trans('crudbooster.confirmation_text'); |
|
12 | - $a['confirmation_type'] = ! empty($a['confirmation_type']) ? $a['confirmation_type'] : 'warning'; |
|
10 | + $a['confirmation_title'] = !empty($a['confirmation_title']) ? $a['confirmation_title'] : trans('crudbooster.confirmation_title'); |
|
11 | + $a['confirmation_text'] = !empty($a['confirmation_text']) ? $a['confirmation_text'] : trans('crudbooster.confirmation_text'); |
|
12 | + $a['confirmation_type'] = !empty($a['confirmation_type']) ? $a['confirmation_type'] : 'warning'; |
|
13 | 13 | $a['confirmation_showCancelButton'] = empty($a['confirmation_showCancelButton']) ? 'true' : 'false'; |
14 | - $a['confirmation_confirmButtonColor'] = ! empty($a['confirmation_confirmButtonColor']) ? $a['confirmation_confirmButtonColor'] : '#DD6B55'; |
|
15 | - $a['confirmation_confirmButtonText'] = ! empty($a['confirmation_confirmButtonText']) ? $a['confirmation_confirmButtonText'] : trans('crudbooster.confirmation_yes');; |
|
16 | - $a['confirmation_cancelButtonText'] = ! empty($a['confirmation_cancelButtonText']) ? $a['confirmation_cancelButtonText'] : trans('crudbooster.confirmation_no');; |
|
14 | + $a['confirmation_confirmButtonColor'] = !empty($a['confirmation_confirmButtonColor']) ? $a['confirmation_confirmButtonColor'] : '#DD6B55'; |
|
15 | + $a['confirmation_confirmButtonText'] = !empty($a['confirmation_confirmButtonText']) ? $a['confirmation_confirmButtonText'] : trans('crudbooster.confirmation_yes'); ; |
|
16 | + $a['confirmation_cancelButtonText'] = !empty($a['confirmation_cancelButtonText']) ? $a['confirmation_cancelButtonText'] : trans('crudbooster.confirmation_no'); ; |
|
17 | 17 | $a['confirmation_closeOnConfirm'] = empty($a['confirmation_closeOnConfirm']) ? 'true' : 'false'; |
18 | 18 | |
19 | 19 | $confirm_box = ' |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $target = $a['target'] ?: '_self'; |
40 | 40 | |
41 | 41 | $url = $a['url']; |
42 | - if (isset($confirmation) && ! empty($confirmation)) { |
|
42 | + if (isset($confirmation) && !empty($confirmation)) { |
|
43 | 43 | $url = "javascript:;"; |
44 | 44 | } |
45 | 45 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | @endif |
74 | 74 | |
75 | 75 | @if(CRUDBooster::isDelete() && $button_delete) |
76 | - <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?> |
|
76 | + <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?> |
|
77 | 77 | <a class='btn btn-xs btn-warning btn-delete' title='{{trans("crudbooster.action_delete_data")}}' href='javascript:;' |
78 | 78 | onclick='{{CRUDBooster::deleteConfirm($url)}}'>{{trans("crudbooster.action_delete_data")}}</a> |
79 | 79 | @endif |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | @endif |
94 | 94 | |
95 | 95 | @if(CRUDBooster::isDelete() && $button_delete) |
96 | - <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?> |
|
96 | + <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?> |
|
97 | 97 | <a class='btn btn-xs btn-warning btn-delete' title='{{trans("crudbooster.action_delete_data")}}' href='javascript:;' |
98 | 98 | onclick='{{CRUDBooster::deleteConfirm($url)}}'><i class='fa fa-trash'></i> {{trans("crudbooster.action_delete_data")}}</a> |
99 | 99 | @endif |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | @endif |
149 | 149 | |
150 | 150 | @if(CRUDBooster::isDelete() && $button_delete) |
151 | - <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?> |
|
151 | + <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?> |
|
152 | 152 | <li><a class='btn-delete' title='{{trans("crudbooster.action_delete_data")}}' href='javascript:;' |
153 | 153 | onclick='{{CRUDBooster::deleteConfirm($url)}}'><i class='fa fa-trash'></i> {{trans("crudbooster.action_delete_data")}}</a></li> |
154 | 154 | @endif |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | @endif |
170 | 170 | |
171 | 171 | @if(CRUDBooster::isDelete() && $button_delete) |
172 | - <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?> |
|
172 | + <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?> |
|
173 | 173 | <a class='btn btn-xs btn-warning btn-delete' title='{{trans("crudbooster.action_delete_data")}}' href='javascript:;' |
174 | 174 | onclick='{{CRUDBooster::deleteConfirm($url)}}'><i class='fa fa-trash'></i></a> |
175 | 175 | @endif |
@@ -27,7 +27,7 @@ |
||
27 | 27 | </tr> |
28 | 28 | </thead> |
29 | 29 | <tbody> |
30 | - <?php $no = 0;?> |
|
30 | + <?php $no = 0; ?> |
|
31 | 31 | @foreach($apikeys as $row) |
32 | 32 | <tr> |
33 | 33 | <td>{{ ++$no }}</td> |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | <li class="header">{{trans("crudbooster.menu_navigation")}}</li> |
25 | 25 | <!-- Optionally, you can add icons to the links --> |
26 | 26 | |
27 | - <?php $dashboard = CRUDBooster::sidebarDashboard();?> |
|
27 | + <?php $dashboard = CRUDBooster::sidebarDashboard(); ?> |
|
28 | 28 | @if($dashboard) |
29 | 29 | <li data-id='{{$dashboard->id}}' class="{{ (Request::is(config('crudbooster.ADMIN_PATH'))) ? 'active' : '' }}"><a |
30 | 30 | href='{{CRUDBooster::adminPath()}}' class='{{($dashboard->color)?"text-".$dashboard->color:""}}'><i class='fa fa-dashboard'></i> |
@@ -95,12 +95,12 @@ discard block |
||
95 | 95 | <span>{{ trans('crudbooster.Add_New_Setting') }}</span></a></li> |
96 | 96 | <?php |
97 | 97 | $groupSetting = DB::table('cms_settings')->groupby('group_setting')->pluck('group_setting'); |
98 | - foreach($groupSetting as $gs): |
|
98 | + foreach ($groupSetting as $gs): |
|
99 | 99 | ?> |
100 | 100 | <li class="<?=($gs == Request::get('group')) ? 'active' : ''?>"><a |
101 | 101 | href='{{route("SettingsControllerGetShow")}}?group={{urlencode($gs)}}&m=0'><i class='fa fa-wrench'></i> |
102 | 102 | <span>{{$gs}}</span></a></li> |
103 | - <?php endforeach;?> |
|
103 | + <?php endforeach; ?> |
|
104 | 104 | </ul> |
105 | 105 | </li> |
106 | 106 | <li class='treeview'> |
@@ -72,16 +72,16 @@ discard block |
||
72 | 72 | </tr> |
73 | 73 | </thead> |
74 | 74 | <tbody> |
75 | - <?php $no = 0;?> |
|
75 | + <?php $no = 0; ?> |
|
76 | 76 | @foreach($apis as $api) |
77 | 77 | <?php |
78 | 78 | $parameters = ($api->parameters) ? unserialize($api->parameters) : array(); |
79 | 79 | $responses = ($api->responses) ? unserialize($api->responses) : array(); |
80 | 80 | ?> |
81 | 81 | <tr> |
82 | - <td><?= ++$no;?></td> |
|
82 | + <td><?= ++$no; ?></td> |
|
83 | 83 | <td> |
84 | - <a href='javascript:void(0)' title='API {{$ac->nama}}' style='color:#009fe3' class='link_name_api'><?=$api->nama;?></a> |
|
84 | + <a href='javascript:void(0)' title='API {{$ac->nama}}' style='color:#009fe3' class='link_name_api'><?=$api->nama; ?></a> |
|
85 | 85 | <div class='detail_api' style='display:none'> |
86 | 86 | <table class='table table-bordered'> |
87 | 87 | <tr> |
@@ -108,12 +108,12 @@ discard block |
||
108 | 108 | </tr> |
109 | 109 | </thead> |
110 | 110 | <tbody> |
111 | - <?php $i = 0;?> |
|
111 | + <?php $i = 0; ?> |
|
112 | 112 | @foreach($parameters as $param) |
113 | 113 | @if($param['used']) |
114 | 114 | <?php |
115 | 115 | $param_exception = ['in', 'not_in', 'digits_between']; |
116 | - if ($param['config'] && substr($param['config'], 0, 1) != '*' && ! in_array($param['type'], $param_exception)) continue;?> |
|
116 | + if ($param['config'] && substr($param['config'], 0, 1) != '*' && !in_array($param['type'], $param_exception)) continue; ?> |
|
117 | 117 | <tr> |
118 | 118 | <td>{{++$i}}</td> |
119 | 119 | <td width="5%"><em>{{$param['type']}}</em></td> |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | </tr> |
153 | 153 | </thead> |
154 | 154 | <tbody> |
155 | - <?php $i = 1;?> |
|
155 | + <?php $i = 1; ?> |
|
156 | 156 | <tr> |
157 | 157 | <td>{{$i++}}</td> |
158 | 158 | <td><em>integer</em></td> |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | <div class="box-body"> |
29 | 29 | <?php |
30 | 30 | $set = DB::table('cms_settings')->where('group_setting', $page_title)->get(); |
31 | - foreach($set as $s): |
|
31 | + foreach ($set as $s): |
|
32 | 32 | |
33 | 33 | $value = $s->content; |
34 | 34 | |
35 | - if (! $s->label) { |
|
35 | + if (!$s->label) { |
|
36 | 36 | $label = ucwords(str_replace('_', ' ', $s->name)); |
37 | 37 | DB::table('cms_settings')->where('id', $s->id)->update(['label' => $label]); |
38 | 38 | $s->label = $label; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | <div class='help-block'>{{$s->helper}}</div> |
134 | 134 | </div> |
135 | - <?php endforeach;?> |
|
135 | + <?php endforeach; ?> |
|
136 | 136 | </div><!-- /.box-body --> |
137 | 137 | <div class="box-footer"> |
138 | 138 | <div class='pull-right'> |
@@ -61,10 +61,10 @@ discard block |
||
61 | 61 | 'skin-black', |
62 | 62 | 'skin-black-light' |
63 | 63 | ); |
64 | - foreach($skins as $skin): |
|
64 | + foreach ($skins as $skin): |
|
65 | 65 | ?> |
66 | 66 | <option <?=(@$row->theme_color == $skin) ? "selected" : ""?> value='<?=$skin?>'><?=ucwords(str_replace('-', ' ', $skin))?></option> |
67 | - <?php endforeach;?> |
|
67 | + <?php endforeach; ?> |
|
68 | 68 | </select> |
69 | 69 | <div class="text-danger">{{ $errors->first('theme_color') }}</div> |
70 | 70 | @push('bottom') |
@@ -151,13 +151,13 @@ discard block |
||
151 | 151 | </tr> |
152 | 152 | </thead> |
153 | 153 | <tbody> |
154 | - <?php $no = 1;?> |
|
154 | + <?php $no = 1; ?> |
|
155 | 155 | @foreach($moduls as $modul) |
156 | 156 | <?php |
157 | 157 | $roles = DB::table('cms_privileges_roles')->where('id_cms_moduls', $modul->id)->where('id_cms_privileges', $row->id)->first(); |
158 | 158 | ?> |
159 | 159 | <tr> |
160 | - <td><?php echo $no++;?></td> |
|
160 | + <td><?php echo $no++; ?></td> |
|
161 | 161 | <td>{{$modul->name}}</td> |
162 | 162 | <td class='info' align="center"><input type='checkbox' title='Check All Horizontal' |
163 | 163 | <?=($roles->is_create && $roles->is_read && $roles->is_edit && $roles->is_delete) ? "checked" : ""?> class='select_horizontal'/> |