@extends('layouts.master') @section('content') AKOUNTA | Gestions des Créances
. . .
@include('layouts.header') @include('layouts.sidebar')

Paiement

@if (session('message')) @endif @if (session('success')) @endif
@foreach($creance as $c)

Facture de: {{$c->service}} | Nom : {{$c->nom_prenom}} | @if(($c->montant) <= $soldePaye[0]->solde_paye) Reste à payer: 0 FCFA @else Montant: {{number_format(($c->montant), 0, ',', ' ') }} FCFA | Reste à payer: {{number_format(($c->montant) - ($soldePaye[0]->solde_paye), 0, ',', ' ') }} FCFA @endif


@endforeach
@if(($c->montant) <= $soldePaye[0]->solde_paye)

La facture a été soldée

@else

Faire un paiement

@csrf
@error('montant') {{ $message }} @enderror
@error('registered') {{ $message }} @enderror
@foreach($creance as $c) @endforeach
@endif
@endsection