<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo e($company->name); ?>-Chalan-<?php echo e($data->date); ?></title>

    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- Optional theme -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

    <!-- Latest compiled and minified JavaScript -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

</head>
<body>
    <style>
    h1,h2,h3,h4,h5,h6,p,span{
        font-family: sans-serif;
    }
    .sender_company{
        /* margin-top: 10px; */
        border-left: 6px solid #d8d7d7;
        padding-left: 11px;
    }
    .sender_company p{
        margin: 0;
    }
    .sender_company h5{
        margin: 0;
        font-weight: 800;
    }
    .recever_company{
        /* margin-top: 10px; */
        /*border-left: 6px solid #d8d7d7;
        padding-left: 11px;*/
    }
    .recever_company p{
        margin: 0;
    }
    .recever_company h5{
        margin: 0;
        font-weight: 800;
    }

    .table_header{
        /* padding-top: 14px; */
        padding-left: 14px;
        padding-right: 14px;
    }




    .tbody{
        border: 1px solid black;

    }

    /* Header Top */
    .header_top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: green;
    }

    .header_company_info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }


    /* my css */

    /* Table Style */

    table {
        box-sizing: border-box;
        border: 1px solid #000;
        border-collapse: collapse;
        width: 100%;
        
        background-size: 40%;
        background-repeat: no-repeat;
        background-position: center center;




        /* background: red; */
    }

    thead {
        background: red;
        border: 1px solid #000;
        color: #fff;
    }
    th, td {
        padding: 10px;
        border-right: 1px solid #000;

    }




    tbody tr td p {
		margin: 0px;
		padding: 0px 5px;
		font-size: 1.3rem;
		font-weight: 400;
		/* text-transform: uppercase; */
		/* background: red; */
	}

    .total_container {
        text-align: right;
        margin-top: 20px;
    }
    .total_container  p{
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }

    /* my own table */
.signature_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 70px;
}

.signature_1 {
    width: 50%;

}

.signature_2 {
    width: 50%;
    float: right;
    text-align: right;
}


