Dossiers

@foreach ($data['doss'] as $item) @if (!empty($item)) @endif @endforeach
Numero de dossier Total Charges Honorair Tva
{{ $item->num_dossier }} @php($mTotC = 0) @foreach ($data['fdevi'] as $item0) @if ($item0->id_dossier == $item->id) @php($mTotC += $item0->montant_tot) @endif @endforeach {{ number_format($mTotC, 2, '.', ',') }} @php($honor = 0) @foreach ($data['dossHonor'] as $item1) @if ($item1->id_dossier == $item->id) @php($honor += $item1->honor) @endif @endforeach {{ number_format($honor, 2, '.', ',') }} @php($tva = 0) @foreach ($data['dossTva'] as $item3) @if ($item3->id_dossier == $item->id) {{-- {{number_format($item3->prix2,2,'.',',')}} --}} @php($tva += $item3->tva) @endif @endforeach {{ number_format($tva, 2, '.', ',') }}

Dépenses sur dossiers

@foreach ($data['chargeDoss'] as $item) @if (!empty($item)) @endif @endforeach
Numero de dossier Désignation Montant
{{-- @if ($num_dossier != $item->num_dossier) --}} {{ $item->num_dossier }} {{-- @endif --}} {{ $item->designation }} {{ number_format($item->prix, 2, '.', ',') }}Mad

Facture

@foreach ($data['facts'] as $item) @if (!empty($item)) @endif @endforeach
Numero facture Numero Dossier Date Montant
{{ $item->num_facture }} @if ($item->numdossier != '') {{ $item->numdossier }} @else Pas de dossier @endif {{ $item->date_facture }} {{ number_format($item->montant, 2, '.', ',') }}Mad

{{--

Recettes

Étude Recettes Client Recettes
@foreach ($data['erecett'] as $item) @if (!empty($item))
{{$item}} Mad

@endif @endforeach
@foreach ($data['crecett'] as $item) @if (!empty($item))
{{$item}} Mad

@endif @endforeach
--}}

{{--
{{$data['honor']->designation}} {{$data['honor']->prix}} Mad
{{$data['tva']->designation}} {{$data['tva']->prix}} Mad
--}}