<!-- Modal ADD Branch -->
<?php ($convention = "subhead"); ?>
<?php ($key_element = "abcd"); ?>
<div class="modal fade" id="md_account_report" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <?php echo e(Form::open(array('route' => 'report.account', 'class' => 'cls_form','target' => '_blank'))); ?>

  <div class="modal-dialog modal-md" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Account Report</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <div class="modal-body ">
        <div class = "card">
          <div class ="card-body form-fieldset">
          <div class="row">


          <div class="col-sm-6">
              <label class="label-color">From:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('date',":message")); ?></small>

            <div class="input-group mb-3">

              <?php echo e(Form::Date('from_date', '', ['class' => 'form-control form-control-sm  cls_date', 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>

          <div class="col-sm-6">
            <label class="label-color">To:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('date',":message")); ?></small>

            <div class="input-group mb-3">

              <?php echo e(Form::Date('to_date', '', ['class' => 'form-control form-control-sm  cls_date', 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>



          <div class="col-sm-6">
            <label class="label-color"> Select Head:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('head',":message")); ?></small>


            <div class="input-group mb-3">
              <select onchange="getSubheadByHead(this,'<?php echo e($key_element); ?>','<?php echo e($convention); ?>')" name="head" class="form-control form-control-sm">
                <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select Head</option>
                <?php $__currentLoopData = $head_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <option value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e(ucfirst($rows->name)); ?>

                  </option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </select>
            </div>
          </div>
                 <div class="col-sm-6">
            <label class="label-color"> Select SubHead:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('subhead',":message")); ?></small>
            <div class="input-group mb-3">
              <select id="<?php echo e($convention); ?>_subhead_<?php echo e($key_element); ?>" name="subhead" class="form-control form-control-sm ">
                                <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select Subhead</option>

                              </select>

            </div>
          </div>

          <div class="col-sm-12">
            <label class="label-color"> Select Nature:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('nature',":message")); ?></small>
            <div class="input-group mb-3">
              <select name="nature" class="form-control form-control-sm">
                <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select Nature</option>
                <?php $__currentLoopData = EF::getNatureList(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <option value="<?php echo e(Crypt::encrypt($rows)); ?>"><?php echo e(ucfirst($rows)); ?>

                  </option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </select>
            </div>
          </div>
            <div class="col-sm-6">
            <label class="label-color"> Select User Type:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('head',":message")); ?></small>

                  <div class="input-group mb-3">

              <?php ($type_list = [Crypt::encrypt('0')=>'Select User Type ']); ?>

              <?php $__currentLoopData = EF::getUserTypeWithRole(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php ($type_list += [Crypt::encrypt($rows->id)=> $rows->name]); ?>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

             <?php echo e(Form::select('user_type', $type_list, '' , array('class' => 'form-control form-control-sm cls_required cls_selection','onChange' => 'getUserByDealer(this,"'.$key_element.'")'))); ?>


            </div>
          </div>

            <div class="col-sm-6">
            <label class="label-color"> Select User:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('user',":message")); ?></small>

            <div class="input-group mb-3">
            <select id="user_<?php echo e($key_element); ?>" name="user" class="form-control form-control-sm ">
                                <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select User</option>

                              </select>

            </div>
          </div>

          <div class="col-sm-12">
            <label class="label-color"> Select <?php echo e(ucwords(str_replace('_',' ',$branch_labels['module']))); ?>:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first($branch_labels['module'],":message")); ?></small>
            <div class="input-group mb-3">
              <select id="branch_<?php echo e($key_element); ?>" onchange="getBookingList(this,'<?php echo e($key_element); ?>','<?php echo e(Crypt::encrypt(0)); ?>')" name="<?php echo e($branch_labels['module']); ?>" class="form-control form-control-sm">
                <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select <?php echo e(ucwords($branch_labels['module'])); ?></option>
                <?php $__currentLoopData = $branch_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <option value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e(ucfirst($rows->name)); ?>

                  </option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </select>
            </div>
          </div>
                  <div class="col-sm-6">
            <label class="label-color"> Select Booking:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('category',":message")); ?></small>
            <div class="input-group mb-3">
              <select id="booking_<?php echo e($key_element); ?>" name="booking" class="form-control form-control-sm">
                <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select Booking</option>
               
              </select>
            </div>
          </div>
        <div class="col-sm-6">
            <label class="label-color"> Select Status:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('status',":message")); ?></small>
            <div class="input-group mb-3">
              <select name="status" class="form-control form-control-sm">
                <option value="<?php echo e(Crypt::encrypt(0)); ?>">Account Status</option>
                <?php $__currentLoopData = $account_status_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <?php if($rows->status != "Unapprove"): ?>
                    <option value="<?php echo e(Crypt::encrypt($rows->status)); ?>">
                  <?php if($rows->status == "Approve"): ?>
                <span class="badge badge-success"><?php echo e(EF::getstatus($rows->status)); ?></span>
              <?php else: ?>
                <span class="badge badge-warning"> <?php echo e($rows->status); ?></span>
              <?php endif; ?>
              <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </select>
            </div>
          </div>

           <div class="col-sm-12">
                   <label class="label-color">Payment Mode: <i style = "color:red;">*</i></label>
                <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('mode',":message")); ?></small>

                <div class="input-group mb-3">

                  <?php ($mode_list = ['0' => 'Select Payment Mode']); ?>

                  <?php $__currentLoopData = EF::getPaymentMode(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php ($mode_list += [$rows => $rows]); ?>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                 <?php echo e(Form::select('mode', $mode_list, '' , array('class' => 'form-control form-control-sm  form-control form-control-sm -sm  cls_selection','onChange' => 'checkPaymentMode(this,"bank_payment_section")'))); ?>

                </div>
            </div>

          <div class="col-sm-12">
            <label class="label-color"> Select Format:</label>
            <small class="form-errors pull-right" value=""><?php echo e($errors->first('format',":message")); ?></small>
            <div class="input-group mb-3">
              <select name="format" class="form-control form-control-sm">
                <option value="0">PDF</option> 
                <option value="1">EXCEL</option>
              </select>
            </div>
          </div>



        </div>
      </div>
    </div>




      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary" content="generate account report">Generate</button>
      </div>
    </div>
  </div>
  <?php echo e(Form::close()); ?>

</div>
<!-- END MODAL ADD BRANCH -->
<?php /**PATH /var/www/skylite/resources/views/reports/modals/account_report.blade.php ENDPATH**/ ?>