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-pdf.blade.php 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @extends('components.company.reports.layout')
  2. @section('content')
  3. <div class="header">
  4. <div class="title">{{ $report->getTitle() }}</div>
  5. <div class="company-name">{{ $company->name }}</div>
  6. @if($startDate && $endDate)
  7. <div class="date-range">Date Range: {{ $startDate }} to {{ $endDate }}</div>
  8. @else
  9. <div class="date-range">As of {{ $endDate }}</div>
  10. @endif
  11. </div>
  12. <table class="table-class">
  13. <colgroup>
  14. <col span="1" style="width: 65%;">
  15. <col span="1" style="width: 35%;">
  16. </colgroup>
  17. <thead class="table-head">
  18. <tr>
  19. @foreach($report->getSummaryHeaders() as $index => $header)
  20. <th class="{{ $report->getAlignmentClass($index) }}">
  21. {{ $header }}
  22. </th>
  23. @endforeach
  24. </tr>
  25. </thead>
  26. @foreach($report->getSummaryCategories() as $category)
  27. <tbody>
  28. <tr>
  29. @foreach($category->summary as $index => $cell)
  30. <td @class([
  31. $report->getAlignmentClass($index),
  32. ])
  33. >
  34. {{ $cell }}
  35. </td>
  36. @endforeach
  37. </tr>
  38. @if($category->summary['account_name'] === 'Cost of Goods Sold')
  39. <tr class="category-header-row">
  40. @foreach($report->getGrossProfit() as $grossProfitIndex => $grossProfitCell)
  41. <td class="{{ $report->getAlignmentClass($grossProfitIndex) }}">
  42. {{ $grossProfitCell }}
  43. </td>
  44. @endforeach
  45. </tr>
  46. @endif
  47. </tbody>
  48. @endforeach
  49. <tfoot>
  50. <tr class="category-header-row">
  51. @foreach ($report->getOverallTotals() as $index => $total)
  52. <td class="{{ $report->getAlignmentClass($index) }}">
  53. {{ $total }}
  54. </td>
  55. @endforeach
  56. </tr>
  57. </tfoot>
  58. </table>
  59. @endsection