
 
<?php $__env->startSection('title'); ?> Email appel <?php $__env->stopSection(); ?>
 
<?php $__env->startSection('content'); ?>

<style>
    body {
        margin-top: -20px;
    }
</style> 

<h3><i class='fa fa-banque'></i>Envoi d'un email à <?php echo $employeur->nom; ?></h3>

<?php echo Form::open(['email' => 'form', 'url' => '/recouvrement_sendmail/'.$employeur->id, 'class' => 'form-horizontal']); ?>


 
<div class="col-lg-max col-lg-offset-1">
	<div class='form-group alert bg-info'>
		<h3><?php echo Form::label('lib_preiode', 'Période de cotisation'); ?></h3>
		<div class="row">

				<div class="col-md-3">
				        <?php echo Form::label('pj', 'Joindre le bordereau'); ?>

				        <?php echo Form::checkbox('pj', true, ['checked']); ?>

				</div>	
	
		</div>	

		<div class="row">
			<div class="col-md-3">
				<?php echo Form::label('tri_cotis', 'Trimestre'); ?>

			    <?php echo Form::select(
			            'tri_cotis',[""=>"Choisissez un trimestre",
			                "T1"=>"1er trimestre","T2"=>"2e trimestre","T3"=>"3e trimestre","T4"=>"4e trimestre"],
			            "",
			            [   'id'=>'tri_cotis',
			                'class' => 'form-control selectpicker'
			                ,'data-width' => "100%",
			            ]
			        ); ?>	
			 </div>	
			<div class="col-md-5">
			        <?php echo Form::label('libelle', 'Désignation'); ?>

			        <?php echo Form::text('libelle_periode', $periode, ['id'=>'libelle_periode','placeholder' => 'Libellé de la période','class' => 'form-control']); ?>

			</div>
			<div class="col-md-2">
			        <?php echo Form::label('annee', 'Année'); ?>

			        <?php echo Form::text('annee', $annee, ['id'=>'annee','placeholder' => 'Année','class' => 'form-control']); ?>

			</div>

			<div class="col-md-2">
                <a href="javascript:" onclick="show_bordereau();"  
                	class="btn btn-warning pull-left" >Aperçu</a>
                <script>
                    function show_bordereau() {
                    	var lib=$('#libelle_periode').val();
                    	var selected_trim = [...tri_cotis.selectedOptions].map(option => option.value);
                    	var trim=$('#tri_cotis').val();
                    	if(lib=="") lib="-";

                    	var annee=$('#annee').val();
                    	var url="<?php echo url('/cotisations_bordereau_cotisation/'.$employeur->id); ?>/"+annee+"/"+trim+"/"+lib;
                    	window.open(url);
                        return false;
                    };
                </script>
			</div>
		</div>
	</div>
</div>


<div class="col-lg-max col-lg-offset-1">
	<div class='form-group alert bg-warning'>
		<h3><?php echo Form::label('lib_email', 'Email'); ?></h3>

		<div class='form-group'>
			<div class="col-md-6 col-md-offset-1">
			        <?php echo Form::label('destinataire', 'Destinataire'); ?>

			        <?php echo Form::text('destinataire', $employeur->email, ['placeholder' => 'Email du destinataire','class' => 'form-control']); ?>

			</div>
		</div>
		<!--
		<div class='form-group'>
			<div class="col-md-6 col-md-offset-1">
			        <?php echo Form::label('cci', 'Copie conforme invisible'); ?>

			        <?php echo Form::text('cci', 'recouvrement.cps@mail.wf', ['placeholder' => 'Email pour copie invisible','class' => 'form-control']); ?>

			</div>
		</div>
		-->
		<div class='form-group'>
			<div class="col-md-8 col-md-offset-1">
			        <?php echo Form::label('objet', 'Objet'); ?>

			        <?php echo Form::text('objet', $objet, ['placeholder' => 'Objet','class' => 'form-control']); ?>

			</div>
		</div>
		<div class='form-group'>
		    <div class="col-md-8 col-md-offset-1">
		        <?php echo Form::label('message', 'Message'); ?>

		        <?php echo Form::textarea('message', $message, ['placeholder' => 'Message', 'class' => 'form-control', 'rows'=>'6']); ?>

		    </div>
		</div>
		<div class="col-sm-9">
		    <?php echo Form::submit('Envoyer', ['class' => 'btn btn-primary']); ?>

		</div>
		<div class="col-sm-9">
			-
		</div>
	</div>
</div>

<?php echo Form::close(); ?>


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

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre\resources\views/recouvrement/suivi/email.blade.php ENDPATH**/ ?>