show_verification_request.blade.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @extends('backend.layouts.app')
  2. @section('content')
  3. <div class="card">
  4. <div class="card-header">
  5. <h5 class="mb-0 h6">{{ translate('Affiliate User Verification')}}</h5>
  6. </div>
  7. <div class="card-body row">
  8. <div class="col-md-4">
  9. <h6 class="mb-4">{{ translate('User Info') }}</h6>
  10. <p class="text-muted">
  11. <strong>{{ translate('Name') }} :</strong>
  12. <span class="ml-2">{{ $affiliate_user->user->name }}</span>
  13. </p>
  14. <p class="text-muted">
  15. <strong>{{translate('Email')}}</strong>
  16. <span class="ml-2">{{ $affiliate_user->user->email }}</span>
  17. </p>
  18. <p class="text-muted">
  19. <strong>{{translate('Address')}}</strong>
  20. <span class="ml-2">{{ $affiliate_user->user->address }}</span>
  21. </p>
  22. <p class="text-muted">
  23. <strong>{{translate('Phone')}}</strong>
  24. <span class="ml-2">{{ $affiliate_user->user->phone }}</span>
  25. </p>
  26. </div>
  27. <div class="col-md-6">
  28. <h6 class="mb-4">{{ translate('Verification Info') }}</h6>
  29. <table class="table table-striped table-bordered" cellspacing="0" width="100%">
  30. <tbody>
  31. @foreach (json_decode($affiliate_user->informations) as $key => $info)
  32. <tr>
  33. <th class="text-muted">{{ $info->label }}</th>
  34. @if ($info->type == 'text' || $info->type == 'select' || $info->type == 'radio')
  35. <td>{{ $info->value }}</td>
  36. @elseif ($info->type == 'multi_select')
  37. <td>
  38. {{ implode(json_decode($info->value), ', ') }}
  39. </td>
  40. @elseif ($info->type == 'file')
  41. <td>
  42. <a href="{{ static_asset($info->value) }}" target="_blank" class="btn-info">{{ translate('Click here')}}</a>
  43. </td>
  44. @endif
  45. </tr>
  46. @endforeach
  47. </tbody>
  48. </table>
  49. <div class="text-center">
  50. <a href="{{ route('affiliate_user.reject', $affiliate_user->id) }}" class="btn btn-sm btn-default d-innline-block">{{ translate('Reject')}}</a></li>
  51. <a href="{{ route('affiliate_user.approve', $affiliate_user->id) }}" class="btn btn-sm btn-dark d-innline-block">{{ translate('Accept')}}</a>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. @endsection