import React, { useState } from "react";
import ImageWithBasePath from "../../core/img/imagewithbasebath";
import { Filter, Sliders } from "react-feather";
import Select from "react-select";
import { Link } from "react-router-dom";
import DatePicker from "react-datepicker";
import { Box, Calendar, StopCircle, User, FileText } from "react-feather";
import DateRangePicker from "react-bootstrap-daterangepicker";
import Breadcrumbs from "../../core/breadcrumbs";
const SupplierReport = () => {
const [isFilterVisible, setIsFilterVisible] = useState(false);
const [isFilterVisibleTwo, setIsFilterVisibleTwo] = useState(false);
const [isFilterVisibleThree, setisFilterVisibleThree] = useState(false);
const [selectedDate, setSelectedDate] = useState(null);
const toggleFilterVisibility = () => {
setIsFilterVisible((prevVisibility) => !prevVisibility);
};
const toggleFilterVisibilityTwo = () => {
setIsFilterVisibleTwo((prevVisibilityTwo) => !prevVisibilityTwo);
};
const toggleFilterVisibilityThree = () => {
setisFilterVisibleThree((prevVisibilityThree) => !prevVisibilityThree);
};
const handleDateChange = (date) => {
setSelectedDate(date);
};
const options = [
{ value: "sortByDate", label: "Sort by Date" },
{ value: "140923", label: "14 09 23" },
{ value: "110923", label: "11 09 23" },
];
const optionsThree = [
{ value: "sortByDate", label: "Sort by Date" },
{ value: "140923", label: "14 09 23" },
{ value: "110923", label: "11 09 23" },
];
const optionsTwo = [
{ value: "sortByDate", label: "Sort by Date" },
{ value: "140923", label: "14 09 23" },
{ value: "110923", label: "11 09 23" },
];
const productOptions = [
{ value: "chooseProduct", label: "Choose Product" },
{ value: "appleSeries5Watch", label: "Apple Series 5 Watch" },
{ value: "amazonEchoDot", label: "Amazon Echo Dot" },
];
const statusOptions = [
{ value: "chooseStatus", label: "Choose Status" },
{ value: "received", label: "Received" },
];
const supplierNameOptions = [
{ value: "chooseSupplierName", label: "Choose Supplier Name" },
{ value: "apexComputers", label: "Apex Computers" },
{ value: "beatsHeadphones", label: "Beats Headphones" },
];
const nameOptions = [
{ value: "chooseName", label: "Choose Name" },
{ value: "apexComputers", label: "Apex Computers" },
{ value: "beatsHeadphones", label: "Beats Headphones" },
];
const statusOptions2 = [
{ value: "chooseStatus", label: "Choose Status" },
{ value: "completed", label: "Completed" },
{ value: "incompleted", label: "Incompleted" },
];
const paymentStatusOptions = [
{ value: "choosePaymentStatus", label: "Choose Payment Status" },
{ value: "paid", label: "Paid" },
{ value: "unpaid", label: "Unpaid" },
{ value: "overdue", label: "Overdue" },
];
const initialSettings = {
endDate: new Date("2020-08-11T12:30:00.000Z"),
ranges: {
"Last 30 Days": [
new Date("2020-07-12T04:57:17.076Z"),
new Date("2020-08-10T04:57:17.076Z"),
],
"Last 7 Days": [
new Date("2020-08-04T04:57:17.076Z"),
new Date("2020-08-10T04:57:17.076Z"),
],
"Last Month": [
new Date("2020-06-30T18:30:00.000Z"),
new Date("2020-07-31T18:29:59.999Z"),
],
"This Month": [
new Date("2020-07-31T18:30:00.000Z"),
new Date("2020-08-31T18:29:59.999Z"),
],
Today: [
new Date("2020-08-10T04:57:17.076Z"),
new Date("2020-08-10T04:57:17.076Z"),
],
Yesterday: [
new Date("2020-08-09T04:57:17.076Z"),
new Date("2020-08-09T04:57:17.076Z"),
],
},
startDate: new Date("2020-08-04T04:57:17.076Z"), // Set "Last 7 Days" as default
timePicker: false,
};
return (
{/* /product list */}
{/* /Filter */}
{/* /Filter */}
{/* /product list */}
{/* /product list */}
{/* /Filter */}
{/* /Filter */}
{/* /product list */}
{/* /product list */}
{/* /Filter */}
{/* /Filter */}
{/* /product list */}
);
};
export default SupplierReport;