update users
This commit is contained in:
@@ -4,12 +4,10 @@ namespace App\Nova\Actions;
|
||||
|
||||
use App\Models\Payment\OnlinePaymentHistory;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Laravel\Nova\Actions\Action;
|
||||
use Laravel\Nova\Actions\ActionResponse;
|
||||
use Laravel\Nova\Fields\ActionFields;
|
||||
use Laravel\Nova\Http\Requests\NovaRequest;
|
||||
|
||||
@@ -38,10 +36,10 @@ class CheckOnlinePaymentStatus extends Action
|
||||
$item = $models->first();
|
||||
|
||||
$onlinePaymentResource = OnlinePaymentHistory::query()
|
||||
->where('online_paymantable_type', $this->paymantable_type)
|
||||
->where('online_paymantable_id', $item->id)
|
||||
->latest()
|
||||
->first();
|
||||
->where('online_paymantable_type', $this->paymantable_type)
|
||||
->where('online_paymantable_id', $item->id)
|
||||
->latest()
|
||||
->first();
|
||||
|
||||
if (! $onlinePaymentResource) {
|
||||
return Action::modal('modal-response', [
|
||||
|
||||
Reference in New Issue
Block a user