<?php $__env->startSection('content'); ?>
    <div class="main-panel">
        <!-- Navbar -->
    <?php echo $__env->make('layouts.component.navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <!-- End Navbar -->
        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <?php if($status == 1 OR $status == 0): ?>
                        <div class="col-md-12">
                            <div class="card">
                                <div class="card-body text-center">
                                    <h2>
                                        <?php if($status == 1): ?>
                                            Data Added Successfully
                                        <?php else: ?>
                                            Unable to Upload Data. Please Check the uploaded file and Try Again
                                        <?php endif; ?>
                                    </h2>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header card-header-primary">
                                <h4 class="card-title">Add New</h4>
                                
                            </div>
                            <form action="<?php echo e(route('store.data')); ?>" method="POST">
                                <?php echo csrf_field(); ?>
                                <div class="card-body">
                                    <div class="row">
                                        <div class="col-md-3">
                                            <label class="bmd-label-floating">Date of Purchase</label>
                                            <div class="form-group">
                                                <input type="date" name="dateOfPurchase" class="form-control">
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="bmd-label-floating">Name</label>
                                                <input type="text" name="name" class="form-control">
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="bmd-label-floating">User</label>
                                                <input type="text" name="user" class="form-control">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="bmd-label-floating">ID</label>
                                                <input type="text" name="id" class="form-control">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="bmd-label-floating">Type</label>
                                                <input type="text" name="type" class="form-control">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                    </div>
                                    <div class="row">
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label class="bmd-label-floating">Location</label>
                                                <input type="text" name="location" class="form-control">
                                            </div>
                                        </div>
                                    </div>

                                    <button type="submit" class="btn btn-primary pull-right">Add New</button>
                                    <div class="clearfix"></div>

                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="col-md-12 text-center">
                        <hr>
                        <h2>OR</h2>
                        <hr>
                    </div>
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header card-header-primary">
                                <h4 class="card-title">Bulk Upload via Excel</h4>
                                
                            </div>
                            <form action="<?php echo e(route('upload.data')); ?>" method="POST" enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <div class="card-body">
                                    <form>
                                        <div class="row">
                                            <div class="col-md-3">
                                                <label class="bmd-label-floating">Select File</label>
                                                <input type="file" name="dataFile" class="form-control"
                                                       accept=".xlsx, .xls, .csv">
                                            </div>
                                        </div>

                                        <button type="submit" class="btn btn-primary pull-right">Upload</button>
                                        <div class="clearfix"></div>
                                    </form>

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

                </div>
            </div>
        </div>
        <?php echo $__env->make('layouts.component.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/himsoft7/public_html/iiser/resources/views/home.blade.php ENDPATH**/ ?>