

<?php $__env->startSection('content'); ?>

<div class="content-wrapper">
    <!-- Main content -->
    <br>
    <br>
    <br>
    <br>
    <br>
    <section class="content">
          <div class="container-fluid">
            <!-- /.row -->
            <!-- Main row -->
            <div class="row">
              <!-- Left col -->
              <section class="col-lg-12 connectedSortable">
                  <div class="card card-primary">
                      <div class="card-header">
                      </div>
                      <div class="card-body">
                          <form method="POST" action="<?php echo e(url('/account/generate/statement')); ?>"
                          id="accountGenerator"
                         role="form" class="panel-heading">
                         <?php echo csrf_field(); ?>
                             <div class="row all_entries_row">
                                    <div class="col-md-3">
                                      <div class="form-group">
                                          <label for="exampleInputPassword1">Account Number</label>
                                          <br>
                                          <select
                                              class="form-control custom-form-inputs"
                                              name="account_number"
                                              id="debit_account"
                                              data-width="auto"
                                              data-live-search="true"
                                              >
                                              <option value="">--Select Account Name --</option>
                                              <?php $__currentLoopData = $all_accounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                              <option data-subtext="<?php print_r($value['account_number']);?>" value="<?php print_r($value['account_number']);?>"> <?php print_r($value['name']);?></option>
                                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                              </select>
                                          <span class="invalid-feedback" id="statementClientError"
                                          style="display: none;"></span>
                                      </div>
                                    </div>
                                     <div class="col-md-3">
                                         <div class="form-group">
                                             <label for="exampleInputEmail1">From Date</label>
                                             <input type="text" class="form-control" name="statement_start_date"
                                             id="ledger_start_date"
                                             placeholder="Enter From Date">
                                             <span class="invalid-feedback" id="statementStartDateError"
                                             style="display: none;"></span>
                                         </div>
                                     </div>
                                     <div class="col-md-3">
                                         <div class="form-group">
                                             <label for="exampleInputEmail1">To Date</label>
                                             <input type="text" class="form-control" name="statement_end_date"
                                             id="ledger_end_date"
                                             placeholder="Enter To Date">
                                             <span class="invalid-feedback" id="statementEndDateError"
                                             style="display: none;"></span>
                                         </div>
                                     </div>
                                     <div class="col-md-3">
                                         <button type="submit" name="action" class="btn btn-success btn-sm journal-search-btn" value="normal">Generate Statement</button>
                                         <button type="submit" name="action" class="btn btn-success btn-sm journal-search-btn" value="excel"><i class="fas fa-file-excel"></i></button>
                                     </div>
                                 </div>
                          </form>
                          <div class="panel-heading">
                              <div class="row" id="show_statement_infor" style="display: none;">
                                  <div class="col-md-12">
                                      <table class="table table-bordered table-striped">
                                          <tr>
                                              <td>PROFILE PHOTO</td>
                                              <td>
                                              <div class="text-center" id="member_profile_photo">
                                              </div>
                                              <h3 class="profile-username text-center" id="member_names"></h3>
                                              <h3 class="profile-username text-center" id="member_account_savings"></h3>
                                              </td>
                                          </tr>
                                          <tr>
                                              <td>GROUP</td>
                                              <td><p class="text-muted" id="member_group-info3">
                                              </p></td>
                                          </tr>
                                          <tr>
                                              <td>LOCATION</td>
                                              <td><p class="text-muted" id="member_location3">
                                              </p></td>
                                          </tr>
                                          <tr>
                                              <td>DATE OF BIRTH</td>
                                              <td><p class="text-muted" id="member_dob3">
                                              </p></td>
                                          </tr>
                                          <tr>
                                              <td>MOBILE PHONE NUMBER</td>
                                              <td><p class="text-muted" id="member_phone_number3">
                                              </p></td>
                                          </tr>
                                          <tr>
                                              <td>NATIONAL ID(NIN) / PASSPORT ID</td>
                                              <td><p class="text-muted" id="national_id3">
                                              </p></td>
                                          </tr>
                                      </table>
                                  </div>
                              </div>
                          </div>
                         <br>
                         <br>
                         <hr class="panel-heading">
                         <div class="table-responsive assets_container" id="show_statement"  style="display: none;">
                          <div class="panel-heading">
                              <button class="btn btn-success btn-sm float-right panel-heading" id="print_schedule">
                                  Print Statement
                                  <i class="fas fa-print"></i>
                               </button>
                          </div>
                          <br>
                          <b><h4 style="text-align:center">STATEMENT OF ACCOUNT</h4></b>
                          <br>
                          <br>
                          <div id="logoin" style="display: block; text-align: center;"><img src="<?php echo e(URL:: asset('img/logo-summary.png')); ?>"></div>
                          <br>
                          <br>
                          <div class="row">
                              <div class="col-md-4"></div>
                              <div class="col-md-4"></div>
                              <div class="col-md-4">
                                  <table class="table table-bordered table-striped">
                                      <tr>
                                        <td><b>Branch</b></td>
                                        <td><h3 id="statement_branch"></h3></td>
                                      </tr>
                                      <tr>
                                          <td><b><h6>Print Date</h6></b></td>
                                          <td><?php echo e(date('Y-M-d')); ?></td>
                                      </tr>
                                      <tr>
                                          <td><b><h6>Time</h6></b></td>
                                          <td><?php echo e(date("h:i:sa")); ?></td>
                                      </tr>
                                      <tr>
                                          <td><b>Period</b></td>
                                          <td id="statemet_period"></td>
                                      </tr>
                                  </table>
                              </div>
                          </div>
                          <br>
                          <br>
                          <table  class="table table-bordered table-striped">
                              <thead>
                                  <tr>
                                      <th>Post Date</th>
                                      <th>Transaction</th>
                                      <th>Ref.No</th>
                                      <th>Debit</th>
                                      <th>Credit</th>
                                      <th>Balance</th>
                                    </tr>
                              </thead>
                              <tbody id="statement_table">

                              </tbody>
                          </table>
                        </div>

                      </div>
                    </div>
              </section>
              <!-- /.Left col -->
            </div>
            <!-- /.row (main row) -->
          </div><!-- /.container-fluid -->
        </section>
        <!-- /.content -->
  </div>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xamp\htdocs\esp_manager\resources\views/accountstatement.blade.php ENDPATH**/ ?>