130 lines
8.2 KiB
PHP
130 lines
8.2 KiB
PHP
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?>
|
|
<?php foreach($attributes->onlyProps([
|
|
'allSelectableRecordsCount',
|
|
'deselectAllRecordsAction' => 'deselectAllRecords',
|
|
'end' => null,
|
|
'selectAllRecordsAction' => 'selectAllRecords',
|
|
'selectedRecordsCount',
|
|
'selectedRecordsPropertyName' => 'selectedRecords',
|
|
]) as $__key => $__value) {
|
|
$$__key = $$__key ?? $__value;
|
|
} ?>
|
|
<?php $attributes = $attributes->exceptProps([
|
|
'allSelectableRecordsCount',
|
|
'deselectAllRecordsAction' => 'deselectAllRecords',
|
|
'end' => null,
|
|
'selectAllRecordsAction' => 'selectAllRecords',
|
|
'selectedRecordsCount',
|
|
'selectedRecordsPropertyName' => 'selectedRecords',
|
|
]); ?>
|
|
<?php foreach (array_filter(([
|
|
'allSelectableRecordsCount',
|
|
'deselectAllRecordsAction' => 'deselectAllRecords',
|
|
'end' => null,
|
|
'selectAllRecordsAction' => 'selectAllRecords',
|
|
'selectedRecordsCount',
|
|
'selectedRecordsPropertyName' => 'selectedRecords',
|
|
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
$$__key = $$__key ?? $__value;
|
|
} ?>
|
|
<?php $__defined_vars = get_defined_vars(); ?>
|
|
<?php foreach ($attributes as $__key => $__value) {
|
|
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
} ?>
|
|
<?php unset($__defined_vars); ?>
|
|
|
|
<div
|
|
x-cloak
|
|
<?php echo e($attributes
|
|
->merge([
|
|
'wire:key' => "{$this->getId()}.table.selection.indicator",
|
|
], escape: false)
|
|
->class([
|
|
'fi-ta-selection-indicator flex flex-col justify-between gap-y-1 bg-gray-50 px-3 py-2 dark:bg-white/5 sm:flex-row sm:items-center sm:px-6 sm:py-1.5',
|
|
])); ?>
|
|
|
|
>
|
|
<div class="flex gap-x-3">
|
|
<?php if (isset($component)) { $__componentOriginalbef7c2371a870b1887ec3741fe311a10 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginalbef7c2371a870b1887ec3741fe311a10 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.loading-indicator','data' => ['xShow' => 'isLoading','class' => 'h-5 w-5 text-gray-400 dark:text-gray-500']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('filament::loading-indicator'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['x-show' => 'isLoading','class' => 'h-5 w-5 text-gray-400 dark:text-gray-500']); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginalbef7c2371a870b1887ec3741fe311a10)): ?>
|
|
<?php $attributes = $__attributesOriginalbef7c2371a870b1887ec3741fe311a10; ?>
|
|
<?php unset($__attributesOriginalbef7c2371a870b1887ec3741fe311a10); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginalbef7c2371a870b1887ec3741fe311a10)): ?>
|
|
<?php $component = $__componentOriginalbef7c2371a870b1887ec3741fe311a10; ?>
|
|
<?php unset($__componentOriginalbef7c2371a870b1887ec3741fe311a10); ?>
|
|
<?php endif; ?>
|
|
|
|
<span
|
|
x-text="
|
|
window.pluralize(<?php echo \Illuminate\Support\Js::from(__('filament-tables::table.selection_indicator.selected_count'))->toHtml() ?>, <?php echo e($selectedRecordsPropertyName); ?>.length, {
|
|
count: <?php echo e($selectedRecordsPropertyName); ?>.length,
|
|
})
|
|
"
|
|
class="text-sm font-medium leading-6 text-gray-700 dark:text-gray-200"
|
|
></span>
|
|
</div>
|
|
|
|
<div class="flex gap-x-3">
|
|
<?php if (isset($component)) { $__componentOriginal549c94d872270b69c72bdf48cb183bc9 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal549c94d872270b69c72bdf48cb183bc9 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.link','data' => ['color' => 'primary','id' => $this->getId() . '.table.selection.indicator.record-count.' . $allSelectableRecordsCount,'tag' => 'button','xOn:click' => $selectAllRecordsAction,'xShow' => $allSelectableRecordsCount . ' !== ' . $selectedRecordsPropertyName . '.length']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('filament::link'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['color' => 'primary','id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($this->getId() . '.table.selection.indicator.record-count.' . $allSelectableRecordsCount),'tag' => 'button','x-on:click' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($selectAllRecordsAction),'x-show' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($allSelectableRecordsCount . ' !== ' . $selectedRecordsPropertyName . '.length')]); ?>
|
|
<?php echo e(trans_choice('filament-tables::table.selection_indicator.actions.select_all.label', $allSelectableRecordsCount)); ?>
|
|
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal549c94d872270b69c72bdf48cb183bc9)): ?>
|
|
<?php $attributes = $__attributesOriginal549c94d872270b69c72bdf48cb183bc9; ?>
|
|
<?php unset($__attributesOriginal549c94d872270b69c72bdf48cb183bc9); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal549c94d872270b69c72bdf48cb183bc9)): ?>
|
|
<?php $component = $__componentOriginal549c94d872270b69c72bdf48cb183bc9; ?>
|
|
<?php unset($__componentOriginal549c94d872270b69c72bdf48cb183bc9); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal549c94d872270b69c72bdf48cb183bc9 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal549c94d872270b69c72bdf48cb183bc9 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.link','data' => ['color' => 'danger','tag' => 'button','xOn:click' => $deselectAllRecordsAction]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
|
|
<?php $component->withName('filament::link'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
|
|
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['color' => 'danger','tag' => 'button','x-on:click' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($deselectAllRecordsAction)]); ?>
|
|
<?php echo e(__('filament-tables::table.selection_indicator.actions.deselect_all.label')); ?>
|
|
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal549c94d872270b69c72bdf48cb183bc9)): ?>
|
|
<?php $attributes = $__attributesOriginal549c94d872270b69c72bdf48cb183bc9; ?>
|
|
<?php unset($__attributesOriginal549c94d872270b69c72bdf48cb183bc9); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal549c94d872270b69c72bdf48cb183bc9)): ?>
|
|
<?php $component = $__componentOriginal549c94d872270b69c72bdf48cb183bc9; ?>
|
|
<?php unset($__componentOriginal549c94d872270b69c72bdf48cb183bc9); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php echo e($end); ?>
|
|
|
|
</div>
|
|
</div>
|
|
<?php /**PATH C:\wwwroot\stylegallery\backend\vendor\filament\tables\resources\views/components/selection/indicator.blade.php ENDPATH**/ ?>
|