</style>

    <?php
    $setting = DB::table('settings')->first();
    ?>

    <div class="container mt-5" id="Invoice">
        
        <div class="col-md-12">
            <!-- Heder Top Logo & Date -->
            <div class="row header_top ">
                <div class="col-md-6" >
                    <img src="<?php echo e(asset('/public/siteImage')); ?>/<?php echo e($setting->logo); ?>" alt="" style="width: 77px;">
                </div>
                <div class="col-md-6">
                    <h1 style="float: right;color: #e00000;font-weight: bold;font-size: 25px;border: 4px solid #e00000;padding: 10px;margin: 0;">Chalan</h1>
                    <br>
                    <br>
                    <br>
                    <br>
                    <!-- <div style="float: right;font-size: 14px;font-weight: 600;">
                        <span>Date: <?php echo e($data->date); ?> </span>
                        &nbsp;&nbsp;
                        <span>Chalan No: <?php echo e($data->chalan_no); ?> </span>
                    </div> -->
                </div>
            </div>
        </div>
       <!-- Company Info -->
        <div class="col-md-12" style=" margin-top: -50px; padding: 0; ">

            <div class="row header_company_info">
                <div class="col-md-6">
                    <div class="sender_company">
                        <h5><?php echo e($setting->title); ?></h5>
                        <p style="max-width: 200px"><?php echo e($setting->address); ?></p>
                        <p><?php echo e($setting->hotline); ?></p>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="recever_company" style="float: right;">
                        <p>Date: <?php echo e($data->date); ?> </p>
                        <p>Chalan No: <?php echo e($data->chalan_no); ?> </p>
                        <br>
                        <h5><?php echo e($company->name); ?></h5>
                        <p style="max-width: 200px"><?php echo e($company->address); ?></p>
                        <p><?php echo e($company->city); ?></p>
                        <p><?php echo e($company->cell_phone); ?></p>
                    </div>
                </div>
            </div>
        </div>


        <!-- Start Table -->
        <div class="col-md-12">
            <div class="row">
                <?php
                $setting = DB::table('settings')->first();
                ?>


                    <!-- Start Table -->

                    <table class="table_wrapper">

                        <thead style="background: <?php echo e($setting->invoice_color); ?>">
                            <tr>
                                <th> Code</th>
                                <th>Item</th>
                                <th>Description</th>
                                <th>Qty</th>
                                <th>Unit Price</th>
                                <th>Total</th>
                            </tr>
                        </thead>

                        <tbody  >

                            <?php $__currentLoopData = $data_items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                            <?php
                                 $product = DB::table('product_productinfo')->where('id', $data_item->product_id)->first();
                                 $category = DB::table('product_category')->where('id', $product->category_id)->first();

                            ?>

                            <tr>
                                <td style="width: 20px; text-align: center;">
                                    <p><?php echo e($product->product_id); ?></p>
                                </td>
                                <td style="width: 100px; text-align: left;">
                                    <p><?php echo e($category->category_name); ?></p>
                                </td>
                                <td style="text-align: left;">
                                    <p><?php echo e($product->product_name); ?></p>
                                </td>
                                <td style="width: 20px; text-align: center;">
                                    <p><?php echo e($data_item->qty); ?></p>
                                </td>
                                <td style="width: 75px; text-align: right;">
                                    <p>TK 0.00</p>
                                </td>
                                <td style="width: 75px; text-align: right;">
                                    <p>TK 0.00</p>
                                </td>

                            </tr>


                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            <?php if(count($data_items) == 1): ?>
                                <tr >
                                    <td style="height: 348px; border-right: 1px solid #000"></td>
                                    <td style="height: 348px; border-right: 1px solid #000"></td>
                                    <td style="height: 348px; border-right: 1px solid #000"></td>
                                    <td style="height: 348px; border-right: 1px solid #000"></td>
                                    <td style="height: 348px; border-right: 1px solid #000"></td>
                                    <td style="height: 348px; border-right: 1px solid #000"></td>
                                </tr>
                            <?php elseif(count($data_items) == 2): ?>
                                <tr >
                                    <td style="height: 300px; border-right: 1px solid #000"></td>
                                    <td style="height: 300px; border-right: 1px solid #000"></td>
                                    <td style="height: 300px; border-right: 1px solid #000"></td>
                                    <td style="height: 300px; border-right: 1px solid #000"></td>
                                    <td style="height: 300px; border-right: 1px solid #000"></td>
                                    <td style="height: 300px; border-right: 1px solid #000"></td>
                                </tr>

                            <?php elseif(count($data_items) == 3): ?>
                                <tr >
                                    <td style="height: 240px; border-right: 1px solid #000"></td>
                                    <td style="height: 240px; border-right: 1px solid #000"></td>
                                    <td style="height: 240px; border-right: 1px solid #000"></td>
                                    <td style="height: 240px; border-right: 1px solid #000"></td>
                                    <td style="height: 240px; border-right: 1px solid #000"></td>
                                    <td style="height: 240px; border-right: 1px solid #000"></td>
                                </tr>
                            <?php elseif(count($data_items) == 4): ?>
                                <tr >
                                    <td style="height: 100px; border-right: 1px solid #000"></td>
                                    <td style="height: 100px; border-right: 1px solid #000"></td>
                                    <td style="height: 100px; border-right: 1px solid #000"></td>
                                    <td style="height: 100px; border-right: 1px solid #000"></td>
                                    <td style="height: 100px; border-right: 1px solid #000"></td>
                                    <td style="height: 100px; border-right: 1px solid #000"></td>
                                </tr>
                            <?php elseif(count($data_items) == 5): ?>
                                <tr >
                                    <td style="height: 80px; border-right: 1px solid #000"></td>
                                    <td style="height: 80px; border-right: 1px solid #000"></td>
                                    <td style="height: 80px; border-right: 1px solid #000"></td>
                                    <td style="height: 80px; border-right: 1px solid #000"></td>
                                    <td style="height: 80px; border-right: 1px solid #000"></td>
                                    <td style="height: 80px; border-right: 1px solid #000"></td>
                                </tr>
                            <?php endif; ?>


                        </tbody>

                    </table>

                    <div class="total_container">
                        <p>Total: TK 0.00</p>
                    </div>
                    <!-- End Table -->

            </div>
             <div class="signature_container row">
                <div class="col-md-6 signature_1">
                    <p style="margin: 0">------------------------------------</p>
                    <p style="margin: 0; margin-left: 20px">Customer Signature</p>
                </div>
                <div class="col-md-6  signature_2">
                    <p style="margin: 0">------------------------------------</p>
                    <p style="margin: 0; margin-right: 20px">Authorize Signature</p>
                </div>
             </div>
        </div>
    </div>
</body>
</html>
<?php /**PATH D:\xampp\htdocs\office\electronics\resources\views/Admin/company_chalan/chalan_pdf.blade.php ENDPATH**/ ?>