Viewing file: index.blade.php (6.19 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.admin')
@section('title') {{trans('admin.became_seller_list')}} @endsection
@section('extra-css') <link rel="stylesheet" href="{{asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')}}"> <link rel="stylesheet" href="{{asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')}}"> @endsection
@section('content') <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12 mt-3"> <div class="card"> <div class="card-header"> <h2 class="card-title">{{trans('admin.became_seller_list')}} <i data-toggle="tooltip" data-placement="right" class="fa fa-question-circle alert-tooltip" title="After purchasing the plan of RESELLER/MASTER RESELLER they have to verify their account. So that they have fill up verification form and submit. That verification request will listed in verification list. Admin will verify and approved them."></i> </h2> </div> <!-- /.card-header --> <div class="card-body table-body"> <table id="contacts" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th>@lang('customer.name')</th> <th>@lang('customer.email')</th> <th>@lang('customer.address')</th> <th>@lang('customer.country')</th> <th>@lang('customer.city')</th> <th>@lang('customer.zip_code')</th> <th>@lang('customer.status')</th> <th>@lang('customer.action')</th> </tr> </thead> <tbody> @foreach($becameSellers as $seller) <tr> <td>{{isset($seller->customer)?$seller->customer->fullname:''}}</td> <td>{{isset($seller->customer)?$seller->customer->email:''}}</td> <td>{{$seller->address}}</td> <td>{{$seller->country}}</td> <td>{{$seller->city}}</td> <td>{{$seller->zip_code}}</td> <td> <div class="btn-group"> <button type="button" class="btn btn-{{$seller->status=='approved'?'success':'danger'}} btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> {{ucfirst($seller->status)}} </button> <ul class="dropdown-menu" style="">
@if($seller->status=='pending') <button class="mr-1 dropdown-item" data-message="Are you sure you want to <b>Approved</b> this request?" data-action="{{route('admin.became.seller.status')}}" data-input={"id":{{$seller->id}},"status":"approved"} data-toggle="modal" data-target="#modal-confirm" > {{trans('admin.approved')}} </button> <button class="mr-1 dropdown-item" data-message="Are you sure you want to <b>Reject</b> this request? <input type='text' class='form-control mt-4' placeholder='Enter rejected reason' name='reason'>" data-action="{{route('admin.became.seller.status')}}" data-input={"id":{{$seller->id}},"status":"rejected"} data-toggle="modal" data-target="#modal-confirm" > {{trans('admin.rejected')}} </button>
@elseif($seller->status=='approved') <button class="mr-1 dropdown-item" data-message="Are you sure you want to <b>Reject</b> this request? <input type='text' class='form-control mt-4' placeholder='Enter rejected reason' name='reason'>" data-action="{{route('admin.became.seller.status')}}" data-input={"id":{{$seller->id}},"status":"rejected"} data-toggle="modal" data-target="#modal-confirm" > {{trans('admin.rejected')}} </button> @else <button class="dropdown-item d-block mt-3 btn-sm btn-{{$seller->status=='approved'?'success':'danger'}}" disabled type="button">{{trans('admin.rejected')}}</button> @endif </ul> </div> </td> <td> <a href="{{route('admin.became.seller.details',[$seller->id])}}" target="_blank" class="btn btn-sm btn-info" title="Details"><i class="fa fa-address-book"></i></a> </td> </tr> @endforeach </tbody>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content -->
@endsection
@section('extra-scripts')
@endsection
|