112 lines
4.1 KiB
PHP
112 lines
4.1 KiB
PHP
@extends('layout.master')
|
|
|
|
@section('title', 'Forderungen und Verbindlichkeiten')
|
|
|
|
@section('subnav')
|
|
<li class='nav-item'>
|
|
<a href='/targets/create' class='btn btn-outline-success'>Neue Forderung / Verbindlichkeit</a>
|
|
</li>
|
|
@endsection
|
|
|
|
@section('content')
|
|
<h2>@yield('title')</h2>
|
|
<h3>Offene Verbindlichkeiten</h3>
|
|
<table class='table table-bordered table-striped'>
|
|
<tr>
|
|
<th>Datum</th>
|
|
<th>Position</th>
|
|
<th>Person / Firma</th>
|
|
<th>Soll</th>
|
|
<th>Ist</th>
|
|
<th>Differenz</th>
|
|
<th>Aktionen</th>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<th>SUMME</th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th>{!! formatAmount($sums['debts']) !!}</th>
|
|
<th></th>
|
|
</tr>
|
|
@foreach ($personTargets['debts'] as $personTarget)
|
|
<tr>
|
|
<td>{{ formatDate($personTarget->date) }}</td>
|
|
<td>{{ $personTarget->reference }}</td>
|
|
<td>{{ $personTarget->person->fullName() }}</td>
|
|
<td>{!! formatAmount($personTarget->signedAmount()) !!}</td>
|
|
<td>{!! formatAmount($personTarget->actualsSum()) !!}</td>
|
|
<td>{!! formatAmount($personTarget->difference()) !!}</td>
|
|
<td>
|
|
<div class="btn-group" role="group">
|
|
<a href='/targets/{{ $personTarget->id }}/edit'
|
|
class='btn btn-success'
|
|
data-toggle='tooltip'
|
|
data-placement='bottom'
|
|
title='Bearbeiten'>
|
|
<i class="fas fa-edit"></i>
|
|
</a>
|
|
<a href='/targets/{{ $personTarget->id }}/delete'
|
|
class='btn btn-danger'
|
|
data-toggle='tooltip'
|
|
data-placement='bottom'
|
|
title='Löschen'>
|
|
<i class="fas fa-trash"></i>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
<h3>Offene Forderungen</h3>
|
|
<table class='table table-bordered table-striped'>
|
|
<tr>
|
|
<th>Datum</th>
|
|
<th>Position</th>
|
|
<th>Person / Firma</th>
|
|
<th>Soll</th>
|
|
<th>Ist</th>
|
|
<th>Differenz</th>
|
|
<th>Aktion</th>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<th>SUMME</th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th>{!! formatAmount($sums['receivables']) !!}</th>
|
|
<th></th>
|
|
</tr>
|
|
@foreach ($personTargets['receivables'] as $personTarget)
|
|
<tr>
|
|
<td>{{ formatDate($personTarget->date) }}</td>
|
|
<td>{{ $personTarget->reference }}</td>
|
|
<td>{{ $personTarget->person->fullName() }}</td>
|
|
<td>{!! formatAmount($personTarget->signedAmount()) !!}</td>
|
|
<td>{!! formatAmount($personTarget->actualsSum()) !!}</td>
|
|
<td>{!! formatAmount($personTarget->difference()) !!}</td>
|
|
<td>
|
|
<div class="btn-group" role="group" aria-label="Basic example">
|
|
<a href='/targets/{{ $personTarget->id }}/edit'
|
|
class='btn btn-success'
|
|
data-toggle='tooltip'
|
|
data-placement='bottom'
|
|
title='Bearbeiten'>
|
|
<i class="fas fa-edit"></i>
|
|
</a>
|
|
<a href='/targets/{{ $personTarget->id }}/delete'
|
|
class='btn btn-danger'
|
|
data-toggle='tooltip'
|
|
data-placement='bottom'
|
|
title='Löschen'>
|
|
<i class="fas fa-trash"></i>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
@endsection
|