changed logic in edit rfq transporter page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Laravel Larastan / larastan (pull_request) Failing after 5m14s
Laravel Pint / pint (pull_request) Failing after 5m12s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Laravel Larastan / larastan (pull_request) Failing after 5m14s
Laravel Pint / pint (pull_request) Failing after 5m12s
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Filament\Resources\RfqTransporterBidResource\Pages;
|
||||
|
||||
use App\Filament\Resources\RfqTransporterBidResource;
|
||||
use App\Models\RequestQuotation;
|
||||
use App\Models\RfqTransporterBid;
|
||||
use App\Models\SpotRateTransportMaster;
|
||||
use App\Models\User;
|
||||
@@ -25,15 +26,19 @@ class EditRfqTransporterBid extends EditRecord
|
||||
// dd($this->record);
|
||||
|
||||
$rank = RfqTransporterBid::where('request_quotation_id', $this->record->request_quotation_id)
|
||||
->where('spot_rate_transport_master_id', $this->record->spot_rate_transport_master_id)
|
||||
->orderBy('total_freight_charge')
|
||||
->pluck('id')
|
||||
->search($this->record->id) + 1;
|
||||
|
||||
$spotRate = SpotRateTransportMaster::findOrFail(
|
||||
$this->record->spot_rate_transport_master_id
|
||||
|
||||
$requestQuotation = RequestQuotation::findOrFail(
|
||||
$this->record->request_quotation_id
|
||||
);
|
||||
|
||||
$spotRateId = $requestQuotation->spot_rate_transport_master_id;
|
||||
|
||||
$spotRate = SpotRateTransportMaster::findOrFail($spotRateId);
|
||||
|
||||
$userNames = json_decode($spotRate->user_name, true);
|
||||
|
||||
if (!is_array($userNames)) {
|
||||
|
||||
Reference in New Issue
Block a user