@extends('layouts.main')

@section('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> <a href="{{url('add_doctor')}}"> Add Doctor</a> </h1>
          
          </div>

                @if(session('message'))
    
                <span class="alert alert-success">{{session('message')}}</span>
    
                @endif        

            <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"> Doctor </li>
        
            </ol>
        </div>
      </div>
    </div>
    <!-- /.container-fluid -->
  </section>
  <!-- Main content -->
  <section class="content">
    <div class="container-fluid">
      <div class="row">
        <div class="col-md-12">
          <div class="card">
            <div class="card-header">
              <h3 class="card-title">View  Doctor</h3>
            </div>
            <!-- /.card-header -->
          
            <div class="card-body">
      
            <table id="example" class="table table-striped table-bordered" style="width:100%">
      
                <thead>
                          <tr style = "background-color: cornflowerblue;
    color: aliceblue;">

                                            <th>Sr. No.</th>
                                            <th>Doctor Name </th>
                                            <th>Doctor Department</th>
                                            <th>Mobile</th> 
                                             <th>Password</th> 
                                            <th>Adhar No</th> 
                                            <th>Upload Adhar</th>
                                             <th>Reg NO</th>
                                              <th>Email</th>
                                           
                          </tr>
                  </thead>
                  
                  <tbody>
                  
                  
    @php
    
    $i=1
    
    @endphp
    
    @php
    
    $i=1
    @endphp
    @foreach($doctor as $GoogleAdsLeads2)     
            <tr>
                    <td>{{$i++}}</td>
                    <td>{{$GoogleAdsLeads2['doctor_name']}}</td>
                    <td>{{$GoogleAdsLeads2['doctor_department']}}</td>
                    <td>{{$GoogleAdsLeads2['mobile']}}</td>
                     <td>{{$GoogleAdsLeads2['password']}}</td>
                    <td>{{$GoogleAdsLeads2['adhar_no']}}</td>
                    <td>{{$GoogleAdsLeads2['upload_adhar']}}</td>
                    <td>{{$GoogleAdsLeads2['reg_no']}}</td>
                    <td>{{$GoogleAdsLeads2['email']}}</td>

            </tr>

        @endforeach
     
        </tbody>
        
      </table>
        
            </div>
            <!-- /.card-body -->
          </div>
          <!-- /.card -->
          <!-- /.card -->
        </div>
        <!-- /.col -->        
        <!-- /.col -->
      </div>
      <!-- /.row -->
      <!-- /.row -->
      <!-- /.row -->
      <!-- /.row -->
      <!-- /.row -->
    </div><!-- /.container-fluid -->
  </section>
  <!-- /.content -->
</div>
@endsection