diff --git a/resources/views/incomes/invoices/edit.blade.php b/resources/views/incomes/invoices/edit.blade.php index 0c49c53c5..cf713c298 100644 --- a/resources/views/incomes/invoices/edit.blade.php +++ b/resources/views/incomes/invoices/edit.blade.php @@ -203,7 +203,9 @@ $('#attachment').fancyfile({ text : '{{ trans('general.form.select.file') }}', style : 'btn-default', + @if($invoice->attachment) placeholder : 'attachment->basename; ?>' + @endif }); var autocomplete_path = "{{ url('items/items/autocomplete') }}"; diff --git a/resources/views/incomes/invoices/show.blade.php b/resources/views/incomes/invoices/show.blade.php index bdeb10362..1b4cbaaa5 100644 --- a/resources/views/incomes/invoices/show.blade.php +++ b/resources/views/incomes/invoices/show.blade.php @@ -178,6 +178,12 @@ @endpermission + + @if($invoice->attachment) + + {{ $invoice->attachment->basename }} + + @endif