chore(deps): added adminlte vendored items
(this might not be entirely necessary unless we're changing everything adminlte publishes) Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
61
resources/views/vendor/adminlte/components/tool/datatable.blade.php
vendored
Normal file
61
resources/views/vendor/adminlte/components/tool/datatable.blade.php
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
{{-- Table --}}
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table id="{{ $id }}" style="width:100%" {{ $attributes->merge(['class' => $makeTableClass()]) }}>
|
||||
|
||||
{{-- Table head --}}
|
||||
<thead @isset($headTheme) class="thead-{{ $headTheme }}" @endisset>
|
||||
<tr>
|
||||
@foreach($heads as $th)
|
||||
<th @isset($th['classes']) class="{{ $th['classes'] }}" @endisset
|
||||
@isset($th['width']) style="width:{{ $th['width'] }}%" @endisset
|
||||
@isset($th['no-export']) dt-no-export @endisset>
|
||||
{{ is_array($th) ? ($th['label'] ?? '') : $th }}
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{{-- Table body --}}
|
||||
<tbody>{{ $slot }}</tbody>
|
||||
|
||||
{{-- Table footer --}}
|
||||
@isset($withFooter)
|
||||
<tfoot @isset($footerTheme) class="thead-{{ $footerTheme }}" @endisset>
|
||||
<tr>
|
||||
@foreach($heads as $th)
|
||||
<th>{{ is_array($th) ? ($th['label'] ?? '') : $th }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</tfoot>
|
||||
@endisset
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{{-- Add plugin initialization and configuration code --}}
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
$(() => {
|
||||
$('#{{ $id }}').DataTable( @json($config) );
|
||||
})
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
{{-- Add CSS styling --}}
|
||||
|
||||
@isset($beautify)
|
||||
@push('css')
|
||||
<style type="text/css">
|
||||
#{{ $id }} tr td, #{{ $id }} tr th {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
@endisset
|
36
resources/views/vendor/adminlte/components/tool/modal.blade.php
vendored
Normal file
36
resources/views/vendor/adminlte/components/tool/modal.blade.php
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
<div {{ $attributes->merge(['class' => $makeModalClass(), 'id' => $id]) }}
|
||||
@isset($staticBackdrop) data-backdrop="static" data-keyboard="false" @endisset>
|
||||
|
||||
<div class="{{ $makeModalDialogClass() }}">
|
||||
<div class="modal-content">
|
||||
|
||||
{{--Modal header --}}
|
||||
<div class="{{ $makeModalHeaderClass() }}">
|
||||
<h4 class="modal-title">
|
||||
@isset($icon)<i class="{{ $icon }} mr-2"></i>@endisset
|
||||
@isset($title){{ $title }}@endisset
|
||||
</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{{-- Modal body --}}
|
||||
@if(! $slot->isEmpty())
|
||||
<div class="modal-body">{{ $slot }}</div>
|
||||
@endif
|
||||
|
||||
{{-- Modal footer --}}
|
||||
<div class="modal-footer">
|
||||
@isset($footerSlot)
|
||||
{{ $footerSlot }}
|
||||
@else
|
||||
<x-adminlte-button class="{{ $makeCloseButtonClass }}"
|
||||
data-dismiss="modal" label="Close"/>
|
||||
@endisset
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user