Disapproved functionality for customer review implemented
This commit is contained in:
parent
af5f039cb9
commit
5584aa27a8
|
|
@ -76,6 +76,8 @@ class CustomerReviewDataGrid extends DataGrid
|
|||
return '<span class="badge badge-md badge-success">Approved</span>';
|
||||
else if ($value->product_review_status == "pending")
|
||||
return '<span class="badge badge-md badge-warning">Pending</span>';
|
||||
else if ($value->product_review_status == "disapproved")
|
||||
return '<span class="badge badge-md badge-danger">Disapproved</span>';
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -701,7 +701,8 @@ return [
|
|||
'status' => 'Status',
|
||||
'comment' => 'Comment',
|
||||
'pending' => 'Pending',
|
||||
'approved' => 'Approved'
|
||||
'approved' => 'Approve',
|
||||
'disapproved' => 'Disapprove'
|
||||
],
|
||||
|
||||
'subscribers' => [
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<div class="page-title">
|
||||
<h1>
|
||||
<i class="icon angle-left-icon back-link" onclick="history.length > 1 ? history.go(-1) : window.location = '{{ url('/admin/dashboard') }}';"></i>
|
||||
|
||||
|
||||
{{ __('admin::app.customers.reviews.edit-title') }}
|
||||
</h1>
|
||||
</div>
|
||||
|
|
@ -51,12 +51,17 @@
|
|||
<div class="control-group">
|
||||
<label for="name" class="required">{{ __('admin::app.customers.reviews.status') }}</label>
|
||||
<select class="control" name="status">
|
||||
<option value="pending" {{ $review->status == "pending" ? 'selected' : ''}}>
|
||||
{{ __('admin::app.customers.reviews.pending') }}
|
||||
</option>
|
||||
<option value="approved" {{ $review->status == "approved" ? 'selected' : '' }}>
|
||||
{{ __('admin::app.customers.reviews.approved') }}
|
||||
</option>
|
||||
|
||||
<option value="disapproved" {{ $review->status == "disapproved" ? 'selected' : ''}}>
|
||||
{{ __('admin::app.customers.reviews.disapproved') }}
|
||||
</option>
|
||||
|
||||
<option value="pending" {{ $review->status == "pending" ? 'selected' : ''}}>
|
||||
{{ __('admin::app.customers.reviews.pending') }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue