Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

detailed-report.blade.php 4.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <table class="w-full table-auto divide-y divide-gray-200 dark:divide-white/5">
  2. <x-company.tables.header :headers="$report->getHeaders()" :alignment-class="[$report, 'getAlignmentClass']"/>
  3. @foreach($report->getCategories() as $accountCategory)
  4. <tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
  5. <x-company.tables.category-header :category-headers="$accountCategory->header"
  6. :alignment-class="[$report, 'getAlignmentClass']"/>
  7. @foreach($accountCategory->data as $categoryAccount)
  8. <tr>
  9. @foreach($categoryAccount as $accountIndex => $categoryAccountCell)
  10. <x-company.tables.cell :alignment-class="$report->getAlignmentClass($accountIndex)">
  11. @if(is_array($categoryAccountCell) && isset($categoryAccountCell['name']))
  12. @if($categoryAccountCell['name'] === 'Retained Earnings' && isset($categoryAccountCell['start_date']) && isset($categoryAccountCell['end_date']))
  13. <x-filament::link
  14. color="primary"
  15. target="_blank"
  16. icon="heroicon-o-arrow-top-right-on-square"
  17. :icon-position="\Filament\Support\Enums\IconPosition::After"
  18. :icon-size="\Filament\Support\Enums\IconSize::Small"
  19. href="{{ \App\Filament\Company\Pages\Reports\IncomeStatement::getUrl([
  20. 'startDate' => $categoryAccountCell['start_date'],
  21. 'endDate' => $categoryAccountCell['end_date']
  22. ]) }}"
  23. >
  24. {{ $categoryAccountCell['name'] }}
  25. </x-filament::link>
  26. @elseif(isset($categoryAccountCell['id']) && isset($categoryAccountCell['start_date']) && isset($categoryAccountCell['end_date']))
  27. <x-filament::link
  28. color="primary"
  29. target="_blank"
  30. icon="heroicon-o-arrow-top-right-on-square"
  31. :icon-position="\Filament\Support\Enums\IconPosition::After"
  32. :icon-size="\Filament\Support\Enums\IconSize::Small"
  33. href="{{ \App\Filament\Company\Pages\Reports\AccountTransactions::getUrl([
  34. 'startDate' => $categoryAccountCell['start_date'],
  35. 'endDate' => $categoryAccountCell['end_date'],
  36. 'selectedAccount' => $categoryAccountCell['id']
  37. ]) }}"
  38. >
  39. {{ $categoryAccountCell['name'] }}
  40. </x-filament::link>
  41. @else
  42. {{ $categoryAccountCell['name'] }}
  43. @endif
  44. @else
  45. {{ $categoryAccountCell }}
  46. @endif
  47. </x-company.tables.cell>
  48. @endforeach
  49. </tr>
  50. @endforeach
  51. <tr>
  52. @foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell)
  53. <x-company.tables.cell :alignment-class="$report->getAlignmentClass($accountCategorySummaryIndex)"
  54. bold="true">
  55. {{ $accountCategorySummaryCell }}
  56. </x-company.tables.cell>
  57. @endforeach
  58. </tr>
  59. <tr>
  60. <td colspan="{{ count($report->getHeaders()) }}">
  61. <div class="min-h-12"></div>
  62. </td>
  63. </tr>
  64. </tbody>
  65. @endforeach
  66. <x-company.tables.footer :totals="$report->getOverallTotals()" :alignment-class="[$report, 'getAlignmentClass']"/>
  67. </table>