<?php $__env->startSection('page_title'); ?>
	Letters
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_header_title'); ?>
Letters
<?php $__env->stopSection(); ?>



<?php $__env->startSection('page_body'); ?>
<?php echo e(Breadcrumbs::render('letters')); ?>


  <?php echo e(Form::open(array('route' => 'letters.pdf','id' => 'form_pdf_letters',  'class' => 'cls_form'))); ?>

<div class="row row-cards row-deck">

  <?php ($label_list = EF::getWhiteLabel()); ?>

  <div class="col-12 ">                

    <div class="card" style = "padding:20px;">
    	<div class = "row">
    	     <div class="col-6">
            <div class = "row">
              <div class = "col-6">
                
               <label class="label-color">Letter:</label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('letter_type',":message")); ?></small>

            <div class="input-group mb-3">
            
              <?php ($letter_list = ['Select Letter Type']); ?>

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

             <?php echo e(Form::select('letter_type', $letter_list, '' , array('class' => 'form-control form-control-sm type cls_selection', 'onchange' => 'resetLetterView(this,"payment_reminder_section")'))); ?>

            </div> 
            </div> 


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

            <div class="input-group mb-3">
           
              <?php echo e(Form::Date('date', '', ['class' => 'form-control form-control-sm cls_date letter_date', 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>

          </div>
          </div> 
          <div class ="row payment_reminder_section" style ="display:none;" >
            <div class = "col-12">
                             <label class="label-color">Bank:</label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('letter_type',":message")); ?></small>

            <div class="input-group mb-3">
              <select  class="form-control-sm form-control bank selected_bank " name="bank" >
                  <option selected="true" value="<?php echo e(Crypt::encrypt(0)); ?>">Select Bank</option>
                  <?php $__currentLoopData = $bank_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(ucwords($rows->branch_code)); ?> | <?php echo e(ucwords($rows->bank_name)); ?> | <?php echo e(ucwords($rows->location)); ?></option>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </select>
            </div>
            </div>
          </div>
       
            
            <div class = "row">
                       <div class = "col-6">
                  <label class="label-color"><?php echo e(ucwords(str_replace('_',' ',$label_list['branch']))); ?>:</label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first($label_list['branch'],":message")); ?></small>

            <div class="input-group mb-3">
            
            <select name="project" class="form-control form-control-sm cls_selection selected_branch" onchange="getProjectBookings(event,this)">
          <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select <?php echo e(ucwords(str_replace('_',' ',$label_list['branch']))); ?></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($rows->name); ?></option>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
               </select>
            </div> 
            </div>
              <div class = "col-6">
             <label class="label-color">Booking:</label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('booking',":message")); ?></small>

            <div class="input-group mb-3">
            
            <select name="booking" class="form-control form-control-sm cls_selection selected_booking"  onchange="getLetterdata(event,'selected_booking','type','letter_date','bank')">
	        <option value="<?php echo e(Crypt::encrypt(0)); ?>">Select Booking</option>
	        
               </select>
            </div> 
          </div>
     
        </div>
      </div>
     
          <div class ="col-6 " style = "border: 1px solid; border-color: #328ab3; padding:7px;">
         
          	<div class = "right_view">
          	</div>
          	
          </div>
      </div>
    	</div>

    	
    	

    </div>

    		

</div>
<div class="row row-cards row-deck ">
  <div class=" mx-auto">   
<div class="bottom_view" >
    		</div>
    	</div>
    </div>
       <?php echo e(Form::close()); ?>


<?php $__env->stopSection(); ?>

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

<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_script'); ?>
<?php echo $__env->make('scripts.letters', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> 
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/skylite/resources/views/letters/letters_view.blade.php ENDPATH**/ ?>