moon admin

This commit is contained in:
2019-09-08 05:10:16 -05:00
parent 4220d1c5e3
commit fa4f642498

View File

@@ -21,6 +21,7 @@ use App\Models\MoonRent\MoonRental;
use App\Library\Moons\MoonCalc;
use App\Library\Esi\Esi;
use App\Library\Lookups\LookupHelper;
use App\Library\Lookups\NewLookupHelper;
class MoonsAdminController extends Controller
{
@@ -111,6 +112,7 @@ class MoonsAdminController extends Controller
$this->middleware('role:Admin');
$lookup = new LookupHelper;
$lookupHelper = new NewLookupHelper;
$contact = '';
$paid = '';
$rentalEnd = '';
@@ -171,7 +173,8 @@ class MoonsAdminController extends Controller
$rentalEnd = $rentalTemp->format('m-d');
//Set the contact name
$contact = $lookup->CharacterName($rental->Contact);
//$contact = $lookup->CharacterName($rental->Contact);
$contact = $lookupHelper->CharacterIdToName($rental->Contact);
//Set up the renter whether it's W4RP or another corporation
$ticker = $rental->RentalCorp;