fixed upload files

This commit is contained in:
denisdulici 2020-03-04 13:55:00 +03:00
parent 9838c03906
commit 2dd57c5084
2 changed files with 12 additions and 8 deletions

View File

@ -57,12 +57,14 @@
{{ Form::textGroup('reference', trans('general.reference'), 'file',[]) }}
<div class="col-md-6">
@if($payment->attachment)
@if ($payment->attachment)
<div class="col-md-6">
@php $file = $payment->attachment; @endphp
@include('partials.media.file')
@endif
</div>
</div>
@else
{{ Form::fileGroup('attachment', trans('general.attachment')) }}
@endif
@if ($payment->bill)
{{ Form::textGroup('document', trans_choice('general.bills', 1), 'file-invoice', ['disabled' => 'disabled'], $payment->bill->bill_number) }}

View File

@ -57,12 +57,14 @@
{{ Form::textGroup('reference', trans('general.reference'), 'file',[]) }}
<div class="col-md-6">
@if($revenue->attachment)
@if ($revenue->attachment)
<div class="col-md-6">
@php $file = $revenue->attachment; @endphp
@include('partials.media.file')
@endif
</div>
</div>
@else
{{ Form::fileGroup('attachment', trans('general.attachment')) }}
@endif
@if ($revenue->invoice)
{{ Form::textGroup('document', trans_choice('general.invoices', 1), 'file-invoice', ['disabled' => 'disabled'], $revenue->invoice->invoice_number) }}