@extends('layouts.app') @section('content')
Plan comptable
@foreach($rubriques as $id_rubrique =>$items) @php $comptes = key_exists($id_rubrique, $planComptes) ? $planComptes[$id_rubrique] : []; @endphp @if(count($comptes) > 0) @foreach ($comptes as $id_compte => $compte) @foreach ($compte->child as $item) @endforeach @endforeach @endif @foreach($items->child as $rubrique) @php $comptes = key_exists($rubrique->id_rubrique, $planComptes) ? $planComptes[$rubrique->id_rubrique] : []; @endphp @if(count($comptes) > 0) @foreach ($comptes as $id_compte => $compte) @foreach ($compte->child as $item) @endforeach @endforeach @endif @endforeach @endforeach
Code Libellé
{{ $id_rubrique }} {{ $items->title }}
{{ $id_compte }} {{ $compte->title }}
{{ $item->id_compte }} {{ $item->libelle_compte }} {{-- --}}
{{$rubrique->id_rubrique}} {{$rubrique->libelle_rubrique}}
{{ $id_compte }} {{ $compte->title }}
{{ $item->id_compte }} {{ $item->libelle_compte }}
Nouvel exercice
@csrf
@endsection @section('script') @endsection