@extends('layouts.dash') @section('title') ExportMandat @stop @section('content')
@if(!isset($nom_file))

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

{{ html()->form('POST', url('/mandats_export_fichier_TP'))->open() }} @else

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

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