@extends('layouts.master') @section('title') Exportation d'un mandat TP @stop @section('content')
@if(!isset($nom_file))

{!! "Génération du fichier TP pour les mandats à transférer" !!}

{!! Form::open(['form' => 'generation', 'url' => 'mandats_export_fichier_TP', 'method' => 'POST' , 'class' => 'form-horizontal']) !!} @else

{!! "Transmission fichier TP pour les mandats : ".$mandat_liste !!}

{!! Form::open(['form' => 'form', 'url' => 'mandat_email_fichier', 'method' => 'POST' , 'class' => 'form-horizontal']) !!} @endif
@if(!isset($nom_file)) {!! Html::image("img/process.png", "Export", array( 'maxwidth' => '30%','width' => '50%' )) !!} @else {!! Html::image("img/process_valide.png", "Export", array( 'maxwidth' => '30%','width' => '50%' )) !!} @endif
@if(!isset($nom_file))

Cette opération va permettre de générer un fichier destiné à la DFiP.

Ce fichier ne contiendra les paiements des mandat suivants :

@foreach($mandats as $mandat)

{!! $mandat->getListeCreancierHTML_Export() !!}

@endforeach

@else

Le fichier a été généré. Il contient {!! $nb_lignes !!} lignes.
Vous pouvez le télécharger en faisant un clique-droit puis enregistrer le lien sous sur l'icône ci-dessous..

@endif
@if(!isset($nom_file))
{!! Form::label('compte', 'Compte (11 caractères)') !!} {!! Form::text('compte', "", ['class' => 'form-control','placeholder'=>'Numéro de compte CPSWF']) !!}
{!! Form::label('designation', 'Designation') !!} {!! Form::text('designation', "DFIP", ['class' => 'form-control']) !!}
{!! Form::label('date_export', 'Date :') !!}
{!! Form::text('date_export', date('d/m/Y'), ['class' => 'form-control']) !!}
@if($nbCompteIncorrect==0) {!! Form::submit('Générer le fichier des paiement du mandat DFiP' , ['class' => 'btn btn-success form-horizontal','style'=>'padding:10px;font-size:16px']) !!} @else {!! Form::button('Génération impossible
certains comptes bancaires ne sont pas valides (21car. minimum)' , ['class' => 'btn btn-danger form-horizontal','style'=>'font-size:16px']) !!} @endif @else {!! Form::hidden('path_nom_file',$path_nom_file); !!} {!! Form::hidden('nom_file',$nom_file); !!}
@endif
{!! Form::close() !!}
@stop