

<?php $__env->startSection('content'); ?>
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
<section class="content-header">
    <h1>PI Management</h1>
    <ol class="breadcrumb">
        <li><a href="/home"><i class="fa fa-dashboard"></i>Home</a></li>
        <li class="active">PI</li>
    </ol>
</section> 
<hr style="border: 3px groove #3c8dbc;">
<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="pi_success"></div>
                        <div class="alert alert-danger hide" id="pi_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 pi_trashed" href="#" id="pi_trashed"> Go To Trash </a>

                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('pi-create')): ?>
                                    <a class="btn btn-success pull-right" href="#" id="pi_create"> Add New PI </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 dt-bootstrap pi-table" id="quotations"-->
                    <table class="dataTables_wrapper form-inline dt-bootstrap pi-table" id="pis">
                        <thead>
                            <tr>
                                <th class="txt-center">No</th>
                                <th class="txt-center">PI_no</th>
                                <th class="txt-center">Company Name</th>
                                <th class="txt-center">Quotation_no</th>
                                <th class="txt-center">Action</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">
                                
                                <td class="txt-center"></td>
                                <td class="txt-center"><?php echo e($value->pi_no); ?></td>
                                <td class="txt-center"><?php echo e($value->getCompany->name); ?></td>
                                <td class="txt-center"><?php echo e($value->quotation_no); ?></td>
                                <td class="txt-center">
                                    <a href="#" class="printInvoicepi" 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('pi-print')): ?>
                                        <a href="#" class="printInvoicepi" 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('pi-mail')): ?>
                                        <a class="pi_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('pi-delete')): ?>
                                        <a data-id="<?php echo e($value->id); ?>" class="pi_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('pi.create', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('pi.mail', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('pi.trash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('pi.printoption', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('pi.printformate', 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/pi/index.blade.php ENDPATH**/ ?>