<style>
.mcp-theme-1 .uploadAttachmentFileFile input[type="file"]::after {
    display: none;
}
</style>
<div moe wide>
    @if(@$edit)
    <a start show href="#" class="text-primary"><i class="fas fa-pencil-alt"></i></a>
    @else
    <a start show href="#" class="text-primary">{{ $title }}</a>
    @endif
    <form url="{{ route('admin.orders.view.upload-file', $order) }}" class="uploadAttachmentFileFile" right>
        <input type="hidden" name="file_name" value="{{ $fileName }}" />
        <div class="mb-2">
            <label class="fw-bold mb-1">Attachment</label>
            <input type="file" name="{{ $fileName }}" class="form-control form-control-sm" accept="application/pdf" />
        </div>
        <div>
            <button submit class="btn btn-sm btn-primary me-2">Upload</button>
            <button cancel class="btn btn-sm btn-default border">Cancel</button>
        </div>
    </form>
</div>
