Compare commits

...

2 Commits

Author SHA1 Message Date
2571d0ac57 Merge pull request 'changed logic in edit rfq transporter page' (#151) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #151
2026-01-27 08:44:53 +00:00
dhanabalan
814281a6bf 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
2026-01-27 14:14:41 +05:30

View File

@@ -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)) {