I'm using the Admin Resource when I click the View or Edit Icon, I don't get any details. How do I get it to display the details?
<?php
//MileageResource.php
use \koolreport\dashboard\admin\Resource;
use \koolreport\dashboard\fields\ID;
use \koolreport\dashboard\fields\Number;
use \koolreport\dashboard\fields\Date;
class MileageResource extends \koolreport\dashboard\admin\Resource
{
protected function onCreated()
{
$this
->manageTable("mec_mileage")
->inSource(MECLogs::class)
->listScreen()
->adminTable()
->pageSize(20);
}
protected function fields()
{
return [
ID::create("mileageId")
->showOnCreate(false)
->showOnIndex(true)
->showOnUpdate(true),
Date::create("mileageDate")
->sort("desc"),
Number::create("mileage")
->decimals(1),
];
}
}