<?php include("cn.php");?>
<?php $title = "Add Cars";?>
<!DOCTYPE html>
<html lang="en">
<?php include("head-tag.php");?>
<body>

<div class="inner-wrapper">
<?php include("pre-loader.php");?>

<?php include("header.php");?>
<div class="page-wrapper">
    <div class="container-fluid">
        <div class="row">
            <div class="col-xl-3 col-lg-4 col-md-12 theiaStickySidebar">
                <aside class="sidebar sidebar-user">
                    <div class="card ctm-border-radius shadow-sm">
                        <div class="card-body py-4">
                            <div class="row">
                                <div class="col-md-12 mr-auto text-left">
                                    <div class="custom-search input-group">
                                        <div class="custom-breadcrumb">
                                            <ol class="breadcrumb no-bg-color d-inline-block p-0 m-0 mb-2">
                                                <li class="breadcrumb-item d-inline-block"><a href="index.php" class="text-dark">Home</a></li>
                                                <li class="breadcrumb-item d-inline-block active">Cars</li>
                                            </ol>
                                            <h4 class="text-dark">Add Car</h4>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card ctm-border-radius shadow-sm">
                    </div>
                </aside>
            </div>
            <div class="col-xl-9 col-lg-8 col-md-12">
			 <form method = "post" action="ajax/save-car.php" enctype="multipart/form-data">
                <div class="accordion add-employee" id="accordion-details">
                    <div class="card shadow-sm ctm-border-radius" id="basic">
                        <div class="card-header" id="basic1">
                            <h4 class="cursor-pointer mb-0">
                                <a class="coll-arrow d-block text-dark" href="javascript:void(0)" data-toggle="collapse" data-target="#basic-one" aria-expanded="true">
                                    Car Detail
                                </a>
                            </h4>
                        </div>
                        <div class="card-body p-0">
                            <div id="basic-one" class="collapse show ctm-padding" aria-labelledby="basic1" data-parent="#accordion-details">
                               
                                    <div class="row">
										<div class="col-md-6 col-sm-12 col-xs-12">
											<div class="form-group">
												<input type="file" name="photo" id="photo" class="dropify" data-height="158" data-allowed-file-extensions='["jpg", "png", "jpeg"]'/>
											</div>
                                        </div>
										<div class="col-md-6 col-sm-12 col-xs-12">
                                        <div class="form-group">
                                         <input type="text" class="form-control " placeholder="Name of Car"  name="carname" required/>
                                        </div>
                                        <div class="form-group">
                                            <input type="text" class="form-control" placeholder="Brand Name" name="brandname"/>
                                        </div>
                                        </div>
                                        <div class="col-md-6 col-sm-12 col-xs-12 form-group">
                                            <input type="text" class="form-control" placeholder="Model" name="model" />
                                        </div>
                                        
										<div class="col-md-6 col-sm-12 col-xs-12 form-group">
                                            <div class="cal-icon">
                                                <input type="text" class="form-control" placeholder="Rate Per Day" name="dailyrate" />
                                            </div>
                                        </div>
									</div>
                            </div>
                        </div>
                    </div>
                    
                    </div>
                <div class="row">
                    <div class="col-12">
                        <div class="submit-section text-center btn-add">
                            <button type="submit" class="btn btn-block btn-theme text-white ctm-border-radius button-1">Add Car</button>
                        </div>
                    </div>
                </div>
            </form>
		   </div>
        </div>
    </div>
</div>

</div>

<div class="sidebar-overlay" id="sidebar_overlay"></div>


<?php include("scripts.php");?>
</body>

</html>