    @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('')}}"> </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"> Total Bodys Pending at Morque</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">Total Bodys Pending at Morque

</h3>
    </div>
    <!-- /.card-header -->
    
    <div class="card-body">
     <div class = "table-responsive">
    <table id="example" class="table table-striped table-bordered" style="width:100%">
    
    <thead>
              <tr style = "background-color: cornflowerblue;
    color: aliceblue;">
                    <th> PS  </th>
                    <th> UD Case No</th>
                    <th> Name Of Deceased</th>
                    <th> Caste of deceased  </th>
                    <th> Sex gender </th>
                    <th> Residence</th>
                    <th> Where body_found </th>
                    <th> Where body_found_date </th>
                    <th> Where body_found_time </th>
                    <th> Place of_pm </th>
                    <th> Means of_dispatch </th>
                    <th> Identyfying Officer</td>
                    <th> Body_marks </th>
                    <th> Cause_of_death</th>
                    <th> Cloths_sent_with_body</th>
                    <th> Article_sent_body</th>
                    <th> Remarks</th>
                    <th> Ststus </th>
                    <th> Action </th>

                       
            </tr>
    
    </thead>
    
    <tbody>
        
        
               @foreach($body_pending_morquecases as $body_pending_morque)

        <tr>
      
                <td> {{$body_pending_morque['psname']}}         </td>
                <td> {{$body_pending_morque['ud_case_no']}}     </td>
                <td> {{$body_pending_morque['name_deceased']}}  </td>
                <td> {{$body_pending_morque['caste_deceased']}} </td>
                <td> {{$body_pending_morque['sex_gender']}} </td>
                <td> {{$body_pending_morque['residence']}} </td>
                <td> {{$body_pending_morque['where_body_found']}} </td>
                <td> {{$body_pending_morque['where_body_found_date']}} </td>
                <td> {{$body_pending_morque['where_body_found_time']}} </td>
                <td> {{$body_pending_morque['place_of_pm']}} </td>
                <td> {{$body_pending_morque['means_of_dispatch']}} </td>
                <td> {{$body_pending_morque['identyfying_officer']}} </td>
                <td> {{$body_pending_morque['body_marks']}} </td>
                <td> {{$body_pending_morque['cause_of_death']}} </td>
                <td> {{$body_pending_morque['cloths_sent_with_body']}} </td>
                <td> {{$body_pending_morque['article_sent_body']}} </td>
                <td> {{$body_pending_morque['remarks']}} </td>
                <td> 
                
                       Pending
                        
                </td>

                <td> 
                
                      <a href = "view-form-5371/{{$body_pending_morque['form5371_id']}}">  <i class = "fa fa-eye" > </i> </a>
                        
                </td>
               
        </tr>
        
        @endforeach
            
    </tbody>
    
    </table>
    </div>
    </div>
    
    <!-- /.card-body -->
    
    </div>
    
    <!-- /.card -->
    
    <!-- /.card -->
    
    </div>
    
    <!-- /.col -->        
    <!-- /.col -->
    
    </div>
    
    <!-- /.row -->
    <!-- /.row -->
    <!-- /.row -->
    <!-- /.row -->
    <!-- /.row -->
    
    </div>
    
    <!-- /.container-fluid -->
    
    </section>
    
    <!-- /.content -->
    
    </div>
    
    @endsection