2022-06-01 10:15:55 +03:00
|
|
|
<div class="flex items-center justify-between border-b py-4">
|
|
|
|
<div class="flex items-center">
|
|
|
|
@if ($file->aggregate_type == 'image')
|
|
|
|
<span class="material-icons text-base">image</span>
|
|
|
|
@else
|
|
|
|
<span class="material-icons text-base">attach_file</span>
|
|
|
|
@endif
|
2022-08-03 17:07:12 +03:00
|
|
|
<div class="flex flex-col text-gray-500 ltr:ml-3 rtl:mr-3 gap-y-1">
|
2022-06-06 17:59:36 +03:00
|
|
|
<span class="w-64 text-sm truncate">{{ $file->basename }}</span>
|
2022-06-01 10:15:55 +03:00
|
|
|
<span class="text-xs mb-0">{{ $file->readableSize() }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-30 11:24:00 +03:00
|
|
|
<div class="flex flex-row lg:flex-col gap-x-1">
|
2022-06-01 10:15:55 +03:00
|
|
|
@can('delete-common-uploads')
|
2022-08-03 14:04:32 +03:00
|
|
|
<x-link href="javascript:void();" id="remove-{{ $column_name }}" @click="onDeleteFile('{{ $file->id }}', '{{ route('uploads.destroy', $file->id) }}', '{{ trans('general.title.delete', ['type' => $column_name]) }}', '{{ trans('general.delete_confirm', ['name' => $file->basename, 'type' => $column_name]) }} ', '{{ trans('general.cancel') }}', '{{ trans('general.delete') }}')" type="button" class="group" override="class">
|
2022-06-01 10:15:55 +03:00
|
|
|
<span class="material-icons text-base text-red px-1.5 py-1 rounded-lg group-hover:bg-gray-100">delete</span>
|
2022-08-03 14:04:32 +03:00
|
|
|
</x-link>
|
2022-06-01 10:15:55 +03:00
|
|
|
@if ($options)
|
|
|
|
<input type="hidden" name="page_{{ $file->id}}" id="file-page-{{ $file->id}}" value="{{ $options['page'] }}" />
|
|
|
|
<input type="hidden" name="key_{{ $file->id}}" id="file-key-{{ $file->id}}" value="{{ $options['key'] }}" />
|
|
|
|
<input type="hidden" name="value_{{ $file->id}}" id="file-value-{{ $file->id}}" value="{{ $file->id }}" />
|
|
|
|
@endif
|
2022-08-03 14:04:32 +03:00
|
|
|
<x-link href="{{ route('uploads.download', $file->id) }}" type="button" class="group" override="class">
|
2022-06-01 10:15:55 +03:00
|
|
|
<span class="material-icons text-base text-purple px-1.5 py-1 rounded-lg group-hover:bg-gray-100">download</span>
|
2022-08-03 14:04:32 +03:00
|
|
|
</x-link>
|
2022-06-01 10:15:55 +03:00
|
|
|
@endcan
|
|
|
|
</div>
|
|
|
|
</div>
|