feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
340 changed files with 1103 additions and 13699 deletions
Showing only changes of commit 5456485f71 - Show all commits

View File

@ -24,6 +24,7 @@
<td>
<a href="{{ $urls->base }}/ventas/promotion/{{ $promotion->id }}">
{{ $promotion->description }}
<i class="angle right icon"></i>
</a>
</td>
<td>{{ ucwords($promotion->type->name()) }}</td>
@ -32,8 +33,11 @@
<td>{{ $promotion->endDate?->format('d-m-Y') }}</td>
<td>{{ $promotion->validUntil?->format('d-m-Y') }}</td>
<td>
Proyectos: {{ count(array_unique(array_map(function ($contract) { return $contract->project->descripcion; }, $promotion->contracts()))) }} <br />
Operadores: {{ count(array_unique(array_map(function ($contract) { return $contract->broker->name; }, $promotion->contracts()))) }}
Proyectos: {{ count($promotion->projects()) +
count(array_unique(array_map(function($unitType) {return $unitType->project;},$promotion->unitTypes()))) +
count(array_unique(array_map(function($unitLine) {return $unitLine->proyecto;},$promotion->unitLines()))) +
count($promotion->units()) }} <br />
Operadores: {{ count($promotion->brokers()) }}
</td>
<td class="right aligned">
<button type="button" class="ui small tertiary icon button edit_button" data-id="{{ $promotion->id }}">