Mejoras UI

This commit is contained in:
Juan Pablo Vial
2025-04-04 12:54:51 -03:00
parent 7f8e4ea943
commit 596bc71cf8
2 changed files with 7 additions and 5 deletions

View File

@ -17,7 +17,7 @@
</thead> </thead>
@foreach($brokers as $broker) @foreach($brokers as $broker)
<tr> <tr>
<td> <td class="top aligned">
<span <span
@if ($broker->data()?->legalName !== '') @if ($broker->data()?->legalName !== '')
data-tooltip="{{ $broker->data()?->legalName }}" data-position="right center" data-tooltip="{{ $broker->data()?->legalName }}" data-position="right center"
@ -26,12 +26,13 @@
{{$broker->rutFull()}} {{$broker->rutFull()}}
</span> </span>
</td> </td>
<td> <td class="top aligned">
<a href="{{ $urls->base }}/proyectos/broker/{{ $broker->rut }}"> <a href="{{ $urls->base }}/proyectos/broker/{{ $broker->rut }}">
{{$broker->name}} {{$broker->name}}
<i class="angle right icon"></i>
</a> </a>
</td> </td>
<td> <td class="top aligned">
<span <span
@if ($broker->data()?->representative?->email !== '' || $broker->data()?->representative?->phone !== '') @if ($broker->data()?->representative?->email !== '' || $broker->data()?->representative?->phone !== '')
data-tooltip="{{ ($broker->data()?->representative?->email !== '') ? "Email: " . $broker->data()?->representative?->email : '' }}{{ ($broker->data()?->representative?->phone !== '') ? ' Teléfono: ' . $broker->data()?->representative?->phone : '' }}" data-position="right center" data-tooltip="{{ ($broker->data()?->representative?->email !== '') ? "Email: " . $broker->data()?->representative?->email : '' }}{{ ($broker->data()?->representative?->phone !== '') ? ' Teléfono: ' . $broker->data()?->representative?->phone : '' }}" data-position="right center"
@ -40,7 +41,7 @@
{{ $broker->data()?->representative?->name }} {{ $broker->data()?->representative?->name }}
</span> </span>
</td> </td>
<td> <td class="top aligned">
<div class="ui list"> <div class="ui list">
@foreach($broker->contracts() as $contract) @foreach($broker->contracts() as $contract)
<div class="item"> <div class="item">
@ -51,7 +52,7 @@
@endforeach @endforeach
</div> </div>
</td> </td>
<td class="right aligned"> <td class="top aligned right aligned">
<button class="ui small tertiary icon button edit_button" data-index="{{$broker->rut}}"> <button class="ui small tertiary icon button edit_button" data-index="{{$broker->rut}}">
<i class="edit icon"></i> <i class="edit icon"></i>
</button> </button>

View File

@ -47,6 +47,7 @@
<td> <td>
<a href="{{ $urls->base }}/proyectos/broker/{{ $broker->rut }}/contract/{{ $contract->id }}"> <a href="{{ $urls->base }}/proyectos/broker/{{ $broker->rut }}/contract/{{ $contract->id }}">
{{ $contract->project->descripcion }} {{ $contract->project->descripcion }}
<i class="angle right icon"></i>
</a> </a>
</td> </td>
<td>{{ $format->percent($contract->commission, 2, true) }}</td> <td>{{ $format->percent($contract->commission, 2, true) }}</td>