bug fixes and new additions

This commit is contained in:
Kwesi Banson Jnr
2025-08-13 00:10:17 +00:00
parent cf39ff2682
commit eabf61b7da
133 changed files with 4231 additions and 590 deletions

View File

@@ -14,6 +14,29 @@ class UtilityController extends Controller
public function underconstruction(){
return view('utility.underconstruction');
}
public function migrateSenderids(){
$senderid = Models\Senderidold::with('network_info', 'client_info')->where('direct_mno', 'YES')->get();
// dd($senderid);
$counter = 0;
foreach ($senderid as $row) {
// dd($row);
$senderid_arr['senderid'] = $row->senderid;
$senderid_arr['created_by'] = $row->created_by;
$senderid_arr['last_modified_by'] = $row->last_modified_by;
$senderid_arr['remarks'] = $row->remarks;
$senderid_arr['mno_name'] = $row->network_info->name . ' (' . $row->network_info->country .')';
$senderid_arr['status'] = $row->status;
$senderid_arr['direct_mno'] = $row->direct_mno;
$senderid_arr['created_at'] = $row->created_at;
$senderid_arr['modified_at'] = $row->modified_at;
$result = Models\SenderId::create($senderid_arr);
// dump($result);
$counter++;
}
return ['gip' => 'string', 'counter' => $counter];
}
public function EmailTest(Mailer $mailer)
{
dispatch(new SendTestEmail());