@extends('salary::reports.base') @section('content')

Asignaciones familiares al {{ $data['hasta'] }}


@foreach ($asignaciones as $asignacion) @php $total = 0; @endphp

Empleado: {{ $asignacion->employee->person->name }}

Legajo: {{ $asignacion->employee->docket }}

DNI: {{ $asignacion->employee->person->dni }}

CUIT: {{ $asignacion->employee->person->cuit }}


@foreach ($asignacion->liquidationdetail AS $detail) @if ($detail->items->type == 'asignacion') @php $total += $detail->amount; @endphp @endif @endforeach
Item Cantidad Total
{{ $detail->items->name }} {{ $detail->cantidad == '0' ? '-' : (int) $detail->cantidad }} {{ Money::format($detail->amount, true) }}
TOTAL: {{ Money::format($total, true) }}



@endforeach

{{ $data['organization_name'] }}, {{ now()->isoFormat('LL') }}

@endsection