import React, { useState } from 'react'
import { OverlayTrigger, Tooltip } from 'react-bootstrap';
import { Link } from 'react-router-dom'
import ImageWithBasePath from '../../core/img/imagewithbasebath';
import { ChevronUp, FileText, PlusCircle, RotateCcw, Sliders, StopCircle, User } from 'feather-icons-react/build/IconComponents';
import { setToogleHeader } from '../../core/redux/action';
import { useDispatch, useSelector } from 'react-redux';
import { Filter } from 'react-feather';
import Select from 'react-select';
import { DatePicker } from 'antd';
const SalesList = () => {
const dispatch = useDispatch();
const data = useSelector((state) => state.toggle_header);
const [isFilterVisible, setIsFilterVisible] = useState(false);
const toggleFilterVisibility = () => {
setIsFilterVisible((prevVisibility) => !prevVisibility);
};
const oldandlatestvalue = [
{ value: 'Sort by Date', label: 'Sort by Date' },
{ value: '07 09 23', label: '07 09 23' },
{ value: '21 09 23', label: '21 09 23' },
];
const customername = [
{ value: 'Choose Customer Name', label: 'Choose Customer Name' },
{ value: 'Macbook pro', label: 'Macbook pro' },
{ value: 'Orange', label: 'Orange' },
];
const status = [
{ value: 'Choose Status', label: 'Choose Status' },
{ value: 'Computers', label: 'Computers' },
{ value: 'Fruits', label: 'Fruits' },
];
const paymentstatus = [
{ value: 'Choose Payment Status', label: 'Choose Payment Status' },
{ value: 'Computers', label: 'Computers' },
{ value: 'Fruits', label: 'Fruits' },
];
const customer = [
{ value: 'Choose Customer', label: 'Choose Customer' },
{ value: 'Customer Name', label: 'Customer Name' },
];
const suppliername = [
{ value: 'Supplier', label: 'Supplier' },
{ value: 'Supplier Name', label: 'Supplier Name' },
];
const statusupdate = [
{ value: 'Supplier', label: 'Choose' },
{ value: 'Completed', label: 'Completed' },
{ value: 'InProgress', label: 'InProgress' },
];
const paymenttype = [
{ value: 'Choose', label: 'Choose' },
{ value: 'Cash', label: 'Cash' },
{ value: 'Online', label: 'Online' },
];
const [selectedDate, setSelectedDate] = useState(new Date());
const handleDateChange = (date) => {
setSelectedDate(date);
};
const renderTooltip = (props) => (
| Customer Name | Reference | Date | Status | Grand Total | Paid | Due | Payment Status | Biller | Action | |
|---|---|---|---|---|---|---|---|---|---|---|
| Thomas | SL0101 | 19 Jan 2023 | Completed | $550 | $550 | $0.00 | Paid | Admin |
|
|
| Rose | SL0102 | 26 Jan 2023 | Completed | $250 | $250 | $0.00 | Paid | Admin |
|
|
| Benjamin | SL0103 | 08 Feb 2023 | Completed | $570 | $570 | $0.00 | Paid | Admin |
|
|
| Lilly | SL0104 | 12 Feb 2023 | Pending | $300 | $0.00 | $300 | Due | Admin |
|
|
| Freda | SL0105 | 17 Mar 2023 | Pending | $700 | $0.00 | $700 | Due | Admin |
|
|
| Alwin | SL0106 | 24 Mar 2023 | Completed | $400 | $400 | $0.00 | Paid | Admin |
|
|
| Maybelle | SL0107 | 06 Apr 2023 | Pending | $120 | $0.00 | $120 | Due | Admin |
|
|
| Ellen | SL0108 | 16 Apr 2023 | Completed | $830 | $830 | $0.00 | Paid | Admin |
|
|
| Kaitlin | SL0109 | 04 May 2023 | Pending | $800 | $0.00 | $800 | Due | Admin |
|
|
| Grace | SL0110 | 29 May 2023 | Completed | $460 | $460 | $0.00 | Paid | Admin |
|