<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Admin : Add RESUME</title>
    <?php include("headerlink.php")?>
</head>

<body class="hold-transition sidebar-mini layout-fixed">
    <div class="wrapper">

        <div class="preloader flex-column justify-content-center align-items-center">
            <img class="animation__shake" src="dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60">
        </div>

        <?php include("navbar.php")?>


        <?php include("sidebar.php")?>

        <div class="content-wrapper">

        <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1 class="m-0 text-bold text-uppercase">Resume</h1>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><a href="#">Home</a></li>
                                <li class="breadcrumb-item active">Resume</li>
                                <li class="breadcrumb-item active">Add New</li>
                            </ol>
                        </div>
                    </div>

                </div>
            </div>

            <section class="content">
                <div class="container-fluid">
                    <div class="row">

                        <div class="col-md-12">

                            <div class="card card-primary shadow">
                                <div class="card-header" style="background: #343a40;">
                                    <h3 class="card-title fw-bold text-uppercase">Add Resume</h3>
                                </div>

                                <form action="resume_code.php" method="POST" enctype="multipart/form-data">
                                    <div class="card-body">
                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputName">Full Name</label>
                                                    <input type="text" class="form-control" name="first_name"
                                                        placeholder="First Name">
                                                </div>
                                            </div>

                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputName">Marital Status</label>
                                                    <select name="marital_status" class="form-control">
                                                        <option value="Single">Single</option>
                                                        <option value="Married">Married</option>
                                                        <option value="Divorced">Divorced</option>
                                                        <option value="Widowed">Widowed</option>
                                                        <option value="Other">Other</option>
                                                    </select>
                                                </div>
                                            </div>

                                        </div>
                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputName">Contact Email</label>
                                                    <input type="email" class="form-control" name="email"
                                                        placeholder="Contact Email">
                                                </div>
                                            </div>
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputName">Contact Number</label>
                                                    <input type="text" class="form-control" id="exampleInputName"
                                                        placeholder="Contact Number" name="number"
                                                        oninput="this.value = this.value.replace(/[^0-9]/g, '');">
                                                </div>
                                            </div>

                                        </div>
                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputName">Work Profile</label>
                                                    <input type="text" class="form-control" name="profile"
                                                        placeholder="Work Profile">
                                                </div>
                                            </div>
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputName">Work Experience</label>
                                                    <input type="text" class="form-control" name="experience"
                                                        placeholder="Work Experience">
                                                </div>
                                            </div>
                                        </div>


                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputName">Current Location</label>
                                                    <input type="text" class="form-control"
                                                        placeholder="Current Location" name="location">
                                                </div>
                                            </div>

                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputName">Upload Resume</label>
                                                    <input type="file" name="file" class="form-control">
                                                </div>
                                            </div>

                                        </div>
                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputName">Salary Expectations </label>
                                                    <input type="text" name="salary_expectations" class="form-control"
                                                        placeholder="Salary Expectations">
                                                </div>
                                            </div>
                                            <div class="col-6">
                                                <label for="exampleInputEmail1">Socail Icon</label>
                                                <div class="row">
                                                    <div class="col-6">
                                                        <div class="input-group mb-3">
                                                            <div class="input-group-prepend">
                                                                <span class="input-group-text"><i
                                                                        class="nav-icon fa fa-linkedin"></i></span>
                                                            </div>
                                                            <input type="text" class="form-control"
                                                                name="linkedin_username"
                                                                placeholder="LinkedIn Username">
                                                            <input type="hidden" name="linkedin"
                                                                value="https://www.linkedin.com/in/">
                                                        </div>
                                                    </div>
                                                    <div class="col-6">
                                                        <div class="input-group mb-3">
                                                            <div class="input-group-prepend">
                                                                <span class="input-group-text"><i
                                                                        class="nav-icon fa fa-whatsapp fw-bold"></i></span>
                                                            </div>
                                                            <input type="text" class="form-control"
                                                                name="whatsapp_username"
                                                                placeholder="WhatsApp Username">
                                                            <input type="hidden" name="whatsapp" value="https://wa.me/">
                                                        </div>
                                                    </div>


                                                </div>
                                            </div>
                                        </div>


                                    </div>


                                    <div class="card-footer">
                                        <button type="submit" class="btn text-white fw-bold"
                                            style="background: #343a40; ">Add
                                                Resume</button>
                                    </div>
                                </form>
                            </div>


                        </div>

                    </div>

                </div>
            </section>

        </div>
        <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script>
        <script>
        $(document).ready(function() {
            <?php if (isset($_GET['error'])) { ?>
            Swal.fire({
                title: 'Error',
                text: '<?php echo $_GET['error']; ?>',
                icon: 'error',
                confirmButtonText: 'OK',
                confirmButtonClass: 'btn btn-success btn-lg',
            });
            <?php } ?>
            <?php if (isset($_GET['success'])) { ?>
            Swal.fire({
                title: 'Success',
                text: '<?php echo $_GET['success']; ?>',
                icon: 'success',
                confirmButtonText: 'OK',
                confirmButtonClass: 'btn btn-success btn-lg',
            });
            <?php } ?>
        });
        </script>
        <?php include("footer.php")?>

    </div>


    <?php include("footerlink.php")?>
</body>

</html>