diff --git a/app/Http/Controllers/V3/Dashboard/RoadPatrol/OperatorController.php b/app/Http/Controllers/V3/Dashboard/RoadPatrol/OperatorController.php index 64543f92..e57e4c0d 100644 --- a/app/Http/Controllers/V3/Dashboard/RoadPatrol/OperatorController.php +++ b/app/Http/Controllers/V3/Dashboard/RoadPatrol/OperatorController.php @@ -46,9 +46,6 @@ class OperatorController extends Controller auth()->user()->addActivityComplete(1147); - Sms::sendSms($mission->officer_phone_number, - "گشت راهداری با کد یکتای $road_patrol->id در تاریخ " . verta(\Carbon\Carbon::now())->format('Y-m-d H:i:s') . " با شماره شما در سامانه RMS ثبت شد. \n لینک دریافت گزارش : \n https://rms.rmto.ir/v2/road_patrols/operator/report/$road_patrol->id" - ); return $this->successResponse(); } diff --git a/app/Models/Accident.php b/app/Models/Accident.php index fccd8842..aec15bce 100644 --- a/app/Models/Accident.php +++ b/app/Models/Accident.php @@ -123,7 +123,7 @@ class Accident extends Model protected function link(): Attribute { return Attribute::make( - get: fn (string $value) => env("PAYMENT_LINK")."/#/pay/".explode("/", $this->bill_code)[0]."/{$this->final_amount}", + get: fn ($value) => env("PAYMENT_LINK")."/#/pay/".explode("/", $this->bill_code)[0]."/{$this->final_amount}", ); } } diff --git a/database/migrations/2025_07_22_162735_make_columns_name_nullable_on_road_patrols.php b/database/migrations/2025_07_22_162735_make_columns_name_nullable_on_road_patrols.php new file mode 100644 index 00000000..4ac40ee8 --- /dev/null +++ b/database/migrations/2025_07_22_162735_make_columns_name_nullable_on_road_patrols.php @@ -0,0 +1,30 @@ +timestamp('start_time')->nullable()->change(); + $table->timestamp('end_time')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('road_patrols', function (Blueprint $table) { + $table->timestamp('start_time')->change(); + $table->timestamp('end_time')->change(); + }); + } +};