-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Various fixes for quarterly stats
- Loading branch information
1 parent
ebc4429
commit dcb30e9
Showing
4 changed files
with
84 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 20 additions & 21 deletions
41
resources/views/filament/pages/operations/generate-quarterly-stats.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
<x-filament::page> | ||
<form wire:submit.prevent="submit"> | ||
{{ $this->form }} | ||
|
||
<x-filament::button type="submit" class="my-2">Submit</x-filament::button> | ||
</form> | ||
|
||
<div class="items-center" wire:loading.flex><x-filament::loading-indicator class="w-10 mx-auto" /></div> | ||
<div class="items-center" wire:loading.flex> | ||
<x-filament::loading-indicator class="w-10 mx-auto"/> | ||
</div> | ||
@if($this->statistics) | ||
<x-filament::card wire:loading.remove> | ||
<x-filament::section.heading>Results for {{$this->quarterMappings[$this->quarter]}} {{$this->year}}</x-filament.section::heading> | ||
<table class="table text-center table-auto w-full"> | ||
<thead> | ||
<tr> | ||
<th>Statistic</th> | ||
<th>Value</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<x-filament::card wire:loading.remove> | ||
<table class="table text-center table-auto w-full"> | ||
<tbody> | ||
|
||
@foreach($this->statistics as $groupName => $statisticGroup) | ||
<td colspan="2" class="text-left"><strong>{{ $groupName }}<br></strong></td> | ||
@foreach($statisticGroup as $statistic) | ||
<tr> | ||
<td>{{ $statistic['name'] }}</td> | ||
<td> {{ $statistic['value'] }}</td> | ||
</tr> | ||
@endforeach | ||
|
||
@foreach($this->statistics as $statistic) | ||
<tr> | ||
<td>{{ $statistic['name'] }}</td> | ||
<td>{{ $statistic['value'] }}</td> | ||
</tr> | ||
@endforeach | ||
@endforeach | ||
|
||
</tbody> | ||
</table> | ||
</x-filament::card> | ||
</tbody> | ||
</table> | ||
</x-filament::card> | ||
@endif | ||
</x-filament::page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters