free.blade.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @extends('auth.layouts')
  2. @section('title',\App\Components\Helpers::systemConfig()['website_name'])
  3. @section('content')
  4. <h4 class="caption-subject font-dark bold">{{trans('home.free_invite_codes_title')}}</h4>
  5. <div class="table-responsive">
  6. <table class="table table-hover text-center">
  7. @if(\App\Components\Helpers::systemConfig()['is_invite_register'])
  8. @if(\App\Components\Helpers::systemConfig()['is_free_code'])
  9. <thead class="thead-default">
  10. <tr>
  11. <th> {{trans('home.invite_code_table_name')}} </th>
  12. <th> {{trans('home.invite_code_table_date')}} </th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. @if($inviteList->isEmpty())
  17. <tr>
  18. <td colspan="2">{{trans('home.invite_code_table_none_codes')}}</td>
  19. </tr>
  20. @else
  21. @foreach($inviteList as $invite)
  22. <tr>
  23. <td><a href="/register?code={{$invite->code}}" target="_blank">{{$invite->code}}</a></td>
  24. <td> {{$invite->dateline}} </td>
  25. </tr>
  26. @endforeach
  27. @endif
  28. </tbody>
  29. @else
  30. <tbody>
  31. <tr>
  32. <td colspan="2">{{trans('home.invite_code_table_none_codes')}}</td>
  33. </tr>
  34. </tbody>
  35. @endif
  36. @else
  37. <tbody>
  38. <tr>
  39. <td colspan="2">{{trans('home.no_need_invite_codes')}}</td>
  40. </tr>
  41. </tbody>
  42. @endif
  43. </table>
  44. </div>
  45. @if(\App\Components\Helpers::systemConfig()['is_invite_register'] && \App\Components\Helpers::systemConfig()['is_free_code'])
  46. <div class="mt-20">
  47. <a href="/login" class="btn btn-danger btn-lg float-left">{{trans('auth.back')}}</a>
  48. <nav class="Page navigation float-right">
  49. {{$inviteList->links()}}
  50. </nav>
  51. </div>
  52. @endif
  53. @endsection