<?php
 namespace ModStart\Admin\Concern; use ModStart\Admin\Layout\AdminDialogPage; use ModStart\Admin\Layout\AdminPage; use ModStart\Core\Input\Request; use ModStart\Core\Util\CRUDUtil; use ModStart\Grid\Grid; trait HasAdminDetail { private function computeTitleDetail($subject, $langId) { $title = ($subject ? $subject . ' ' . L($langId) : L($langId)); return $this->pageTitle ? $this->pageTitle : $title; } public function show(AdminDialogPage $page) { $detail = $this->detail(); return $page->pageTitle($this->computeTitleDetail($detail->title(), 'Show'))->body($detail->show(CRUDUtil::id())); } }