<div class="row">
    <div class="col-12">
        <div id="{{ $id_name ?? $name }}_preview" class="{{ ($file ?? false) ? '' : 'd-none' }}">
            <img src="{{ $file ?? null }}" class="img-fluid">
            @if (!($disabled ?? false))
                <div class="mt-2 text-right">
                    <button type="button" class="btn btn-sm btn-danger img-delete"><i class="fa fa-trash"></i></button>
                </div>
            @endif
        </div>

        @if (!($disabled ?? false))
            <div id="{{ $id_name ?? $name }}_uploader" class="{{ ($file ?? false) ? 'd-none' : '' }} uploader-input">
                @include('components.form.file', [
                    'name' => $name,
                    'value' => $file ?? null,
                ])
            </div>
        @endif
    </div>
</div>
