@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">
                Onboarding Checklist Status
                @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 jambo_table 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" scope="row">
                    <td class="<?php echo ($row->stage_id == 1) ? 'bg-success' : ((($row->stage_id == 2)) ? 'bg-warning' : 'bg-info'); ?>  " >{{ $row->stage_id }}</td>
                    <td class="">{{ $row->name }}</td>
                    <td class="<?php echo ($row->status == 'COMPLETED') ? 'text-success' : 'text-danger'; ?>" >
                      {{ $row->status }}
                      <!-- (($row->stage_id == 3)) ? 'bg-info' : 'bg-success';  -->
                    </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
