using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Catalog;

/// <summary>
/// Represents a product review search model
/// </summary>
public partial record ProductReviewSearchModel : BaseSearchModel
{
    #region Ctor

    public ProductReviewSearchModel()
    {
        AvailableStores = new List<SelectListItem>();
        AvailableApprovedOptions = new List<SelectListItem>();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.CreatedOnFrom")]
    [UIHint("DateNullable")]
    public DateTime? CreatedOnFrom { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.CreatedOnTo")]
    [UIHint("DateNullable")]
    public DateTime? CreatedOnTo { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchText")]
    public string SearchText { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchStore")]
    public int SearchStoreId { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchProduct")]
    public int SearchProductId { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchApproved")]
    public int SearchApprovedId { get; set; }

    //vendor
    public bool IsLoggedInAsVendor { get; set; }

    public IList<SelectListItem> AvailableStores { get; set; }

    public IList<SelectListItem> AvailableApprovedOptions { get; set; }

    public bool HideStoresList { get; set; }

    #endregion
}