Resources
This commit is contained in:
82
resources/views/ventas/operadores/unidades/list.blade.php
Normal file
82
resources/views/ventas/operadores/unidades/list.blade.php
Normal file
@ -0,0 +1,82 @@
|
||||
@extends('layout.base')
|
||||
|
||||
@section('content')
|
||||
<div class="row page-heading">
|
||||
<h3>Unidades Bloqueadas</h3>
|
||||
</div>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Proyecto</th>
|
||||
<th>Operadores</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($proyectos as $proyecto)
|
||||
<tr>
|
||||
<td>{{$proyecto->descripcion}}</td>
|
||||
<td>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nombre</th>
|
||||
<th>Unidades</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($proyecto->operadoresVigentes() as $operador)
|
||||
<tr>
|
||||
<td>
|
||||
{{$operador->agente()->agente()->abreviacion}}
|
||||
</td>
|
||||
<td>
|
||||
@if ($operador->unidadesBloqueadas())
|
||||
<a href="{{nUrl('unidades_bloqueadas', 'bloquear', ['operador' => $operador->id])}}">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
</a>
|
||||
[{{count($operador->unidadesBloqueadas())}}]
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Tipo</th>
|
||||
<th>Número</th>
|
||||
<th>Tipología</th>
|
||||
<th>m² Vendible</th>
|
||||
<th>Fecha</th>
|
||||
<th>Precio Lista</th>
|
||||
<th>UF/m²</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($operador->unidadesBloqueadas() as $unidad)
|
||||
<tr>
|
||||
<td>
|
||||
{{ucwords($unidad->unidad()->tipo()->descripcion)}}
|
||||
</td>
|
||||
<td>{{$unidad->unidad()->descripcion}}</td>
|
||||
<td>{{$unidad->unidad()->tipologia()->tipologia()->descripcion}}</td>
|
||||
<td>{{$unidad->unidad()->m2()}}</td>
|
||||
<td>{{format('shortDate', $unidad->estado()->fecha())}}</td>
|
||||
<td>{{format('ufs', $unidad->unidad()->precio($unidad->estado()->fecha())->valor)}} UF</td>
|
||||
<td>{{format('ufs', $unidad->unidad()->precio($unidad->estado()->fecha())->valor / $unidad->unidad()->m2())}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
No hay unidades bloqueadas.
|
||||
<a href="{{nUrl('unidades_bloqueadas', 'bloquear', ['operador' => $operador->id])}}">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
</a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</thead>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endsection
|
Reference in New Issue
Block a user