Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

income-statement.blade.php 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <x-filament-panels::page>
  2. <x-filament::section>
  3. <div class="flex flex-col md:flex-row items-start md:items-center justify-between gap-4">
  4. <!-- Form Container -->
  5. @if(method_exists($this, 'filtersForm'))
  6. {{ $this->filtersForm }}
  7. @endif
  8. <!-- Grouping Button and Column Toggle -->
  9. @if($this->hasToggleableColumns())
  10. <x-filament-tables::column-toggle.dropdown
  11. :form="$this->getTableColumnToggleForm()"
  12. :trigger-action="$this->getToggleColumnsTriggerAction()"
  13. />
  14. @endif
  15. <div class="inline-flex items-center min-w-0 md:min-w-[9.5rem] justify-end">
  16. {{ $this->applyFiltersAction }}
  17. </div>
  18. </div>
  19. </x-filament::section>
  20. <x-filament::section>
  21. <!-- Summary Section -->
  22. @if($this->reportLoaded)
  23. <div
  24. class="flex flex-col md:flex-row items-center md:items-end text-center justify-center gap-4 md:gap-8">
  25. @foreach($this->report->getSummary() as $summary)
  26. <div class="text-sm">
  27. <div class="text-gray-600 font-medium mb-2">{{ $summary['label'] }}</div>
  28. @php
  29. $isNetEarnings = $summary['label'] === 'Net Earnings';
  30. $isPositive = money($summary['value'], \App\Utilities\Currency\CurrencyAccessor::getDefaultCurrency())->isPositive();
  31. @endphp
  32. <strong
  33. @class([
  34. 'text-lg',
  35. 'text-green-700' => $isNetEarnings && $isPositive,
  36. 'text-danger-700' => $isNetEarnings && ! $isPositive,
  37. ])
  38. >
  39. {{ $summary['value'] }}
  40. </strong>
  41. </div>
  42. @if(! $loop->last)
  43. <div class="flex items-center justify-center px-2">
  44. <strong class="text-lg">
  45. {{ $loop->remaining === 1 ? '=' : '-' }}
  46. </strong>
  47. </div>
  48. @endif
  49. @endforeach
  50. </div>
  51. @endif
  52. </x-filament::section>
  53. <x-filament-tables::container>
  54. <div class="es-table__header-ctn"></div>
  55. <div
  56. class="relative divide-y divide-gray-200 overflow-x-auto dark:divide-white/10 dark:border-t-white/10 min-h-64">
  57. <div wire:init="applyFilters" class="flex items-center justify-center w-full h-full absolute">
  58. <div wire:loading wire:target="applyFilters">
  59. <x-filament::loading-indicator class="p-6 text-primary-700 dark:text-primary-300"/>
  60. </div>
  61. </div>
  62. @if($this->reportLoaded)
  63. <div wire:loading.remove wire:target="applyFilters">
  64. @if($this->report)
  65. <x-company.tables.reports.detailed-report :report="$this->report"/>
  66. @endif
  67. </div>
  68. @endif
  69. </div>
  70. <div class="es-table__footer-ctn border-t border-gray-200"></div>
  71. </x-filament-tables::container>
  72. </x-filament-panels::page>