verification.blade.php 3.2 KB

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