phases one of time logged now with log display
This commit is contained in:
@@ -20,14 +20,15 @@
|
||||
use Filament\Tables\Enums\RecordCheckboxPosition;
|
||||
|
||||
if ($groupsOnly && $groupColumn) {
|
||||
$columns = collect($columns)
|
||||
->reject(fn (Column $column): bool => $column->getName() === $groupColumn)
|
||||
->all();
|
||||
$columns = collect($columns)->reject(fn(Column $column): bool => $column->getName() === $groupColumn)->all();
|
||||
}
|
||||
@endphp
|
||||
|
||||
<tr {{ $attributes->class(['fi-ta-row fi-ta-summary-row']) }}>
|
||||
@if ($placeholderColumns && $actions && in_array($actionsPosition, [RecordActionsPosition::BeforeCells, RecordActionsPosition::BeforeColumns]))
|
||||
@if (
|
||||
$placeholderColumns &&
|
||||
$actions &&
|
||||
in_array($actionsPosition, [RecordActionsPosition::BeforeCells, RecordActionsPosition::BeforeColumns]))
|
||||
<td></td>
|
||||
@endif
|
||||
|
||||
@@ -58,26 +59,31 @@
|
||||
@endif
|
||||
|
||||
@foreach ($columns as $column)
|
||||
@if (($loop->first || $extraHeadingColumn || $groupsOnly || ($loop->iteration > $headingColumnSpan)) && ($placeholderColumns || $column->hasSummary($query)))
|
||||
@if (
|
||||
($loop->first || $extraHeadingColumn || $groupsOnly || $loop->iteration > $headingColumnSpan) &&
|
||||
($placeholderColumns || $column->hasSummary($query)))
|
||||
@php
|
||||
$alignment = $column->getAlignment() ?? Alignment::Start;
|
||||
|
||||
if (! $alignment instanceof Alignment) {
|
||||
$alignment = filled($alignment) ? (Alignment::tryFrom($alignment) ?? $alignment) : null;
|
||||
if (!$alignment instanceof Alignment) {
|
||||
$alignment = filled($alignment) ? Alignment::tryFrom($alignment) ?? $alignment : null;
|
||||
}
|
||||
@endphp
|
||||
|
||||
<td
|
||||
colspan="{{ ($loop->first && (! $extraHeadingColumn) && (! $groupsOnly) && ($headingColumnSpan > 1)) ? $headingColumnSpan : null }}"
|
||||
<td colspan="{{ $loop->first && !$extraHeadingColumn && !$groupsOnly && $headingColumnSpan > 1 ? $headingColumnSpan : null }}"
|
||||
@class([
|
||||
'fi-ta-cell',
|
||||
($alignment instanceof Alignment) ? "fi-align-{$alignment->value}" : (is_string($alignment) ? $alignment : ''),
|
||||
'fi-ta-summary-row-heading-cell' => $loop->first && (! $extraHeadingColumn) && (! $groupsOnly),
|
||||
])
|
||||
>
|
||||
@if ($loop->first && (! $extraHeadingColumn) && (! $groupsOnly))
|
||||
$alignment instanceof Alignment
|
||||
? "fi-align-{$alignment->value}"
|
||||
: (is_string($alignment)
|
||||
? $alignment
|
||||
: ''),
|
||||
'fi-ta-summary-row-heading-cell' =>
|
||||
$loop->first && !$extraHeadingColumn && !$groupsOnly,
|
||||
])>
|
||||
@if ($loop->first && !$extraHeadingColumn && !$groupsOnly)
|
||||
{{ $heading }}
|
||||
@elseif ((! $placeholderColumns) || $column->hasSummary($query))
|
||||
@elseif (!$placeholderColumns || $column->hasSummary($query))
|
||||
@foreach ($column->getSummarizers($query) as $summarizer)
|
||||
{{ $summarizer->query($query)->selectedState($selectedState) }}
|
||||
@endforeach
|
||||
@@ -86,7 +92,10 @@
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@if ($placeholderColumns && $actions && in_array($actionsPosition, [RecordActionsPosition::AfterColumns, RecordActionsPosition::AfterCells]))
|
||||
@if (
|
||||
$placeholderColumns &&
|
||||
$actions &&
|
||||
in_array($actionsPosition, [RecordActionsPosition::AfterColumns, RecordActionsPosition::AfterCells]))
|
||||
<td></td>
|
||||
@endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user