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.

account-transactions-report-pdf.blade.php 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <div class="date-range">Date Range: {{ $startDate }} to {{ $endDate }}</div>
  7. </div>
  8. <table class="table-class">
  9. <thead class="table-head">
  10. <tr>
  11. @foreach($report->getHeaders() as $index => $header)
  12. <th class="{{ $report->getAlignmentClass($index) }}">
  13. {{ $header }}
  14. </th>
  15. @endforeach
  16. </tr>
  17. </thead>
  18. @foreach($report->getCategories() as $category)
  19. <tbody>
  20. <tr class="category-header-row">
  21. <td colspan="{{ count($report->getHeaders()) }}">
  22. <div>
  23. @foreach($category->header as $headerRow)
  24. <div>
  25. @foreach($headerRow as $headerValue)
  26. @if (!empty($headerValue))
  27. {{ $headerValue }}
  28. @endif
  29. @endforeach
  30. </div>
  31. @endforeach
  32. </div>
  33. </td>
  34. </tr>
  35. @foreach($category->data as $dataIndex => $transaction)
  36. <tr
  37. @class([
  38. 'category-header-row' => $loop->first || $loop->last || $loop->remaining === 1,
  39. ])>
  40. @foreach($transaction as $cellIndex => $cell)
  41. <td @class([
  42. $report->getAlignmentClass($cellIndex),
  43. 'whitespace-normal' => $cellIndex === 'description',
  44. 'whitespace-nowrap' => $cellIndex !== 'description',
  45. ])
  46. >
  47. @if(is_array($cell) && isset($cell['description']))
  48. {{ $cell['description'] }}
  49. @else
  50. {{ $cell }}
  51. @endif
  52. </td>
  53. @endforeach
  54. </tr>
  55. @endforeach
  56. @unless($loop->last)
  57. <tr class="spacer-row">
  58. <td colspan="{{ count($report->getHeaders()) }}"></td>
  59. </tr>
  60. @endunless
  61. </tbody>
  62. @endforeach
  63. </table>
  64. @endsection