This commit is contained in:
2020-12-01 17:23:13 -03:00
parent 09e8c226bb
commit 9852a8cbdc
274 changed files with 24706 additions and 0 deletions

View File

@ -0,0 +1,61 @@
@extends('layout.base')
@section('content')
<div class="row page-heading">
<h3>Bloquear Unidades - {{$operador->proyecto()->descripcion}}</h3>
</div>
<div class="row">
<div class="col-md-2">Operador</div>
<div class="col-md-3">{{$operador->agente()->agente()->abreviacion}}</div>
</div>
<br />
<form class="form-horizontal" method="post" action="{{nUrl('unidades_bloqueadas', 'do_bloquear', ['operador' => $operador->id])}}">
<div class="form-group">
<div class="col-md-2">Fecha</div>
@include('form.fecha')
</div>
<div class="form-group">
<div class="col-md-2">Departamentos</div>
<div class="col-md-3"><textarea name="departamentos" class="form-control"></textarea></div>
</div>
<div class="form-group">
<div class="col-md-2">Estacionamientos</div>
<div class="col-md-3"><textarea name="estacionamientos" class="form-control"></textarea></div>
</div>
<div class="form-group">
<div class="col-md-2">Bodegas</div>
<div class="col-md-3"><textarea name="bodegas" class="form-control"></textarea></div>
</div>
<table class="table table-striped">
<thead>
<tr>
<th>Tipo</th>
<th>N&uacute;mero</th>
<th>Tipolog&iacute;a</th>
<th>m&#0178;</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach ($operador->proyecto()->unidadesDisponibles() as $unidad)
<tr>
<td>{{ucwords($unidad->tipo()->descripcion)}}</td>
<td>{{$unidad->descripcion}}</td>
<td>
@if ($unidad->tipologia()->tipologia())
{{$unidad->tipologia()->tipologia()->descripcion}}
@endif
</td>
<td>{!!format('m2', $unidad->m2(), null, true)!!}</td>
<td><input type="checkbox" name="unidad[]" value="{{$unidad->id}}" /></td>
</tr>
@endforeach
</tbody>
</table>
<div class="form-group">
<div class="col-md-offset-2 col-md-3">
<button class="form-control" type="submit">Bloquear</button>
</div>
</div>
</form>
@endsection

View 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&uacute;mero</th>
<th>Tipolog&iacute;a</th>
<th>m&#0178; Vendible</th>
<th>Fecha</th>
<th>Precio Lista</th>
<th>UF/m&#0178;</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