|
|
|
@ -9,6 +9,7 @@ |
|
|
|
</div> |
|
|
|
{{ $vendor->name }} <small>{{ __('vendor.detail') }}</small> |
|
|
|
</h1> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-5"> |
|
|
|
<div class="panel panel-default"> |
|
|
|
@ -23,4 +24,39 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"><h3 class="panel-title">{{ __('payment.payments') }}</h3></div> |
|
|
|
<div class="panel-body"> |
|
|
|
<table class="table table-condensed"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th class="text-center">{{ __('app.table_no') }}</th> |
|
|
|
<th class="">{{ __('payment.project') }}</th> |
|
|
|
<th class="text-center ">{{ __('app.date') }}</th> |
|
|
|
<th class="text-right ">{{ __('payment.amount') }}</th> |
|
|
|
<th class="col-md-7">{{ __('payment.description') }}</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
@foreach ($vendor->payments as $key => $payment) |
|
|
|
<tr> |
|
|
|
<td class="text-center">{{ 1 + $key }}</td> |
|
|
|
<td>{{ $payment->project->name }}</td> |
|
|
|
<td class="text-center">{{ $payment->date }}</td> |
|
|
|
<td class="text-right">{{ formatRp($payment->amount) }}</td> |
|
|
|
<td>{{ $payment->description }}</td> |
|
|
|
</tr> |
|
|
|
@endforeach |
|
|
|
</tbody> |
|
|
|
<tfoot> |
|
|
|
<tr> |
|
|
|
<th class="text-right" colspan="3">{{ __('app.total') }}</th> |
|
|
|
<th class="text-right">{{ formatRp($vendor->payments->sum('amount')) }}</th> |
|
|
|
<th> </th> |
|
|
|
</tr> |
|
|
|
</tfoot> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@endsection |