ventas.base
This commit is contained in:
36
app/resources/views/ventas/base.blade.php
Normal file
36
app/resources/views/ventas/base.blade.php
Normal file
@ -0,0 +1,36 @@
|
||||
@extends('layout.base')
|
||||
|
||||
@section('page_title')
|
||||
Venta {{$venta->proyecto()->descripcion}} {{$venta->propiedad()->summary()}}
|
||||
@endsection
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<div class="ui two column grid">
|
||||
<div class="row">
|
||||
<h1 class="four wide column header">
|
||||
<div class="content">
|
||||
<div class="ui dividing sub header">{{$venta->proyecto()->descripcion}}</div>
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">
|
||||
{{$venta->propiedad()->summary()}}
|
||||
</a>
|
||||
</div>
|
||||
</h1>
|
||||
@if (isset($showPropietario) and $showPropietario)
|
||||
<div class="right floated column">
|
||||
@include('ventas.show.propietario')
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@hasSection('venta_subtitle')
|
||||
<div class="row">
|
||||
<h2 class="ui sub header column">
|
||||
@yield('venta_subtitle')
|
||||
</h2>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<br />
|
||||
@yield('venta_content')
|
||||
</div>
|
||||
@endsection
|
@ -1,13 +1,10 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<h1 class="ui header">
|
||||
Desistida - {{$venta->proyecto()->descripcion}} -
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">
|
||||
{{$venta->propiedad()->summary()}}
|
||||
</a>
|
||||
</h1>
|
||||
@section('venta_subtitle')
|
||||
Desistida
|
||||
@endsection
|
||||
|
||||
@section('venta_content')
|
||||
<form class="ui form" id="desistida_form">
|
||||
<div class="fields">
|
||||
<div class="three wide field">
|
||||
@ -41,7 +38,6 @@
|
||||
</button>
|
||||
<div id="loading-spinner-eliminar" class="ui tiny blue active inline elastic loader" style="display: none;"></div>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('page_scripts')
|
||||
|
@ -1,11 +1,10 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<h1 class="ui header">
|
||||
Desistir - {{$venta->proyecto()->descripcion}} -
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">{{$venta->propiedad()->summary()}}</a>
|
||||
</h1>
|
||||
@section('venta_subtitle')
|
||||
Desistir
|
||||
@endsection
|
||||
|
||||
@section('venta_content')
|
||||
<div class="ui list">
|
||||
<div class="item">
|
||||
<div class="header">Valor Pagado</div>
|
||||
@ -45,7 +44,6 @@
|
||||
</div>
|
||||
<button class="ui button">Desistir</button>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('page_scripts')
|
||||
|
@ -1,11 +1,10 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<h2 class="ui header">Editar Venta -
|
||||
{{$venta->proyecto()->descripcion}} -
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">{{$venta->propiedad()->summary()}}</a>
|
||||
</h2>
|
||||
@section('venta_subtitle')
|
||||
Editar Venta
|
||||
@endsection
|
||||
|
||||
@section('venta_content')
|
||||
<form class="ui form" id="edit_form">
|
||||
<div class="inline field">
|
||||
<label for="valor">Valor</label>
|
||||
@ -27,7 +26,6 @@
|
||||
Guardar
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('page_scripts')
|
||||
|
@ -1,13 +1,10 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<h1 class="ui header">
|
||||
Escriturar - {{$venta->proyecto()->descripcion}} -
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">
|
||||
{{$venta->propiedad()->summary()}}
|
||||
</a>
|
||||
</h1>
|
||||
@section('venta_subtitle')
|
||||
Escriturar
|
||||
@endsection
|
||||
|
||||
@section('venta_content')
|
||||
<div class="ui basic segment">
|
||||
<div class="ui four columns grid">
|
||||
<div class="column">Faltante</div>
|
||||
@ -204,7 +201,6 @@
|
||||
@endif
|
||||
<button class="ui button">Escriturar</button>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('page_scripts')
|
||||
|
@ -1,12 +1,10 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<h1 class="ui header">
|
||||
Escritura -
|
||||
{{$venta->proyecto()->descripcion}} -
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">{{$venta->propiedad()->summary()}}</a>
|
||||
</h1>
|
||||
@section('venta_subtitle')
|
||||
Resumen Escritura
|
||||
@endsection
|
||||
|
||||
@section('venta_content')
|
||||
<div class="ui segment">
|
||||
El departamento {{$venta->propiedad()->departamentos()[0]->descripcion}}:<br />
|
||||
@php
|
||||
@ -87,5 +85,4 @@
|
||||
Diferencia {{$format->ufs($venta->formaPago()->total() - $venta->valor)}}. ({{$format->percent(($venta->formaPago()->total() - $venta->valor) / $venta->valor * 100)}})
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
@ -1,14 +1,10 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<h2 class="ui header">
|
||||
Escritura -
|
||||
{{$venta->proyecto()->descripcion}} -
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">
|
||||
{{$venta->propiedad()->summary()}}
|
||||
</a>
|
||||
</h2>
|
||||
@section('venta_subtitle')
|
||||
Escritura
|
||||
@endsection
|
||||
|
||||
@section('venta_content')
|
||||
<form class="ui form" id="edit_form">
|
||||
<div class="three wide field">
|
||||
<label for="fecha">Fecha</label>
|
||||
@ -21,7 +17,6 @@
|
||||
</div>
|
||||
<button class="ui button">Guardar</button>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('page_scripts')
|
||||
|
@ -1,16 +1,10 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<div class="ui two column grid">
|
||||
<h1 class="four wide column header">
|
||||
<div class="content">
|
||||
<div class="ui dividing sub header">{{$venta->proyecto()->descripcion}}</div>
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">{{$venta->propiedad()->summary()}}</a>
|
||||
</div>
|
||||
</h1>
|
||||
</div>
|
||||
<h2>Cuotas - Pie</h2>
|
||||
@section('venta_subtitle')
|
||||
Cuotas - Pie
|
||||
@endsection
|
||||
|
||||
@section('venta_content')
|
||||
<table class="ui table" id="cuotas">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -140,7 +134,6 @@
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@include('layout.body.scripts.datatables')
|
||||
|
@ -1,16 +1,10 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<div class="ui two column grid">
|
||||
<h1 class="four wide column header">
|
||||
<div class="content">
|
||||
<div class="ui dividing sub header">{{$venta->proyecto()->descripcion}}</div>
|
||||
{{$venta->propiedad()->summary()}}
|
||||
</div>
|
||||
</h1>
|
||||
</div>
|
||||
<h2>Agregar Cuotas - Pie</h2>
|
||||
@section('venta_subtitle')
|
||||
Agregar Cuotas - Pie
|
||||
@endsection
|
||||
|
||||
@section('venta_content')
|
||||
<form class="ui form" id="add_form" action="{{$urls->base}}/ventas/pie/{{$pie->id}}/cuotas/add" method="post">
|
||||
<table class="ui table">
|
||||
<thead>
|
||||
@ -87,7 +81,6 @@
|
||||
</tfoot>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@include('layout.body.scripts.dayjs')
|
||||
|
@ -1,12 +1,10 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<h2 class="ui header">
|
||||
Pie -
|
||||
{{$venta->proyecto()->descripcion}} -
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">{{$venta->propiedad()->summary()}}</a>
|
||||
</h2>
|
||||
@section('venta_subtitle')
|
||||
Pie
|
||||
@endsection
|
||||
|
||||
@section('venta_content')
|
||||
<form class="ui form" id="edit_pie">
|
||||
<div class="three wide field">
|
||||
<label for="valor">Valor</label>
|
||||
@ -21,7 +19,6 @@
|
||||
</div>
|
||||
<button class="ui button">Editar</button>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('page_scripts')
|
||||
|
@ -1,10 +1,39 @@
|
||||
@extends('layout.base')
|
||||
@extends('ventas.base')
|
||||
|
||||
@section('page_title')
|
||||
Venta {{$venta->proyecto()->descripcion}} {{$venta->propiedad()->summary()}}
|
||||
@php
|
||||
$showPropietario = true;
|
||||
@endphp
|
||||
|
||||
@section('venta_content')
|
||||
<div class="ui fitted basic mini segment">
|
||||
@if ($venta->currentEstado()->tipoEstadoVenta->activa)
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}/desistir">
|
||||
Desistir <i class="minus icon"></i>
|
||||
</a>
|
||||
<a href="{{$urls->base}}/venta/{{$venta->id}}/ceder">
|
||||
Ceder <i clasS="right chevron icon"></i>
|
||||
</a>
|
||||
@else
|
||||
<div class="ui red icon label">
|
||||
<i class="ban icon"></i>
|
||||
{{ucwords($venta->currentEstado()->tipoEstadoVenta->descripcion)}}
|
||||
(<a href="{{$urls->base}}/venta/{{$venta->id}}/desistida">
|
||||
{{$format->pesos($venta->resciliacion()->valor)}}
|
||||
</a>)
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="ui segments">
|
||||
@include('ventas.show.propiedad')
|
||||
@include('ventas.show.detalle')
|
||||
@include('ventas.show.forma_pago', ['formaPago' => $venta->formaPago()])
|
||||
@include('ventas.show.escritura')
|
||||
@include('ventas.show.entrega')
|
||||
@include('ventas.show.comentarios')
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('page_content')
|
||||
{{--@section('page_content')
|
||||
<div class="ui container">
|
||||
<div class="ui two column grid">
|
||||
<h1 class="four wide column header">
|
||||
@ -45,4 +74,4 @@
|
||||
@include('ventas.show.comentarios')
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@endsection--}}
|
||||
|
Reference in New Issue
Block a user