@if(empty($files) || count($files)==0 )
    <div class="col-span-4">
        <p class="font-regular mt-1 text-gray-600 text-sm">
            @if(isset($no_message))
            {{ $no_message }}...
            @else
            No files found in this folder
            @endif
        </p>
    </div>
@else
    @php( $showdelete = \Clevercherry\Backslash4\Backslash4::getDashboardConfigSetting('files.show-delete', 0))
    @foreach($files as $file)
        <x-bs-media.item
            extension="{{ $file['extension'] }}"
            name="{{ $file['filename'] }}"
            type="file"
            size="{{ $file['size'] }}"
            data-url="{{ $file['url'] }}" 
            :showdelete=$showdelete
            :file=$file
            data-name="{{ $file['filename'] }}" 
            data-size="{{ $file['size'] }}"
        />
    @endforeach
@endif