@extends('admin.layouts.app') @section('title', __('admin.clients.credit_title').' - '.$client->full_name) @section('content') @if($errors->any())
@endif
@csrf
{{ __('admin.clients.credit_history') }}
@if($history->isEmpty())
{{ __('admin.clients.credit_none') }}
@else @foreach($history as $row) @endforeach
{{ __('common.table.date') }}{{ __('common.table.description') }}{{ __('common.table.amount') }}
{{ $row->date?->format(date_fmt()) }} {{ $row->description }} {{ (float) $row->amount < 0 ? '−' : '+' }}{{ money_fmt(abs((float) $row->amount)) }}
{{ $history->links() }}
@endif
@endsection