1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- @extends('backend.layouts.app')
- @section('content')
- <div class="card">
- <div class="card-header">
- <h5 class="mb-0 h6">{{ translate('Seller Verification') }}</h5>
- <div class="pull-right clearfix">
- <a href="{{ route('sellers.reject', $shop->id) }}" class="btn btn-circle btn-danger d-innline-block">{{translate('Reject')}}</a></li>
- <a href="{{ route('sellers.approve', $shop->id) }}" class="btn btn-circle btn-success d-innline-block">{{translate('Accept')}}</a>
- </div>
- </div>
- <div class="card-body row">
- <div class="col-md-5">
- <h6 class="mb-4">{{ translate('User Info') }}</h6>
- <p class="text-muted">
- <strong>{{ translate('Name') }} :</strong>
- <span class="ml-2">{{ $shop->user->name }}</span>
- </p>
- <p class="text-muted">
- <strong>{{translate('Email')}}</strong>
- <span class="ml-2">{{ $shop->user->email }}</span>
- </p>
- <p class="text-muted">
- <strong>{{translate('Address')}}</strong>
- <span class="ml-2">{{ $shop->user->address }}</span>
- </p>
- <p class="text-muted">
- <strong>{{translate('Phone')}}</strong>
- <span class="ml-2">{{ $shop->user->phone }}</span>
- </p>
- <br>
- <h6 class="mb-4">{{ translate('Shop Info') }}</h6>
- <p class="text-muted">
- <strong>{{translate('Shop Name')}}</strong>
- <span class="ml-2">{{ $shop->user->shop->name }}</span>
- </p>
- <p class="text-muted">
- <strong>{{translate('Address')}}</strong>
- <span class="ml-2">{{ $shop->address }}</span>
- </p>
- </div>
- <div class="col-md-5">
- <h6 class="mb-4">{{ translate('Verification Info') }}</h6>
- <table class="table table-striped table-bordered" cellspacing="0" width="100%">
- <tbody>
- @foreach (json_decode($shop->verification_info) as $key => $info)
- <tr>
- <th class="text-muted">{{ $info->label }}</th>
- @if ($info->type == 'text' || $info->type == 'select' || $info->type == 'radio')
- <td>{{ $info->value }}</td>
- @elseif ($info->type == 'multi_select')
- <td>
- {{ implode(', ', json_decode($info->value)) }}
- </td>
- @elseif ($info->type == 'file')
- <td>
- <a href="{{ my_asset($info->value) }}" target="_blank" class="btn-info">{{translate('Click here')}}</a>
- </td>
- @endif
- </tr>
- @endforeach
- </tbody>
- </table>
- <div class="text-center">
- <a href="{{ route('sellers.reject', $shop->id) }}" class="btn btn-sm btn-danger d-innline-block">{{translate('Reject')}}</a></li>
- <a href="{{ route('sellers.approve', $shop->id) }}" class="btn btn-sm btn-success d-innline-block">{{translate('Accept')}}</a>
- </div>
- </div>
- </div>
- </div>
- @endsection
|