Export.blade.php 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <table>
  2. <thead>
  3. <tr>
  4. <th colspan="8">{{ __('words.report_history_purchase') }}</th>
  5. </tr>
  6. <tr>
  7. <th colspan="8" rowspan="2">{{ __('words.period', ['number' => '']) }}
  8. {{ $sales->first()['createdAt'] }}
  9. -
  10. {{ $sales->last()['createdAt'] }} </th>
  11. </tr>
  12. <tr></tr>
  13. <tr>
  14. <th>#</th>
  15. <th>{{ __('words.date') }}</th>
  16. <th>{{ __('words.number') }}</th>
  17. <th>{{ __('words.product_name') }}</th>
  18. <th>{{ __('words.quantity') }}</th>
  19. <th>{{ __('words.status') }}</th>
  20. <th>PPN</th>
  21. <th>{{ __('words.total_price') }}</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. @foreach ($sales as $index => $sale)
  26. <tr>
  27. <td>{{ ++$index }}</td>
  28. <td>{{ $sale['createdAt'] }}</td>
  29. <td>{{ $sale['number'] }}</td>
  30. <td>{{ $sale['name'] }}</td>
  31. <td>{{ $sale['qty'] }}</td>
  32. <td>{{ $sale['status'] }}</td>
  33. <td>{{ $sale['ppn'] }}</td>
  34. <td>{{ $sale['price'] }}</td>
  35. </tr>
  36. @endforeach
  37. <tr>
  38. <td colspan="7">{{ __('words.total') }}</td>
  39. </tr>
  40. </tbody>
  41. </table>