import React from 'react';
import Sidebar from '../components/SideBarGPT';

const DocumentManagement = () => {
  return (
    <div className="flex">
      <Sidebar />
      <div className="ml-64 flex-1 p-6 bg-gray-100">
        <div className="p-4 bg-white rounded-lg shadow">
          <h2 className="text-2xl font-bold mb-4">Selected MDL List</h2>
          <div className="space-y-4">
            <div className="p-4 bg-blue-50 rounded-lg">
              <h3 className="font-semibold">Project Details</h3>
            </div>
            <div className="p-4 bg-blue-50 rounded-lg">
              <h3 className="font-semibold">SO Details</h3>
            </div>
            <div className="p-4 bg-blue-50 rounded-lg">
              <h3 className="font-semibold">Master Document List</h3>
              <table className="min-w-full bg-white rounded-lg">
                <thead className="bg-gray-200">
                  <tr>
                    <th className="py-2 px-4">Document Title</th>
                    <th className="py-2 px-4">Planned Date</th>
                    <th className="py-2 px-4">Doc. No</th>
                    <th className="py-2 px-4">Latest Rev No</th>
                    <th className="py-2 px-4">Submission Dt</th>
                    <th className="py-2 px-4">Commented Dt</th>
                    <th className="py-2 px-4">Approved Dt</th>
                    <th className="py-2 px-4">Approval Status</th>
                    <th className="py-2 px-4">Options For Enquiry</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td className="border px-4 py-2">Strainer Drawing</td>
                    <td className="border px-4 py-2">06/17/2017</td>
                    <td className="border px-4 py-2">15201</td>
                    <td className="border px-4 py-2">R1</td>
                    <td className="border px-4 py-2">05/07/2017</td>
                    <td className="border px-4 py-2">05/07/2017</td>
                    <td className="border px-4 py-2">05/07/2017</td>
                    <td className="border px-4 py-2">APPROVED</td>
                    <td className="border px-4 py-2">
                      <button className="bg-blue-500 text-white px-2 py-1 rounded">Options</button>
                    </td>
                  </tr>
                  <tr>
                    <td className="border px-4 py-2">Strainer QCP</td>
                    <td className="border px-4 py-2">08/20/2017</td>
                    <td className="border px-4 py-2">EC5024</td>
                    <td className="border px-4 py-2">R4</td>
                    <td className="border px-4 py-2">05/07/2017</td>
                    <td className="border px-4 py-2">05/07/2017</td>
                    <td className="border px-4 py-2">05/07/2017</td>
                    <td className="border px-4 py-2">APPROVED</td>
                    <td className="border px-4 py-2">
                      <button className="bg-blue-500 text-white px-2 py-1 rounded">Options</button>
                    </td>
                  </tr>
                  <tr>
                    <td className="border px-4 py-2">Motor GA Drawing</td>
                    <td className="border px-4 py-2">08/30/2017</td>
                    <td className="border px-4 py-2">EC4121</td>
                    <td className="border px-4 py-2">R2</td>
                    <td className="border px-4 py-2">05/07/2017</td>
                    <td className="border px-4 py-2">05/07/2017</td>
                    <td className="border px-4 py-2">05/07/2017</td>
                    <td className="border px-4 py-2">APPROVED</td>
                    <td className="border px-4 py-2">
                      <button className="bg-blue-500 text-white px-2 py-1 rounded">Options</button>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div className="p-4 bg-blue-50 rounded-lg">
              <h3 className="font-semibold">Revision History: Strainer Drawing</h3>
              <table className="min-w-full bg-white rounded-lg">
                <thead className="bg-gray-200">
                  <tr>
                    <th className="py-2 px-4">SR. No</th>
                    <th className="py-2 px-4">Document Title</th>
                    <th className="py-2 px-4">Doc. No</th>
                    <th className="py-2 px-4">Latest Rev No</th>
                    <th className="py-2 px-4">Submission Dt</th>
                    <th className="py-2 px-4">Commented Dt</th>
                    <th className="py-2 px-4">Approved Dt</th>
                    <th className="py-2 px-4">Approval Status</th>
                    <th className="py-2 px-4">Options For Enquiry</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td className="border px-4 py-2">1</td>
                    <td className="border px-4 py-2">Strainer Drawing</td>
                    <td className="border px-4 py-2">15201</td>
                    <td className="border px-4 py-2">R0</td>
                    <td className="border px-4 py-2">02/07/2017</td>
                    <td className="border px-4 py-2">02/07/2017</td>
                    <td className="border px-4 py-2">02/07/2017</td>
                    <td className="border px-4 py-2">Enquiry</td>
                    <td className="border px-4 py-2">
                      <button className="bg-blue-500 text-white px-2 py-1 rounded">Options</button>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
  );
};

export default DocumentManagement;
