diff --git a/app/View/Components/Documents/Index/Information.php b/app/View/Components/Documents/Index/Information.php index 194898b24..81f7ef091 100644 --- a/app/View/Components/Documents/Index/Information.php +++ b/app/View/Components/Documents/Index/Information.php @@ -19,6 +19,8 @@ class Information extends Component public $showRoute; + public $showDocumentRoute; + public $placement; /** @@ -27,11 +29,12 @@ class Information extends Component * @return void */ public function __construct( - $document, bool $hideShow = false, string $showRoute = '', string $placement = '' + $document, bool $hideShow = false, string $showRoute = '', string $showDocumentRoute = '', string $placement = '' ) { $this->document = $document; $this->hideShow = $hideShow; $this->showRoute = $this->getShowRoute($document->contact->type, $showRoute); + $this->showDocumentRoute = $this->getShowRoute($document->type, $showDocumentRoute); $this->placement = (! empty($placement)) ? $placement : 'left'; } diff --git a/resources/views/components/documents/index/information.blade.php b/resources/views/components/documents/index/information.blade.php index a2e3fb1a6..eb6bd2a13 100644 --- a/resources/views/components/documents/index/information.blade.php +++ b/resources/views/components/documents/index/information.blade.php @@ -47,6 +47,10 @@ @if ($document->items->count()) @foreach ($document->items as $document_item) + @if ($loop->index > 1) + @break + @endif +