Skip to content

Commit

Permalink
update again
Browse files Browse the repository at this point in the history
  • Loading branch information
internalerl committed Jan 5, 2023
1 parent e8b4915 commit 7a99e2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/PoliceCreateReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public function index()
$recordIDs = $database->collection('sos-distress-message')->document($viewdisID);
$messageRef = $recordIDs->snapshot();

session(['monthSOSDM' => $messageRef['month_sent']]);
session(['yearSOSDM' => $messageRef['year_sent']]);

date_default_timezone_set('Asia/Singapore');
$date = date('m/d/Y h:i:s a', time());

Expand Down
4 changes: 4 additions & 0 deletions app/Http/Controllers/VawCreateReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function index()
$brgyUserIDRef = $database->collection('barangay_accounts')->document($brgyUser);
$userRef = $brgyUserIDRef->snapshot();


session(['monthSOSDM' => $messageRef['month_sent']]);
session(['yearSOSDM' => $messageRef['year_sent']]);

date_default_timezone_set('Asia/Singapore');
$date = date('m/d/Y h:i:s a', time());

Expand Down
3 changes: 0 additions & 3 deletions app/Http/Controllers/VawReviewDistressMessageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public function index()
$recordIDs = $database->collection('sos-distress-message')->document($viewdisID);
$messageRef = $recordIDs->snapshot();

session(['monthSOSDM' => $messageRef['month_sent']]);
session(['yearSOSDM' => $messageRef['year_sent']]);

$policeRef = $database->collection('police_accounts');
$polRef = $policeRef->documents();

Expand Down

0 comments on commit 7a99e2b

Please sign in to comment.