
<?php $__env->startSection('title'); ?> Email appel <?php $__env->stopSection(); ?>
<?php $__env->startSection('title_card',""); ?>
<?php $__env->startSection('subtitle_card',""); ?>


<?php $__env->startSection('content'); ?>
    <div class="card">
        <div class="col-lg-max col-lg-offset-1 container-fluid">
            <div class="card-header bg-info">
                Envoi d'un email à <?php echo $employeur->nom; ?>

            </div>
            <div class="card-body">
	            <?php echo e(html()->form('POST', url('/recouvrement_sendmail/'.$employeur->id))->open()); ?>

				<div class="col-lg-max col-lg-offset-1">
					<div class='form-group callout callout-danger '>
						<h3><?php echo html()->label( 'Période de cotisation','lib_periode'); ?></h3>
						<div class="row">
							<div class="col-md-3">
								<?php echo html()->label( 'Joindre le bordereau','pj'); ?>

								<?php echo html()->checkbox('pj',true,'')->attributes(['checked']); ?>

							</div>	
						</div>	

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

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

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

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

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

							<div class="col-md-2 mt-4">
				                <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 callout callout-success '>
						<h3><?php echo html()->label( 'Email','lib_email'); ?></h3>

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

								<?php echo html()->text('destinataire',$employeur->email)->placeholder('Email du destinataire')->attributes(['class' => 'form-control']); ?>	
							</div>
						</div>
						<div class='form-group'>
							<div class="col-md-8 col-md-offset-1">
								<?php echo html()->label( 'Objet','objet'); ?>

								<?php echo html()->text('objet',$objet)->placeholder('Objet')->attributes(['class' => 'form-control']); ?>	
							</div>
						</div>
						<div class='form-group'>
						    <div class="col-md-8 col-md-offset-1">
						    	<?php echo html()->label( 'Message','message'); ?>

						    	<?php echo html()->textarea('message',$message)->placeholder('Message')->attributes(['rows'=>'6','class' => 'form-control']); ?>	
						    </div>
						</div>
						<div class="col-sm-9">
							<?php echo html()->button('Envoyer')->value('Envoyer')->type('submit')->attributes(['class' => 'btn btn-primary']); ?>

						</div>
					</div>
				</div>
	            <?php echo e(html()->form()->close()); ?>

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



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