moon mailer

This commit is contained in:
2019-05-31 21:46:55 -05:00
parent 23640cd8bd
commit eb40b899e0

View File

@@ -73,13 +73,13 @@ class MoonMailerCommand extends Command
//Get all contacts from the rentals group
$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,
//then update parameters of the moon
foreach($contacts as $contact) {
//Get the moons the renter is renting
$rentals = $this->GetRentalMoons($contact);
dd($rentals);
dd($contact);
//Totalize the cost of the moons
$cost = $this->TotalizeMoonCost($rentals);