|
30 | 30 | <div class="row mb-0"> |
31 | 31 | <div class="col-sm-6"> |
32 | 32 | @if ( $crud->buttons()->where('stack', 'top')->count() || $crud->exportButtons()) |
33 | | - <div class="hidden-print {{ $crud->hasAccess('create')?'with-border':'' }}"> |
| 33 | + <div class="d-print-none {{ $crud->hasAccess('create')?'with-border':'' }}"> |
34 | 34 |
|
35 | 35 | @include('crud::inc.button_stack', ['stack' => 'top']) |
36 | 36 |
|
37 | 37 | </div> |
38 | 38 | @endif |
39 | 39 | </div> |
40 | 40 | <div class="col-sm-6"> |
41 | | - <div id="datatable_search_stack" class="mt-sm-0 mt-2"></div> |
| 41 | + <div id="datatable_search_stack" class="mt-sm-0 mt-2 d-print-none"></div> |
42 | 42 | </div> |
43 | 43 | </div> |
44 | 44 |
|
|
74 | 74 | data-visible-in-modal="false" |
75 | 75 | data-visible-in-export="true" |
76 | 76 | data-force-export="true" |
77 | | - |
78 | 77 | @else |
79 | | - |
80 | 78 | data-visible-in-table="{{var_export($column['visibleInTable'] ?? false)}}" |
81 | 79 | data-visible="{{var_export($column['visibleInTable'] ?? true)}}" |
82 | 80 | data-can-be-visible-in-table="true" |
83 | 81 | data-visible-in-modal="{{var_export($column['visibleInModal'] ?? true)}}" |
84 | | - @if(isset($column['visibleInExport'])) |
85 | | - @if($column['visibleInExport'] === false) |
86 | | - data-visible-in-export="false" |
87 | | - data-force-export="false" |
88 | | - @else |
89 | | - data-visible-in-export="true" |
90 | | - data-force-export="true" |
91 | | - @endif |
92 | | - @else |
93 | | - data-visible-in-export="true" |
94 | | - data-force-export="false" |
95 | | - @endif |
| 82 | + @if(isset($column['visibleInExport'])) |
| 83 | + @if($column['visibleInExport'] === false) |
| 84 | + data-visible-in-export="false" |
| 85 | + data-force-export="false" |
| 86 | + @else |
| 87 | + data-visible-in-export="true" |
| 88 | + data-force-export="true" |
| 89 | + @endif |
| 90 | + @else |
| 91 | + data-visible-in-export="true" |
| 92 | + data-force-export="false" |
| 93 | + @endif |
96 | 94 | @endif |
97 | 95 | > |
98 | 96 | {!! $column['label'] !!} |
99 | 97 | </th> |
100 | 98 | @endforeach |
101 | 99 |
|
102 | 100 | @if ( $crud->buttons()->where('stack', 'line')->count() ) |
103 | | - <th data-orderable="false" data-priority="{{ $crud->getActionsColumnPriority() }}" data-visible-in-export="false">{{ trans('backpack::crud.actions') }}</th> |
| 101 | + <th data-orderable="false" |
| 102 | + data-priority="{{ $crud->getActionsColumnPriority() }}" |
| 103 | + data-visible-in-export="false" |
| 104 | + >{{ trans('backpack::crud.actions') }}</th> |
104 | 105 | @endif |
105 | 106 | </tr> |
106 | 107 | </thead> |
|
121 | 122 | </table> |
122 | 123 |
|
123 | 124 | @if ( $crud->buttons()->where('stack', 'bottom')->count() ) |
124 | | - <div id="bottom_buttons" class="hidden-print"> |
| 125 | + <div id="bottom_buttons" class="d-print-none text-center text-sm-left"> |
125 | 126 | @include('crud::inc.button_stack', ['stack' => 'bottom']) |
126 | 127 |
|
127 | 128 | <div id="datatable_button_stack" class="float-right text-right hidden-xs"></div> |
|
0 commit comments