document attachment

This commit is contained in:
Cüneyt Şentürk 2021-01-21 22:29:06 +03:00
parent 406e438acd
commit e2a2723e28
2 changed files with 2 additions and 2 deletions

View File

@ -512,7 +512,7 @@ abstract class DocumentShow extends Base
$this->hideNote = $hideNote;
$this->hideAttachment = $hideAttachment;
$this->attachment = $attachment;
$this->attachment = !empty($attachment) ? $attachment : !empty($document) ? $document->attachment : '';
$this->textItems = $textItems;
$this->textQuantity = $textQuantity;

View File

@ -1,5 +1,5 @@
@if ($attachment)
<div class="row align-items-center">
<div class="row align-items-center mb-4">
<div class="col-xs-12 col-sm-4">
@php
$file = $attachment;