moon mailer
This commit is contained in:
@@ -73,13 +73,13 @@ class MoonMailerCommand extends Command
|
|||||||
|
|
||||||
//Get all contacts from the rentals group
|
//Get all contacts from the rentals group
|
||||||
$contacts = MoonRental::select('Contact')->groupBy('Contact')->get();
|
$contacts = MoonRental::select('Contact')->groupBy('Contact')->get();
|
||||||
dd($contacts);
|
|
||||||
//For each of the contacts totalize the moon rental, and create the mail to send to them,
|
//For each of the contacts totalize the moon rental, and create the mail to send to them,
|
||||||
//then update parameters of the moon
|
//then update parameters of the moon
|
||||||
foreach($contacts as $contact) {
|
foreach($contacts as $contact) {
|
||||||
//Get the moons the renter is renting
|
//Get the moons the renter is renting
|
||||||
$rentals = $this->GetRentalMoons($contact);
|
$rentals = $this->GetRentalMoons($contact);
|
||||||
dd($rentals);
|
dd($contact);
|
||||||
//Totalize the cost of the moons
|
//Totalize the cost of the moons
|
||||||
$cost = $this->TotalizeMoonCost($rentals);
|
$cost = $this->TotalizeMoonCost($rentals);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user