это функция класса области
public function findLatestReport()
{
$getReport = Report::get()->filter('AreaID',$this->ID)
->sort('Date ASC')->first();
return $getReport;
}
Это функция класса отчета
public function getWeatherStatus()
{
return $this->Fields()->filter('Name', 'Weather Status')->first();
}
есть ли способ отобразить шаблон 'area' деталей WeatherStatus .??
<% loop $findLatestReport %>
{$WeatherStatus}
<% end_loop %>