
<?php $__env->startSection('content'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class   = "content-header">
      <div class     = "container-fluid">
        <div class   = "row mb-2">
          <div class = "col-sm-6">
            <h1>Add New Industry Master</h1>
          </div>
          <div class    = "col-sm-6">
            <ol class   = "breadcrumb float-sm-right">
              <li class = "breadcrumb-item">       <a href = "#">  Home </a>  </li>
              <li class = "breadcrumb-item active">Add New Industry Master</li>
            </ol>
          </div>
        </div>
    
    </div> 
    
    <!-- /.container-fluid -->
    </section>
     <?php if(session('status')): ?>
    
     <div class="alert alert-success">
        <?php echo e(session('status')); ?>

     </div>
     <?php endif; ?>
     <section class = "content">
     <div class = "container-fluid">

     <div class = "row">
           
          <!-- left column -->

          <div class="col-md-12">
            
            <!-- jquery validation -->

            <div class = "card card-primary">

            <div class = "card-header">
              
                <h3 class = "card-title">Add New Industry Master</h3>
            
            </div>

            <form id = "quickForm" action = "SaveindType" method = "POST">
          
                    <?php echo csrf_field(); ?>

                    <input type =  "hidden" name = "_token" value   = "<?php echo e(csrf_token()); ?>" />
                    
                   
                <div class = "col-6">
        
                        <label for = "exampleInputPassword1">Industry Name</label>
        
                        <input type = "text" name = "name" class = "form-control"
                        id = "eml" placeholder = " Name" required>    
        
                </div>
                
                
                  <div class = "col-6">
        
                        <label for = "exampleInputPassword1">Status</label>
        
                            <select name = "status" class = "form-control"  id = "" required>  
                            
                                     <option value = "" > Select </option>
                                     <option value = "active" > Active </option>
                                     <option value = "inactive" > In-Active </option>
                                     
                            </select>
        
                </div>
                
                

                <div class = "col-6" >
                
                    <label for = "exampleInputPassword1"> </label>
                    
                    <br>
                
                    <input type  = "submit" name = "submit" class = "btn btn-primary" id = "eml" required>      
                
                </div>

                </div>
              
               </form>

            </div>
            <!-- /.card -->
          </div>
        
          <div class = "col-md-6">
 <div class="card-body">
              <table id="example" class="table table-striped table-bordered" style="width:100%">
                    <thead>
                    <tr>
                        <th>Sl. No.</th>
                        <th>Name</th>
                        <th>Status</th>
                        <th>Action</th>
                    </tr>
                    </thead>
                    <tbody>
                             <?php
                             $i=1
                              ?>
                              <?php $__currentLoopData = $industrytype; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              
                    <tr>
                                <td><?php echo e($i++); ?></td>
                                <td><?php echo e($cl->name); ?></td>
                                <td><?php echo e($cl->status); ?></td>
                                <td>
                                    <a href="editindustype/<?php echo e($cl->id); ?>">
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('DELETE'); ?>
                                        <button type="submit" class="btn btn-warning">Edit</button>
                                    </a>
                                    <form action = "Deleteindustyp/<?php echo e($cl->id); ?>" method="post">     
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('DELETE'); ?>
                                        <button type="submit" onclick="return confirm('Are you sure want to delete?')"  class="btn btn-danger">Delete</button>
                                    </form>
                                </td>
                        </tr>
                       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
              </div>
          </div>
         
        </div>
       
        <!-- /.row -->
     
      </div>
      
      <!-- /.container-fluid -->
    
    </section>
    
  </div>
  
  <!-- /.content-wrapper -->
  
  <?php $__env->stopSection(); ?>

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