@extends('pdf.main2', ['title' => __('menu.quote-create-with-day') ]) @section('content')
@if (in_array('type', $checkbox)) @endif @if (in_array('date', $checkbox)) @endif @if (in_array('corporation', $checkbox)) @endif @if (in_array('categorie', $checkbox)) @endif @if (in_array('numero', $checkbox)) @endif @if (in_array('mode_paiement', $checkbox)) @endif @if (in_array('status', $checkbox)) @endif @if (in_array('ressource', $checkbox)) @endif @if (in_array('montant', $checkbox)) @endif @php $n = 0; $entree = 0; $sortie = 0; @endphp @foreach ($items as $item) @php $n++; @endphp @if ($item->type == 'Entrée') @php $entree += $item->montant; @endphp @else @php $sortie += $item->montant; @endphp @endif @if (in_array('type', $checkbox)) @endif @if (in_array('date', $checkbox)) @endif @if (in_array('corporation', $checkbox)) @endif @if (in_array('categorie', $checkbox)) @endif @if (in_array('numero', $checkbox)) @endif @if (in_array('mode_paiement', $checkbox)) @endif @if (in_array('status', $checkbox)) @endif @if (in_array('ressource', $checkbox)) @endif @if (in_array('montant', $checkbox)) @endif @endforeach
TypeDateEntitéCatégoriePièce comptableMode paiementEtatRessourceMontant
{{ ucfirst($item->type) }}{{ get_date($item->date_operation) }}{{ $item->corporation->libelle }}{{ $item->categorie->libelle }}{{ $item->numero_piece }}{{ $item->mode_paiement->libelle }}{{ ucfirst($item->status) }}{{ $item->ressource }}{{ get_amounts($item->montant) }}
Entrée Sortie
{{ get_amounts($entree) }} {{ get_amounts($sortie) }}
@stop