moon rental update for admin

This commit is contained in:
2019-04-29 03:03:03 -05:00
parent cf66f31892
commit e27519a8e9

View File

@@ -206,14 +206,12 @@ class MoonsAdminController extends Controller
'Planet' => $moon->Planet,
'Moon' => $moon->Moon,
'RentalEnd' => $moon->RentalEnd,
])->first(['Contact']);
])->first();
dd($contact);
if(!isset($contact)) {
if(!isset($contact->Contact)) {
$contact = 'None';
} else {
$contact = $contact->contact;
$contact = $contact->Contact;
}
//Set the color for the table