

<?php $__env->startSection('content'); ?>
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
<section class="content-header">
    <h1>Quotation Management</h1>
    <ol class="breadcrumb">
        <li><a href="/home"><i class="fa fa-dashboard"></i>Home</a></li>
        <li class="active">Quotations</li>
    </ol>
</section>
 
<hr style="border: 3px groove #3c8dbc;">
 
<section class="content-header">
    <!-- <button type="button" class="btn btn-primary" id="quotation_create">Add New Quotation</button> -->
</section>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-info">
                <div class="box-header">
                        <div class="alert alert-success hide" id="quotation_success"></div>
                        <div class="alert alert-danger hide" id="quotation_danger"></div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <a class="btn btn-primary" href="<?php echo e(route('home')); ?>"> Back</a>
                                <a class="btn btn-danger quotation_trash" href="#" id="quotation_trash"> Go To Trash</a>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('quotation-create')): ?>
                                    <a class="btn btn-success pull-right" href="#" id="quotation_create"> Add New Quotation</a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <?php if($message = Session::get('success')): ?>
                        <div class="alert alert-success">
                            <p><?php echo e($message); ?></p>
                        </div>
                    <?php endif; ?>
                </div>
                <div class="box-body">
                    <table class="dataTables_wrapper form-inline display compact hover order-column row-border stripe dt-bootstrap" id="quotations">
                        <thead>
                            <tr>
                                <th class="txt-center">No</th>
                                <th class="txt-center">Quotation NO</th>
                                <th class="txt-center">Company Code</th>
                                <th class="txt-center">Company name</th>
                                <th class="txt-center">Conformation</th>
                                <th class="txt-center">Save and Email</th>
                                <th>Created Date</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                            <tr id="rowcount">
                                <input type="hidden" value="<?php echo e($value->id); ?>" id="testing1">
                                <td class="txt-center"></td>
                                <td class="txt-center"><?php echo e($value->quotation_no); ?></td>
                                <td class="txt-center"><?php echo e($value->company_code); ?></td>
                                <td class="txt-center"><?php echo e($value->name); ?> </td>
                                <td>
                                
                                <!-- <select id="Conformation" name="Conformation[]" data-id="">
                                <option disabled selected value> -- Give Conformation -- </option>
                                    <option id="<?php echo e($value->id); ?>" value="approved">approved</option>
                                    <option id="<?php echo e($value->id); ?>" value="disapproved">disapproved</option>
                                </select> -->
                                    <!-- <?php if($value->conformation==""): ?>
                                            Approval Pendding
                                    <?php elseif($value->conformation=="approved"): ?>
                                            
                                    <?php elseif($value->conformation=="disapproved"): ?>
                                            Rejected
                                    <?php endif; ?> -->
                                    
                                </td>
                                
                                <td class="txt-center">
                                    <a href="#" class="printInvoice" data-id="<?php echo e('v'.$value->id); ?>"><i class="fa fa-eye orange"></i></a>|

                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('quotation-print')): ?>
                                        <a href="#" class="printInvoice" data-id="<?php echo e('p'.$value->id); ?>"><i class="fa fa-download orange"></i></a>|
                                    <?php endif; ?>
                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('quotation-mail')): ?>
                                        <a class="quotation_mailbtn" data-id="<?php echo e($value->id); ?>"><i class="fa fa-envelope orange"></i></a>|
                                    <?php endif; ?>
                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('quotation-delete')): ?>
                                        <a data-id="<?php echo e($value->id); ?>" class="quotation_trashid"><i class="fa fa-trash orange"></i></a>
                                    <?php endif; ?>
                                
                                </td>
                                <td><?php echo e($value->created_at); ?> </td>
                                
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    
</section>



<?php echo $__env->make('quotations.create', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('quotations.mail', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('quotations.mailforapproval', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('quotations.trash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('quotations.printformate', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('quotations.printoption', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>



<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp_8.2\htdocs\cpq8.2\resources\views/quotations/index.blade.php ENDPATH**/ ?>