<?php namespace App\Http\Controllers;?>
<!DOCTYPE html>
<html>
  <head>
    <title>Policy & Procedure | Admin |  Samuhik Saving & Co-Operative Society Ltd.</title>
    <?php echo $__env->make('Admin.Parts.MetaCSS', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <style type="text/css">
    
    /* ================ Accordian section ================== */
    .panel-default > .panel-heading {
    background-color: #F4F7F7;
    border: none;
    }
    .panel-default {
    border: none;
    background: #F4F7F7;
    }
    .panel-heading {
    border-bottom: none;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    padding: 0px
    }
    .panel-title > a {
    background: #F4F7F7;
    display: block;
    padding: 10px 15px;
    color: #212121;
    font-size: 18px;
    position: relative;
    }
    .panel-title > a[aria-expanded=true]{
    background: #3452FF;
    color: #fff;
    }
    .panel-title > a[aria-expanded=true]:after{
    content: "-";
    background: #fff;
    color: #3452FF;
    }
    .panel-title > a:focus{
    text-decoration: none;
    }
    .panel-title > a:after{
    background: #3452ff none repeat scroll 0 0;
    border-radius: 2px;
    color: #fff;
    content: "+";
    height: 20px;
    line-height: 16px;
    position: absolute;
    right: 15px;
    text-align: center;
    top: 9px;
    width: 20px;
    font-weight: bold;
    }
    .panel-group .panel + .panel {
    margin-top: 6px;
    }
    .accordian-right-content h2{
    margin-bottom: 13px;
    }
    </style>
  </head>
  <body>
    <!--====================================================
    MAIN NAVBAR
    ======================================================-->
    <?php echo $__env->make('Admin.Parts.TopHeader', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <!--====================================================
    PAGE CONTENT
    ======================================================-->
    <div class="page-content d-flex align-items-stretch">
      <!--***** SIDE NAVBAR *****-->
      <?php echo $__env->make('Admin.Parts.LeftNav', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
      <div class="content-inner form-cont">
        <div class="row">
          <div class="col-md-12">
            <div class="row">
              <div class="col-md-6 col-lg-6">
                <?php if(session('info')): ?>
                <div class="alert alert-success" style="text-transform: capitalize;">
                  <?php echo e(session('info')); ?>

                </div>
                <?php endif; ?>
                <?php
                  $pp=session('avisd');
                ?>
                
                <?php if($errors->any()): ?>
                <div class="alert alert-danger">
                  <ul>
                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li><?php echo e($error); ?></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </ul>
                </div>
                <?php endif; ?>
              </div>
            </div>
            <div class="card form " id="form1">
              
              
              <div class="col-lg-12 col-md-12">
                
                <div class="accorian-item">
                  
                  
                  <form action="admin_pp" method="post" enctype="multipart/form-data">
                    
                    <?php if(!$aa): ?>
                    
                        <div class="form-group">
                      <label for="exampleTextarea">Policy<i style="color: red">*</i></label>
                      <textarea class="form-control ckeditor" id="exampleTextarea" rows="8" name="policy"></textarea>
                    </div>

                    <div class="form-group">
                      <label for="exampleTextarea">Policy in Nepali</label>
                      <a rel="nofollow" href="http://naya.com.np" title="Nepali Social Network" class="naya_convert" data-site="dark"></a>
                      <textarea class="form-control" id="exampleTextarea" rows="8" name="policy_nepali" placeholder="Enter Introduction here.."></textarea>
                    </div>

                
                    

                    <div class="form-group">
                      <label for="exampleTextarea">Procedure<i style="color: red">*</i></label>
                      <textarea class="form-control ckeditor" id="exampleTextarea" rows="8" name="p_procedure"></textarea>
                    </div>

                    <div class="form-group">
                      <label for="exampleTextarea">Procedure in Nepali</label>
                      <a rel="nofollow" href="http://naya.com.np" title="Nepali Social Network" class="naya_convert" data-site="dark"></a>
                      <textarea class="form-control" id="exampleTextarea" rows="8" name="p_procedure_nepali" placeholder="Enter Mission here.."></textarea>
                    </div>

                    <?php else: ?> 
                    
                       <div class="form-group">
                      <label for="exampleTextarea">Policy<i style="color: red">*</i></label>
                      <textarea class="form-control ckeditor" id="exampleTextarea" rows="8" name="policy"><?php echo e($aa->policy); ?></textarea>
                    </div>

                    <div class="form-group">
                      <label for="exampleTextarea">Policy in Nepali</label>
                      <a rel="nofollow" href="http://naya.com.np" title="Nepali Social Network" class="naya_convert" data-site="dark"></a>
                      <textarea class="form-control" id="exampleTextarea" rows="8" name="policy_nepali" placeholder="Enter Introduction here.."><?php echo e($aa->policy_nepali); ?></textarea>
                    </div>

                    

                    <div class="form-group">
                      <label for="exampleTextarea">Procedure<i style="color: red">*</i></label>
                      <textarea class="form-control ckeditor" id="exampleTextarea" rows="8" name="p_procedure"><?php echo e($aa->p_procedure); ?></textarea>
                    </div>

                    <div class="form-group">
                      <label for="exampleTextarea">Procedure in Nepali</label>
                      <a rel="nofollow" href="http://naya.com.np" title="Nepali Social Network" class="naya_convert" data-site="dark"></a>
                      <textarea class="form-control" id="exampleTextarea" rows="8" name="p_procedure_nepali" placeholder="Enter Mission here.."><?php echo e($aa->p_procedure_nepali); ?></textarea>
                    </div>

                 
                    
                    <?php endif; ?>
                    

                    <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            
                            <button type="reset" class="btn btn-general btn-white">Cancel</button>
                            <button type="submit" class="btn btn-general btn-blue mr-2">Save</button>

                  </form>
                </div>
              </div>
            </div>
            
          </div>
          
          
          
        </div>
      </div>
    </div>
  </div>
  <?php echo $__env->make('Admin.Parts.Js', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
</body>
</html>