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

12345678910111213141516171819202122232425262728293031
  1. <table class="w-full table-fixed divide-y divide-gray-200 dark:divide-white/5">
  2. <colgroup>
  3. <col span="1" style="width: 65%;">
  4. <col span="1" style="width: 35%;">
  5. </colgroup>
  6. <x-company.tables.header :headers="$report->getSummaryHeaders()"
  7. :alignment-class="[$report, 'getAlignmentClass']"/>
  8. @foreach($report->getSummaryCategories() as $accountCategory)
  9. <tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
  10. <tr>
  11. @foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell)
  12. <x-company.tables.cell :alignment-class="$report->getAlignmentClass($accountCategorySummaryIndex)">
  13. {{ $accountCategorySummaryCell }}
  14. </x-company.tables.cell>
  15. @endforeach
  16. </tr>
  17. @if($accountCategory->header['account_name'] === 'Cost of Goods Sold')
  18. <tr class="bg-gray-50 dark:bg-white/5">
  19. @foreach($report->getGrossProfit() as $grossProfitIndex => $grossProfitCell)
  20. <x-company.tables.cell :alignment-class="$report->getAlignmentClass($grossProfitIndex)" bold="true">
  21. {{ $grossProfitCell }}
  22. </x-company.tables.cell>
  23. @endforeach
  24. </tr>
  25. @endif
  26. </tbody>
  27. @endforeach
  28. <x-company.tables.footer :totals="$report->getSummaryOverallTotals()"
  29. :alignment-class="[$report, 'getAlignmentClass']"/>
  30. </table>