<style type="text/css">
       .dis_flx{display: flex;}
       .dataTables_length,.dataTables_info {width: auto}
    </style>
<body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="navbar nav_title" style="border: 0;">
              <a href="#" class="site_title"><span>
                <script type="text/javascript">
                  var message = "KHAATAPATTI"
                  var neonbasecolor = "gray"
                  var neontextcolor = "white"
                  var flashspeed = 150  //in milliseconds
                  ///No need to edit below this line/////
                  var n = 0
                  if (document.all || document.getElementById) {
                      document.write('<font color="' + neonbasecolor + '">')
                      for (m = 0; m < message.length; m++)
                          document.write('<span id="neonlight' + m + '">' + message.charAt(m) + '</span>')
                      document.write('</font>')
                  } else
                      document.write(message)
                  function crossrefaa(number) {
                      var crossobj = document.all ? eval("document.all.neonlight" + number) : document.getElementById("neonlight" + number)
                      return crossobj
                  }
                  function neonaa() {
                      //Change all letters to base color
                      if (n == 0) {
                          for (m = 0; m < message.length; m++)
                              //eval("document.all.neonlight"+m).style.color=neonbasecolor
                              crossrefaa(m).style.color = neonbasecolor
                      }
                      //cycle through and change individual letters to neon color
                      crossrefaa(n).style.color = neontextcolor
                      if (n < message.length - 1)
                          n++
                      else {
                          n = 0
                          clearInterval(flashing)
                          setTimeout("beginneonaa();", 1500)
                          return
                      }
                  }
                  function beginneonaa() {
                      if (document.all || document.getElementById)
                          flashing = setInterval("neonaa();", flashspeed)
                  }
                  beginneonaa();
        
                </script>
              </span></a>
            </div>

            <div class="clearfix"></div>

            <!-- menu profile quick info -->
            <div class="profile clearfix">
              <div class="profile_pic">
                <img src="<?php echo url('/'); ?>/images/user.png" alt="..." class="img-circle profile_img">
              </div>
              <div class="profile_info">
                <span>Welcome,</span>
                <h2>{{Auth::user()->name}}</h2>
              </div>
            </div>
            <!-- /menu profile quick info -->

            <br />

            <!-- sidebar menu -->
            <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
              <div class="menu_section">
                <h3>General</h3>
                <ul class="nav side-menu">

                  <li <?php if($action == 'dashboard'){?>class="active "<?php } ?>>
                    <a href="<?php echo url("/")."/admin/dashboard";?>"><i class="fa fa-home"></i> Dashboard </a>
                  </li>

                 
          
                  <li>
                        <a href="javascript:void(0)"><i class="fa fa-home"></i>
                          Master
                          <span class="fa fa-chevron-down"></span>
                        </a>
                        <ul class="nav child_menu">
                           <!-- BO : Buyers -->
                              <li <?php if($action == 'buyers'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/buyers"><i class="fa fa-users"></i>
                                  Buyers
                                  </a>
                              </li>
                              <!--  EO : Buyers -->

                             

                      <!-- BO : Crop_transactions -->
                              <li <?php if($action == 'crop_transactions'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/crop_transactions"><i class="fa fa-users"></i>
                                  Crop Transactions
                                  </a>
                              </li>
                              <!--  EO : Crop_transactions -->

                             

                      <!-- BO : Crops -->
                              <li <?php if($action == 'crops'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/crops"><i class="fa fa-users"></i>
                                  Crops
                                  </a>
                              </li>
                              <!--  EO : Crops -->

                             

                      <!-- BO : Farmers -->
                              <!-- <li <?php if($action == 'farmers'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/farmers"><i class="fa fa-users"></i>
                                  Farmers
                                  </a>
                              </li> -->
                              <!--  EO : Farmers -->

                             

                      <!-- BO : Marqua -->
                              <li <?php if($action == 'marqua'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/marqua"><i class="fa fa-users"></i>
                                  Marqua
                                  </a>
                              </li>
                              <!--  EO : Marqua -->

                             

                      <!-- BO : Purchase -->
                              <li <?php if($action == 'purchase'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/purchase"><i class="fa fa-users"></i>
                                  Purchase
                                  </a>
                              </li>
                              <!--  EO : Purchase -->

                             

                      <!-- BO : Sells -->
                              <li <?php if($action == 'sells'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/sells"><i class="fa fa-users"></i>
                                  Sells
                                  </a>
                              </li>
                              <!--  EO : Sells -->

                             

                      <!-- BO : Subscription_packages -->
                              <li <?php if($action == 'subscription_packages'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/subscription_packages"><i class="fa fa-users"></i>
                                  Subscription Packages
                                  </a>
                              </li>
                              <!--  EO : Subscription_packages -->

                             

                      <!-- BO : Trader_company -->
                              <li <?php if($action == 'trader_company'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/trader_company"><i class="fa fa-users"></i>
                                  Trader Company
                                  </a>
                              </li>
                              <!--  EO : Trader_company -->

                             

                      <!-- BO : Traders -->
                              <!-- <li <?php if($action == 'traders'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/traders"><i class="fa fa-users"></i>
                                  Traders
                                  </a>
                              </li> -->
                              <!--  EO : Traders -->

                             

                      <!-- BO : Transactions -->
                              <li <?php if($action == 'transactions'){?>class="active "<?php } ?>  >
                                  <a href="<?php echo url("/"); ?>/admin/transactions"><i class="fa fa-users"></i>
                                  Transactions
                                  </a>
                              </li>
                              <!--  EO : Transactions -->
                                          
                        </ul>
                  </li>

                          <!-- BO : Candidates -->
               

               
                          

        

               <!--  @@@@@#####@@@@@ -->

              

                

                

                

                

                <!-- BO : Users -->
                  @can('users_manage')
                  <li <?php if($action == 'users'){?>class="active "<?php } ?>  >
                      <a href="{{ route('users.index') }}"><i class="fa fa-users"></i>
                      Users
                      </a>
                  </li>
                  @endcan
                  <!--  EO : Users -->

                  <!-- BO : Roles -->
                  @can('users_manage')
                  <li <?php if($action == 'roles'){?>class="active "<?php } ?>  >
                      <a href="{{ route('roles.index') }}"><i class="fa fa-users"></i>
                      Roles
                      </a>
                  </li>
                  @endcan
                <!--  EO : Roles -->

              </ul>
            </div>
          </div>
        <!-- /sidebar menu -->



            <!-- /menu footer buttons -->
            <div class="sidebar-footer hidden-small">
              <!-- <a data-toggle="tooltip" data-placement="top" title="Settings">
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="FullScreen">
                <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="Lock">
                <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
              </a> -->
              <!-- <a href="{{ url('/logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();" data-toggle="tooltip" data-placement="top" title="Logout">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
                <form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
                    {{ csrf_field() }}
                </form>
              </a> -->
            </div>
            <!-- /menu footer buttons -->
          </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
          <div class="nav_menu">
            <nav>
              <div class="nav toggle">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
              </div>

              <ul class="nav navbar-nav navbar-right">
                <li class="">
                  <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <img src="<?php echo url('/'); ?>/images/user.png" alt="">{{Auth::user()->name}}
                    <span class=" fa fa-angle-down"></span>
                  </a>
                  <ul class="dropdown-menu dropdown-usermenu pull-right">
                   <!--  <li><a href="javascript:;"> Profile</a></li>
                    <li>
                      <a href="javascript:;">
                        <span class="badge bg-red pull-right">50%</span>
                        <span>Settings</span>
                      </a>
                    </li>
                    <li><a href="javascript:;">Help</a></li> -->
                    <li><a href="{{ url('/logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
                    <form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
                        {{ csrf_field() }}
                    </form>
                  </ul>
                </li>

                <li role="presentation" class="dropdown">
                 <!--  <a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false">
                    <i class="fa fa-envelope-o"></i>
                    <span class="badge bg-green">6</span>
                  </a> -->
                  <!-- <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
                    <li>
                      <a>
                        <span class="image"><img src="<?php echo url('/'); ?>/images/img.jpg" alt="Profile Image" /></span>
                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                      </a>
                    </li>
                    <li>
                      <a>
                        <span class="image"><img src="<?php echo url('/'); ?>/images/img.jpg" alt="Profile Image" /></span>
                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                      </a>
                    </li>
                    <li>
                      <a>
                        <span class="image"><img src="<?php echo url('/'); ?>/images/img.jpg" alt="Profile Image" /></span>
                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                      </a>
                    </li>
                    <li>
                      <a>
                        <span class="image"><img src="<?php echo url('/'); ?>/images/img.jpg" alt="Profile Image" /></span>
                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                      </a>
                    </li>
                    <li>
                      <div class="text-center">
                        <a>
                          <strong>See All Alerts</strong>
                          <i class="fa fa-angle-right"></i>
                        </a>
                      </div>
                    </li> -->
                  </ul>
                </li>
              </ul>
            </nav>
          </div>
        </div>
        <!-- /top navigation -->