details.blade.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <div class="modal-dialog modal-lg">
  2. <div class="modal-content">
  3. <div class="modal-header">
  4. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  5. <h4 class="modal-title">Journal Details</h4>
  6. </div>
  7. <div class="modal-body">
  8. <table class="table table-striped table-bordered">
  9. <thead>
  10. <tr>
  11. <th>Sl.</th>
  12. <th>Date</th>
  13. <th>Debit Account</th>
  14. <th>Credit Account</th>
  15. <th>Amount</th>
  16. <th>Description</th>
  17. <th>Created By</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. @if($journal)
  22. <?php $index=1; ?>
  23. @foreach($journal as $jrnl)
  24. <tr>
  25. <td>{{ $index }}</td>
  26. <td>{{ date('d M, Y',strtotime($jrnl->created_at)) }}</td>
  27. <td>{{ $jrnl->debit?$jrnl->debit->name:'' }}</td>
  28. <td>{{ $jrnl->credit?$jrnl->credit->name:'' }}</td>
  29. <td>{{ $jrnl->amount }}</td>
  30. <td>{{ $jrnl->description }}</td>
  31. <td>{{ $jrnl->user?$jrnl->user->name:'' }}</td>
  32. </tr>
  33. <?php $index++; ?>
  34. @endforeach
  35. @endif
  36. </tbody>
  37. </table>
  38. </div>
  39. <div class="modal-footer">
  40. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  41. <!-- <button type="button" class="btn btn-primary">Save changes</button> -->
  42. </div>
  43. </div>
  44. </div>