@extends('layouts.main')



@section('content')



<section class="content-header">

    <h1>Iteams Management</h1>

    <ol class="breadcrumb">

        <li><a href="/home"><i class="fa fa-dashboard"></i>Home</a></li>

        <li><a href="#">Iteams</a></li>

        <li class="active"><a href="#">Iteams list</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">

          <a class="btn btn-primary" href="{{ route('home') }}"> Back</a>

          

        </div>

        

        <div class="box-body">

          



          <table class="dataTables_wrapper form-inline dt-bootstrap" id="products">

            <thead>

              <tr>

                <th>NO</th>

                <th> Iteams_Name</th>

                <th> VISIBLE</th>

                <th width="100px;">Action</th>

                </tr>

            </thead>

            <tbody>

              @foreach($iteams as $display)

                <tr>

                  <input type="hidden" id="vrajesh" value="{{ $display->id }}">

                  <td></td>

                  <td>{{ $display->product_name }}</td>

                  <td> 

                    <div class="checkbox" >

                      <label>

                        @if($display->visible == 1)

                        <input type="checkbox" name="checkvisible" id="checkvisible" value="{{ $display->id }}" checked>

                        @else

                        <input type="checkbox" name="checkvisible" id="checkvisible" value="{{ $display->id }}">

                        @endif

                      </label>

                    </div>

                  </td>

                   

                  <td>

                    <a href="{{ route('iteams.showiteam',$display->id) }}" > <i class="fa  fa-eye orange"></i></a> | 

                    @can('item-create')

                      <a href="{{ route('iteams.createiteam',$display->id) }}" > <i class="fa fa-pencil " title="Edit attribute"></i></a> |
                    
                    @endcan 

                   @can('item-edit')

                    <a href="{{ route('iteams.edititeam',$display->id) }}" > <i class="fa fa-edit green" title="Edit attribute"></i></a> |

                  @endcan 

                     <a href="{{ route('iteams.createrelation',$display->id) }}" id="fetchAllRecord"> <i class="fa  fa-chain" title="Related Product"></i></a> 



                  

                </tr>

              @endforeach

            </tbody>

          </table>

        </div>

      </div>

    </div>

  </div>

</section>







@endsection







