feat: add life events feature (#1765)

This commit is contained in:
Régis Freyd
2018-09-25 19:18:07 -04:00
committed by GitHub
parent 1908b96a8a
commit e3e9fcbdcd
116 changed files with 4212 additions and 98 deletions
+17 -1
View File
@@ -200,6 +200,19 @@ class ContactsController extends Controller
// list of active features
$modules = $contact->account->modules()->active()->get();
// add `---` at the top of the dropdowns
$days = DateHelper::getListOfDays();
$days->prepend([
'id' => 0,
'name' => '---',
]);
$months = DateHelper::getListOfMonths();
$months->prepend([
'id' => 0,
'name' => '---',
]);
return view('people.profile')
->withLoveRelationships($loveRelationships)
->withFamilyRelationships($familyRelationships)
@@ -207,7 +220,10 @@ class ContactsController extends Controller
->withWorkRelationships($workRelationships)
->withReminders($reminders)
->withModules($modules)
->withContact($contact);
->withContact($contact)
->withDays($days)
->withMonths($months)
->withYears(DateHelper::getListOfYears());
}
/**