@extends('layouts.master')
@section('page_title')
    @if(isset($page_title))
        {{ $page_title }}
    @endif
@endsection
@section('content')
  <div class="">
    <div class="page-title">
      <div class="title_left" style="width:800px !important;">
        <ol class="breadcrumb">
          <li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
          <li><a href="{!! url('clients') !!}">Clients</a></li>
          <li><a href="{{ url('clients',  $client->id) }}">{{ $client->name }}</a></li>
          <li class="active">Onboarding Checklist </li>
        </ol>
      </div>
    </div>
    <div class="clearfix"></div>
      <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
          <div class="x_panel">
              <div class="x_title">
                Update Onboarding Checklist
                @include('commons.notifications')
                <div class="clearfix"></div>
              </div>
                {{-- start of content --}}
                <div class="x_content">
                  <br>
                      
                  <div class="table-responsive">
              <table class="table table-striped table-bordered table-condensed" style="width: 100%;">
                <thead>
                  <tr class="headings">
                    <th class="column-title">Stage</th>
                    <th class="column-title">Activity</th>
                    <th class="column-title">Status</th>                    
                  </tr>
                </thead>

                <tbody>
                  @if ($onboarding_stages->isEmpty())
                    <tr>
                      <td class="" colspan="6">No Records found</td>
                    </tr>
                  @else
                  @foreach ($onboarding_stages as $row)
                  <tr class="even pointer">
                    <td class="mes-td" >{{ $row->stage_id }}</td>
                    <td class="mes-td">{{ $row->name }}</td>
                    <td class="mes-td <?php echo ($row->status == 'COMPLETED') ? 'text-success' : 'text-danger'; ?>" >
                      {{ $row->status }}

                    </td>                   
                  </tr>
                  @endforeach
                  @endif
                </tbody>
              </table>
            </div> 
                </div>
                {{-- end of x_content --}}
              </div>
              {{-- end of x_panel --}}
            </div>
          </div>
          
        </div>

@endsection

@section('javascript')
<script type="text/javascript">
  $(function(){
    
  });
</script>
@endsection
