dashboard.template.blade.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="row mt-3">
  2. <div class="col-8">
  3. <div class="table-responsive p-0 bg-white table-sm stag-table border-top">
  4. <table class="table table-hover text-nowrap table-striped border-left border-right border-bottom">
  5. <thead>
  6. <tr>
  7. <th colspan="2" class="px-2">Record Details</th>
  8. </tr>
  9. </thead>
  10. <tbody>
  11. <?php foreach($record as $k => $v): ?>
  12. <?php
  13. if($k === 'id' || $k === 'uid') continue;
  14. $displayValue = $record->$k;
  15. if(substr($k, -3) === '_at') {
  16. $displayValue = friendly_date_time($record->$k);
  17. }
  18. ?>
  19. <tr>
  20. <td class="px-2 text-secondary border-right w-50">{{ ucwords(str_replace("_", " ", $k)) }}</td>
  21. <td class="px-2 font-weight-bold w-50">{{ $displayValue }}</td>
  22. </tr>
  23. <?php endforeach; ?>
  24. </tbody>
  25. </table>
  26. </div>
  27. </div>
  28. <div class="col-4">
  29. <div class="border-left h-100 pl-3">
  30. @include('_ACTION_LINKS_VIEW_')
  31. </div>
  32. </div>
  33. </div>