@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | $ext = pathinfo($value, PATHINFO_EXTENSION); |
3 | 3 | $images_type = array('jpg', 'png', 'gif', 'jpeg', 'bmp', 'tiff'); |
4 | -if(Storage::exists($value) || file_exists($value)): |
|
5 | -if(in_array(strtolower($ext), $images_type)):?> |
|
4 | +if (Storage::exists($value) || file_exists($value)): |
|
5 | +if (in_array(strtolower($ext), $images_type)):?> |
|
6 | 6 | <a data-lightbox='roadtrip' href='{{asset($value)}}'><img style='max-width:150px' title="Image For {{$form['label']}}" src='{{asset($value)}}'/></a> |
7 | 7 | <?php else:?> |
8 | 8 | <a href='{{asset($value)}}?download=1' target="_blank">{{trans("crudbooster.button_download_file")}}: {{basename($value)}} <i class="fa fa-download"></i></a> |
9 | -<?php endif;?> |
|
10 | -<?php endif;?> |
|
9 | +<?php endif; ?> |
|
10 | +<?php endif; ?> |
@@ -4,7 +4,10 @@ |
||
4 | 4 | if(Storage::exists($value) || file_exists($value)): |
5 | 5 | if(in_array(strtolower($ext), $images_type)):?> |
6 | 6 | <a data-lightbox='roadtrip' href='{{asset($value)}}'><img style='max-width:150px' title="Image For {{$form['label']}}" src='{{asset($value)}}'/></a> |
7 | -<?php else:?> |
|
7 | +<?php else { |
|
8 | + :?> |
|
8 | 9 | <a href='{{asset($value)}}?download=1' target="_blank">{{trans("crudbooster.button_download_file")}}: {{basename($value)}} <i class="fa fa-download"></i></a> |
9 | -<?php endif;?> |
|
10 | +<?php endif; |
|
11 | +} |
|
12 | +?> |
|
10 | 13 | <?php endif;?> |
@@ -81,7 +81,7 @@ |
||
81 | 81 | foreach ($selects_data as $d) { |
82 | 82 | $val = $d->{$datatable_field}; |
83 | 83 | $checked = (is_array($value) && in_array($val, $value)) ? "checked" : ""; |
84 | - if ($val == '' || ! $d->id) continue; |
|
84 | + if ($val == '' || !$d->id) continue; |
|
85 | 85 | |
86 | 86 | echo " |
87 | 87 | <div data-val='$val' class='checkbox $disabled'> |
@@ -81,7 +81,9 @@ |
||
81 | 81 | foreach ($selects_data as $d) { |
82 | 82 | $val = $d->{$datatable_field}; |
83 | 83 | $checked = (is_array($value) && in_array($val, $value)) ? "checked" : ""; |
84 | - if ($val == '' || ! $d->id) continue; |
|
84 | + if ($val == '' || ! $d->id) { |
|
85 | + continue; |
|
86 | + } |
|
85 | 87 | |
86 | 88 | echo " |
87 | 89 | <div data-val='$val' class='checkbox $disabled'> |
@@ -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(); |
@@ -6,7 +6,9 @@ |
||
6 | 6 | $type = @$form['type'] ?: 'text'; |
7 | 7 | $name = $form['name']; |
8 | 8 | |
9 | -if (in_array($type, $asset_already)) continue; |
|
9 | +if (in_array($type, $asset_already)) { |
|
10 | + continue; |
|
11 | +} |
|
10 | 12 | ?> |
11 | 13 | @if(file_exists(base_path('/vendor/crocodicstudio/crudbooster/src/views/default/type_components/'.$type.'/asset.blade.php'))) |
12 | 14 | @include('crudbooster::default.type_components.'.$type.'.asset') |
@@ -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 |
@@ -4,7 +4,9 @@ |
||
4 | 4 | foreach($forms as $form) { |
5 | 5 | $type = @$form['type'] ?: 'text'; |
6 | 6 | |
7 | -if (in_array($type, $asset_already)) continue; |
|
7 | +if (in_array($type, $asset_already)) { |
|
8 | + continue; |
|
9 | +} |
|
8 | 10 | |
9 | 11 | ?> |
10 | 12 | @if(file_exists(base_path('/vendor/crocodicstudio/crudbooster/src/views/default/type_components/'.$type.'/asset.blade.php'))) |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $name = $col['name']; |
67 | 67 | $field = $col['field_with']; |
68 | 68 | $width = ($col['width']) ?: "auto"; |
69 | - $style = ($col['style']) ?: ""; |
|
69 | + $style = ($col['style']) ?: ""; |
|
70 | 70 | $mainpath = trim(CRUDBooster::mainpath(), '/').$build_query; |
71 | 71 | echo "<th width='$width' $style>"; |
72 | 72 | if (isset($sort_column[$field])) { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | if ($col['visible'] === FALSE) continue; |
163 | 163 | $colname = $col['label']; |
164 | 164 | $width = ($col['width']) ?: "auto"; |
165 | - $style = ($col['style']) ?: ""; |
|
165 | + $style = ($col['style']) ?: ""; |
|
166 | 166 | echo "<th width='$width' $style>$colname</th>"; |
167 | 167 | } |
168 | 168 | ?> |
@@ -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> |
@@ -59,7 +59,9 @@ discard block |
||
59 | 59 | <?php endif;?> |
60 | 60 | <?php |
61 | 61 | foreach ($columns as $col) { |
62 | - if ($col['visible'] === FALSE) continue; |
|
62 | + if ($col['visible'] === FALSE) { |
|
63 | + continue; |
|
64 | + } |
|
63 | 65 | |
64 | 66 | $sort_column = Request::get('filter_column'); |
65 | 67 | $colname = $col['label']; |
@@ -107,9 +109,12 @@ discard block |
||
107 | 109 | <td colspan='{{count($columns)+3}}' align="center"> |
108 | 110 | <?php elseif( ($button_bulk_action && ! $show_numbering) || (! $button_bulk_action && $show_numbering) ):?> |
109 | 111 | <td colspan='{{count($columns)+2}}' align="center"> |
110 | - <?php else:?> |
|
112 | + <?php else { |
|
113 | + :?> |
|
111 | 114 | <td colspan='{{count($columns)+1}}' align="center"> |
112 | - <?php endif;?> |
|
115 | + <?php endif; |
|
116 | +} |
|
117 | +?> |
|
113 | 118 | |
114 | 119 | <i class='fa fa-search'></i> {{trans("crudbooster.table_data_not_found")}} |
115 | 120 | </td> |
@@ -159,7 +164,9 @@ discard block |
||
159 | 164 | |
160 | 165 | <?php |
161 | 166 | foreach ($columns as $col) { |
162 | - if ($col['visible'] === FALSE) continue; |
|
167 | + if ($col['visible'] === FALSE) { |
|
168 | + continue; |
|
169 | + } |
|
163 | 170 | $colname = $col['label']; |
164 | 171 | $width = ($col['width']) ?: "auto"; |
165 | 172 | $style = ($col['style']) ?: ""; |
@@ -311,7 +318,10 @@ discard block |
||
311 | 318 | <form method='get' action=''> |
312 | 319 | <div class="modal-body"> |
313 | 320 | <?php foreach($columns as $key => $col):?> |
314 | - <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) continue;?> |
|
321 | + <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) { |
|
322 | + continue; |
|
323 | +} |
|
324 | +?> |
|
315 | 325 | |
316 | 326 | <div class='form-group'> |
317 | 327 |
@@ -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> |
@@ -117,7 +117,10 @@ |
||
117 | 117 | @if($param['used']) |
118 | 118 | <?php |
119 | 119 | $param_exception = ['in', 'not_in', 'digits_between']; |
120 | - if ($param['config'] && substr($param['config'], 0, 1) != '*' && ! in_array($param['type'], $param_exception)) continue;?> |
|
120 | + if ($param['config'] && substr($param['config'], 0, 1) != '*' && ! in_array($param['type'], $param_exception)) { |
|
121 | + continue; |
|
122 | + } |
|
123 | + ?> |
|
121 | 124 | <tr> |
122 | 125 | <td>{{++$i}}</td> |
123 | 126 | <td width="5%"><em>{{$param['type']}}</em></td> |