index.blade.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @extends('admin.table_layouts')
  2. @section('content')
  3. <div class="page-content container-fluid">
  4. <x-admin.table-panel :title="trans('admin.menu.node.cert')" :theads="[
  5. '#',
  6. trans('model.node_cert.domain'),
  7. trans('model.node_cert.key'),
  8. trans('model.node_cert.pem'),
  9. trans('model.node_cert.issuer'),
  10. trans('model.node_cert.signed_date'),
  11. trans('model.node_cert.expired_date'),
  12. trans('common.action'),
  13. ]" :count="trans('admin.node.cert.counts', ['num' => $certs->total()])" :pagination="$certs->links()" :delete-config="['url' => route('admin.node.cert.destroy', 'PLACEHOLDER'), 'attribute' => trans('model.node_cert.attribute')]">
  14. @can('admin.node.cert.create')
  15. <x-slot:actions>
  16. <a class="btn btn-primary" href="{{ route('admin.node.cert.create') }}">
  17. <i class="icon wb-plus" aria-hidden="true"></i> {{ trans('common.add') }}
  18. </a>
  19. </x-slot:actions>
  20. @endcan
  21. <x-slot:tbody>
  22. @foreach ($certs as $cert)
  23. <tr>
  24. <td> {{ $cert->id }} </td>
  25. <td> {{ $cert->domain }} </td>
  26. <td> {{ $cert->key ? '✔️' : '❌' }} </td>
  27. <td> {{ $cert->pem ? '✔️' : '❌' }} </td>
  28. <td> {{ $cert->issuer }} </td>
  29. <td> {{ $cert->from }} </td>
  30. <td> {{ $cert->to }} </td>
  31. <td>
  32. @canany(['admin.node.cert.edit', 'admin.node.cert.destroy'])
  33. <div class="btn-group">
  34. @can('admin.node.cert.edit')
  35. <a class="btn btn-primary" href="{{ route('admin.node.cert.edit', $cert) }}">
  36. <i class="icon wb-edit" aria-hidden="true"></i>
  37. </a>
  38. @endcan
  39. @can('admin.node.cert.destroy')
  40. <button class="btn btn-danger" data-action="delete">
  41. <i class="icon wb-trash" aria-hidden="true"></i>
  42. </button>
  43. @endcan
  44. </div>
  45. @endcanany
  46. </td>
  47. </tr>
  48. @endforeach
  49. </x-slot:tbody>
  50. </x-admin.table-panel>
  51. </div>
  52. @endsection