diff --git a/app/View/Components/Documents/Index/Information.php b/app/View/Components/Documents/Index/Information.php index 81f7ef091..4f4f5ec33 100644 --- a/app/View/Components/Documents/Index/Information.php +++ b/app/View/Components/Documents/Index/Information.php @@ -23,19 +23,22 @@ class Information extends Component public $placement; + public $id; + /** * Create a new component instance. * * @return void */ public function __construct( - $document, bool $hideShow = false, string $showRoute = '', string $showDocumentRoute = '', string $placement = '' + $document, bool $hideShow = false, string $showRoute = '', string $showDocumentRoute = '', string $placement = '', string $id = '' ) { $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'; + $this->id = (! empty($id)) ? $id : 'tooltip-information-' . $document->id; } /** diff --git a/resources/views/components/contacts/show/content.blade.php b/resources/views/components/contacts/show/content.blade.php index f5c873cc7..323882e4d 100644 --- a/resources/views/components/contacts/show/content.blade.php +++ b/resources/views/components/contacts/show/content.blade.php @@ -309,11 +309,15 @@ {{ $item->account->name }} - + @if ($item->document) {{ $item->document->document_number }} + +
+ + @else @endif diff --git a/resources/views/components/documents/index/information.blade.php b/resources/views/components/documents/index/information.blade.php index 3d4008926..070d93371 100644 --- a/resources/views/components/documents/index/information.blade.php +++ b/resources/views/components/documents/index/information.blade.php @@ -1,4 +1,4 @@ -