@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('view_hospital')}}"> View Hospital </a> </h1>
          
          </div>
          
          <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">Add New Hospital</li>
          
            </ol>
          
          </div>
          
        </div>
    
    </div> 
    
    <!-- /.container-fluid -->
     
    </section>

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

     <section class = "content">

     <div class = "container-fluid">

     <div class = "row">
           
          <!-- left column -->

          <div class="col-md-12">
            
            <!-- jquery validation -->

            <div class = "card card-primary">

            <div class = "card-header">
              
                <h3 class = "card-title">Add New Hospital </h3>
            
            </div>

            <form id = "quickForm" action = "{{url('Save_hospital')}}" method = "POST">
          
                    @csrf

                    <input type =  "hidden" name = "_token" value   = "{{ csrf_token() }}" />
                    
                    <input type =  "hidden" name = "status"   value   =  "Active" />

                    <div class  = "row">

                    <div class = "col-6">

                <label for  = "exampleInputPassword1"> Name</label>
                            
                <input type = "text" name = "hospital_name" class = "form-control" id = "eml" placeholder= " Name" required>    

                    </div>
                    
                    <div class = "col-6">
                            <label for  = "exampleInputPassword1">Address</label>
                            <textarea name = "address" class = "form-control" placeholder= "address" ></textarea>    
                    </div>
                    
                        <div class = "col-6">

                <label for  = "exampleInputPassword1"> Super Name </label>
                            
                <input type = "text" name = "super_name" class = "form-control" id = "super_name" placeholder= " Super Name" required>    

                    </div>
                    
                       <div class = "col-6">

                <label for  = "exampleInputPassword1"> Email </label>
                            
                <input type = "text" name = "email" class = "form-control" id = "email" placeholder= " Email" required>    

                    </div>
                      <div class = "col-6">

                <label for  = "exampleInputPassword1"> Mobile </label>
                            
                <input type = "text" name = "mobile" class = "form-control" id = "mobile" minlength  = "10" maxlength = "10"  placeholder= " Mobile" required>    

                    </div>
                    
                      <div class = "col-6">

                <label for  = "exampleInputPassword1"> Autopsy Surgeon </label>
                            
                <input type = "text" name = "autopsy_surgeon" class = "form-control" id = "autopsy_surgeon" placeholder= " autopsy_surgeon" required>    

                    </div>
                    
                    
                     <div class = "col-6">

                <label for  = "exampleInputPassword1"> Password </label>
                            
                <input type = "password" name = "password" class = "form-control" id = "mobile" placeholder= " Password" required>    

                </div>
                    
                <div class = "col-6" >
                
                    <label for = "exampleInputPassword1"> </label>
                
                    <br>
                
                   <input type  = "submit" name = "submit" class = "btn btn-primary" id = "" required>      
                
                </div>

                </div>
              
               </form>

            </div>
            
            <!-- /.card -->
          
          </div>
          
          <!--/.col (left) -->
          <!-- right column -->
          
          <div class = "col-md-6">

          </div>
          
          <!--/.col (right) -->
        
        </div>
       
        <!-- /.row -->
     
      </div>
      
      <!-- /.container-fluid -->
    
    </section>
    
    <!-- /.content -->
  
  
  </div>
  
  <!-- /.content-wrapper -->
  
  @endsection
