You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

income-statement-summary.blade.php 1.5KB

12345678910111213141516171819202122232425262728
  1. <table class="w-full table-auto divide-y divide-gray-200 dark:divide-white/5">
  2. <x-company.tables.header :headers="$report->getSummaryHeaders()" :alignment-class="[$report, 'getAlignmentClass']"/>
  3. @foreach($report->getSummaryCategories() as $accountCategory)
  4. <tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
  5. <tr>
  6. @foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell)
  7. <x-company.tables.cell :alignment-class="$report->getAlignmentClass($accountCategorySummaryIndex)">
  8. {{ $accountCategorySummaryCell }}
  9. </x-company.tables.cell>
  10. @endforeach
  11. </tr>
  12. @if($accountCategory->header['account_name'] === 'Cost of Goods Sold')
  13. <tr class="bg-gray-50 dark:bg-white/5">
  14. @foreach($report->getGrossProfit() as $grossProfitIndex => $grossProfitCell)
  15. <x-filament-tables::cell class="{{ $report->getAlignmentClass($grossProfitIndex) }}">
  16. <div class="px-3 py-2 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
  17. {{ $grossProfitCell }}
  18. </div>
  19. </x-filament-tables::cell>
  20. @endforeach
  21. </tr>
  22. @endif
  23. </tbody>
  24. @endforeach
  25. <x-company.tables.footer :totals="$report->getSummaryOverallTotals()"
  26. :alignment-class="[$report, 'getAlignmentClass']"/>
  27. </table>