diff --git a/resources/views/purchases/payments/edit.blade.php b/resources/views/purchases/payments/edit.blade.php index c92e93fb6..46e50e34c 100644 --- a/resources/views/purchases/payments/edit.blade.php +++ b/resources/views/purchases/payments/edit.blade.php @@ -57,12 +57,14 @@ {{ Form::textGroup('reference', trans('general.reference'), 'file',[]) }} -
- @if($payment->attachment) + @if ($payment->attachment) +
@php $file = $payment->attachment; @endphp @include('partials.media.file') - @endif -
+
+ @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) }} diff --git a/resources/views/sales/revenues/edit.blade.php b/resources/views/sales/revenues/edit.blade.php index 25abb483d..4fde29250 100644 --- a/resources/views/sales/revenues/edit.blade.php +++ b/resources/views/sales/revenues/edit.blade.php @@ -57,12 +57,14 @@ {{ Form::textGroup('reference', trans('general.reference'), 'file',[]) }} -
- @if($revenue->attachment) + @if ($revenue->attachment) +
@php $file = $revenue->attachment; @endphp @include('partials.media.file') - @endif -
+
+ @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) }}