index.blade.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @extends('base.base')
  2. @section('base')
  3. <div class="container">
  4. <h1>{{ __('repay_config.RePay Configurations') }}</h1>
  5. <a href="{{ route('repay_config.create') }}" class="btn btn-primary">{{ __('repay_config.Add New Configuration') }}</a>
  6. <table class="table mt-4">
  7. <thead>
  8. <tr>
  9. <th>{{ __('repay_config.ID') }}</th>
  10. <th>{{ __('repay_config.Pay Total') }}</th>
  11. <th>{{ __('repay_config.Pay Times') }}</th>
  12. <th>{{ __('repay_config.Withdraw Total') }}</th>
  13. <th>{{ __('repay_config.Less Than') }}</th>
  14. <th>{{ __('repay_config.Condition') }}</th>
  15. <th>{{ __('repay_config.Price') }}</th>
  16. <th>{{ __('repay_config.Amount') }}</th>
  17. <th>{{ __('repay_config.Gift') }}</th>
  18. <th>{{ __('repay_config.Time Limit') }}</th>
  19. <th>{{ __('repay_config.Status') }}</th>
  20. <th>{{ __('repay_config.Actions') }}</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. @foreach($repayConfigs as $config)
  25. <tr>
  26. <td>{{ $config->id }}</td>
  27. <td>{{ $config->PayTotal }}</td>
  28. <td>{{ $config->PayTimes }}</td>
  29. <td>{{ $config->WithdrawTotal }}</td>
  30. <td>{{ $config->LessThan }}</td>
  31. <td>{{ $config->Condition }}</td>
  32. <td>{{ $config->Price }}</td>
  33. <td>{{ $config->Amount }}</td>
  34. <td>{{ $config->Gift }}</td>
  35. <td>{{ $config->TimeLimit }}</td>
  36. <td>{{ $config->Status ? __('repay_config.Active') : __('repay_config.Inactive') }}</td>
  37. <td>
  38. <a href="{{ route('repay_config.show', $config->id) }}" class="btn btn-info">{{ __('repay_config.View') }}</a>
  39. <a href="{{ route('repay_config.edit', $config->id) }}" class="btn btn-warning">{{ __('repay_config.Edit') }}</a>
  40. <form action="{{ route('repay_config.destroy', $config->id) }}" method="POST" style="display:inline;">
  41. @csrf
  42. @method('DELETE')
  43. <button type="submit" class="btn btn-danger" onclick="return confirm('{{ __('repay_config.Are you sure?') }}')">{{ __('repay_config.Delete') }}</button>
  44. </form>
  45. </td>
  46. </tr>
  47. @endforeach
  48. </tbody>
  49. </table>
  50. </div>
  51. @endsection