Media show stylesheet...

This commit is contained in:
cuneytsenturk
2019-02-02 11:15:24 +03:00
parent 2e6c42f7ba
commit 373c2f89e5
7 changed files with 143 additions and 32 deletions

View File

@@ -339,23 +339,8 @@
</div>
@if($invoice->attachment)
<span class="attachment">
<a href="{{ url('uploads/' . $invoice->attachment->id . '/download') }}">
<span id="download-attachment" class="text-primary">
<i class="fa fa-file-{{ $invoice->attachment->aggregate_type }}-o"></i> {{ $invoice->attachment->basename }}
</span>
</a>
{!! Form::open([
'id' => 'attachment-' . $invoice->attachment->id,
'method' => 'DELETE',
'url' => [url('uploads/' . $invoice->attachment->id)],
'style' => 'display:inline'
]) !!}
<a id="remove-attachment" href="javascript:void();">
<span class="text-danger"><i class="fa fa fa-times"></i></span>
</a>
{!! Form::close() !!}
</span>
@php $file = $invoice->attachment; @endphp
@include('partials.media.file')
@endif
</div>
</div>