diff --git a/resources/views/purchases/payments/edit.blade.php b/resources/views/purchases/payments/edit.blade.php index 2f96ce145..c92e93fb6 100644 --- a/resources/views/purchases/payments/edit.blade.php +++ b/resources/views/purchases/payments/edit.blade.php @@ -57,7 +57,12 @@ {{ Form::textGroup('reference', trans('general.reference'), 'file',[]) }} - {{ Form::fileGroup('attachment', trans('general.attachment')) }} +
+ @if($payment->attachment) + @php $file = $payment->attachment; @endphp + @include('partials.media.file') + @endif +
@if ($payment->bill) {{ Form::textGroup('document', trans_choice('general.bills', 1), 'file-invoice', ['disabled' => 'disabled'], $payment->bill->bill_number) }} diff --git a/resources/views/sales/revenues/edit.blade.php b/resources/views/sales/revenues/edit.blade.php index 0b2889c47..25abb483d 100644 --- a/resources/views/sales/revenues/edit.blade.php +++ b/resources/views/sales/revenues/edit.blade.php @@ -57,7 +57,12 @@ {{ Form::textGroup('reference', trans('general.reference'), 'file',[]) }} - {{ Form::fileGroup('attachment', trans('general.attachment')) }} +
+ @if($revenue->attachment) + @php $file = $revenue->attachment; @endphp + @include('partials.media.file') + @endif +
@if ($revenue->invoice) {{ Form::textGroup('document', trans_choice('general.invoices', 1), 'file-invoice', ['disabled' => 'disabled'], $revenue->invoice->invoice_number) }}