@extends('layouts.template') @section('title') Rapports Tva @endsection @section('content')

Historique de facture : du {{ date('d/m/Y', strtotime($from)) }} au {{ date('d/m/Y', strtotime($to)) }}


Totalite de: ({{ count($output) }}) Factures


@php $counter = 0; $totHtva = 0; $tottva = 0; $tottvac = 0; $tottc = 0; @endphp @foreach ($output as $i => $item) @php $counter++; @endphp @php if ($item['status'] == '2' || $item['is_fa'] == '1') { } else { $totHtva += $item['Htva']; $tottva += $item['tva']; $tottc += $item['tc']; } @endphp @endforeach
# DATES NIF CLIENT N° FACT P.T HTVA TVA TC P.T TVAC
{{ $counter }} {{ $item['date'] }} {{ $item['customer_tin'] }} {{ $item['customer_name'] }} {{ $i }} {{ number_format($item['Htva'], 0, '.', '.') }} {{ number_format($item['tva'], 0, '.', '.') }} {{ number_format($item['tc'], 0, '.', '.') }} {{ number_format($item['Htva'] + $item['tva'], 0, '.', '.') }}

Total

{{ number_format(floor($totHtva), 0, '.', '.') }} {{ number_format(floor($tottva), 0, '.', '.') }} {{ number_format(floor($tottc), 0, '.', '.') }} {{ number_format(floor($totHtva + $tottva), 0, '.', '.') }}
@endsection