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')
|
@section('venta_subtitle')
|
||||||
<div class="ui container">
|
Desistida
|
||||||
<h1 class="ui header">
|
@endsection
|
||||||
Desistida - {{$venta->proyecto()->descripcion}} -
|
|
||||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">
|
@section('venta_content')
|
||||||
{{$venta->propiedad()->summary()}}
|
|
||||||
</a>
|
|
||||||
</h1>
|
|
||||||
<form class="ui form" id="desistida_form">
|
<form class="ui form" id="desistida_form">
|
||||||
<div class="fields">
|
<div class="fields">
|
||||||
<div class="three wide field">
|
<div class="three wide field">
|
||||||
@ -41,7 +38,6 @@
|
|||||||
</button>
|
</button>
|
||||||
<div id="loading-spinner-eliminar" class="ui tiny blue active inline elastic loader" style="display: none;"></div>
|
<div id="loading-spinner-eliminar" class="ui tiny blue active inline elastic loader" style="display: none;"></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('page_scripts')
|
@push('page_scripts')
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
@extends('layout.base')
|
@extends('ventas.base')
|
||||||
|
|
||||||
@section('page_content')
|
@section('venta_subtitle')
|
||||||
<div class="ui container">
|
Desistir
|
||||||
<h1 class="ui header">
|
@endsection
|
||||||
Desistir - {{$venta->proyecto()->descripcion}} -
|
|
||||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">{{$venta->propiedad()->summary()}}</a>
|
@section('venta_content')
|
||||||
</h1>
|
|
||||||
<div class="ui list">
|
<div class="ui list">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="header">Valor Pagado</div>
|
<div class="header">Valor Pagado</div>
|
||||||
@ -45,7 +44,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<button class="ui button">Desistir</button>
|
<button class="ui button">Desistir</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('page_scripts')
|
@push('page_scripts')
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
@extends('layout.base')
|
@extends('ventas.base')
|
||||||
|
|
||||||
@section('page_content')
|
@section('venta_subtitle')
|
||||||
<div class="ui container">
|
Editar Venta
|
||||||
<h2 class="ui header">Editar Venta -
|
@endsection
|
||||||
{{$venta->proyecto()->descripcion}} -
|
|
||||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">{{$venta->propiedad()->summary()}}</a>
|
@section('venta_content')
|
||||||
</h2>
|
|
||||||
<form class="ui form" id="edit_form">
|
<form class="ui form" id="edit_form">
|
||||||
<div class="inline field">
|
<div class="inline field">
|
||||||
<label for="valor">Valor</label>
|
<label for="valor">Valor</label>
|
||||||
@ -27,7 +26,6 @@
|
|||||||
Guardar
|
Guardar
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('page_scripts')
|
@push('page_scripts')
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
@extends('layout.base')
|
@extends('ventas.base')
|
||||||
|
|
||||||
@section('page_content')
|
@section('venta_subtitle')
|
||||||
<div class="ui container">
|
Escriturar
|
||||||
<h1 class="ui header">
|
@endsection
|
||||||
Escriturar - {{$venta->proyecto()->descripcion}} -
|
|
||||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">
|
@section('venta_content')
|
||||||
{{$venta->propiedad()->summary()}}
|
|
||||||
</a>
|
|
||||||
</h1>
|
|
||||||
<div class="ui basic segment">
|
<div class="ui basic segment">
|
||||||
<div class="ui four columns grid">
|
<div class="ui four columns grid">
|
||||||
<div class="column">Faltante</div>
|
<div class="column">Faltante</div>
|
||||||
@ -204,7 +201,6 @@
|
|||||||
@endif
|
@endif
|
||||||
<button class="ui button">Escriturar</button>
|
<button class="ui button">Escriturar</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('page_scripts')
|
@push('page_scripts')
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
@extends('layout.base')
|
@extends('ventas.base')
|
||||||
|
|
||||||
@section('page_content')
|
@section('venta_subtitle')
|
||||||
<div class="ui container">
|
Resumen Escritura
|
||||||
<h1 class="ui header">
|
@endsection
|
||||||
Escritura -
|
|
||||||
{{$venta->proyecto()->descripcion}} -
|
@section('venta_content')
|
||||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">{{$venta->propiedad()->summary()}}</a>
|
|
||||||
</h1>
|
|
||||||
<div class="ui segment">
|
<div class="ui segment">
|
||||||
El departamento {{$venta->propiedad()->departamentos()[0]->descripcion}}:<br />
|
El departamento {{$venta->propiedad()->departamentos()[0]->descripcion}}:<br />
|
||||||
@php
|
@php
|
||||||
@ -87,5 +85,4 @@
|
|||||||
Diferencia {{$format->ufs($venta->formaPago()->total() - $venta->valor)}}. ({{$format->percent(($venta->formaPago()->total() - $venta->valor) / $venta->valor * 100)}})
|
Diferencia {{$format->ufs($venta->formaPago()->total() - $venta->valor)}}. ({{$format->percent(($venta->formaPago()->total() - $venta->valor) / $venta->valor * 100)}})
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -1,14 +1,10 @@
|
|||||||
@extends('layout.base')
|
@extends('ventas.base')
|
||||||
|
|
||||||
@section('page_content')
|
@section('venta_subtitle')
|
||||||
<div class="ui container">
|
Escritura
|
||||||
<h2 class="ui header">
|
@endsection
|
||||||
Escritura -
|
|
||||||
{{$venta->proyecto()->descripcion}} -
|
@section('venta_content')
|
||||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">
|
|
||||||
{{$venta->propiedad()->summary()}}
|
|
||||||
</a>
|
|
||||||
</h2>
|
|
||||||
<form class="ui form" id="edit_form">
|
<form class="ui form" id="edit_form">
|
||||||
<div class="three wide field">
|
<div class="three wide field">
|
||||||
<label for="fecha">Fecha</label>
|
<label for="fecha">Fecha</label>
|
||||||
@ -21,7 +17,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<button class="ui button">Guardar</button>
|
<button class="ui button">Guardar</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('page_scripts')
|
@push('page_scripts')
|
||||||
|
@ -1,16 +1,10 @@
|
|||||||
@extends('layout.base')
|
@extends('ventas.base')
|
||||||
|
|
||||||
@section('page_content')
|
@section('venta_subtitle')
|
||||||
<div class="ui container">
|
Cuotas - Pie
|
||||||
<div class="ui two column grid">
|
@endsection
|
||||||
<h1 class="four wide column header">
|
|
||||||
<div class="content">
|
@section('venta_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>
|
|
||||||
<table class="ui table" id="cuotas">
|
<table class="ui table" id="cuotas">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -140,7 +134,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@include('layout.body.scripts.datatables')
|
@include('layout.body.scripts.datatables')
|
||||||
|
@ -1,16 +1,10 @@
|
|||||||
@extends('layout.base')
|
@extends('ventas.base')
|
||||||
|
|
||||||
@section('page_content')
|
@section('venta_subtitle')
|
||||||
<div class="ui container">
|
Agregar Cuotas - Pie
|
||||||
<div class="ui two column grid">
|
@endsection
|
||||||
<h1 class="four wide column header">
|
|
||||||
<div class="content">
|
@section('venta_content')
|
||||||
<div class="ui dividing sub header">{{$venta->proyecto()->descripcion}}</div>
|
|
||||||
{{$venta->propiedad()->summary()}}
|
|
||||||
</div>
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
<h2>Agregar Cuotas - Pie</h2>
|
|
||||||
<form class="ui form" id="add_form" action="{{$urls->base}}/ventas/pie/{{$pie->id}}/cuotas/add" method="post">
|
<form class="ui form" id="add_form" action="{{$urls->base}}/ventas/pie/{{$pie->id}}/cuotas/add" method="post">
|
||||||
<table class="ui table">
|
<table class="ui table">
|
||||||
<thead>
|
<thead>
|
||||||
@ -87,7 +81,6 @@
|
|||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@include('layout.body.scripts.dayjs')
|
@include('layout.body.scripts.dayjs')
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
@extends('layout.base')
|
@extends('ventas.base')
|
||||||
|
|
||||||
@section('page_content')
|
@section('venta_subtitle')
|
||||||
<div class="ui container">
|
Pie
|
||||||
<h2 class="ui header">
|
@endsection
|
||||||
Pie -
|
|
||||||
{{$venta->proyecto()->descripcion}} -
|
@section('venta_content')
|
||||||
<a href="{{$urls->base}}/venta/{{$venta->id}}">{{$venta->propiedad()->summary()}}</a>
|
|
||||||
</h2>
|
|
||||||
<form class="ui form" id="edit_pie">
|
<form class="ui form" id="edit_pie">
|
||||||
<div class="three wide field">
|
<div class="three wide field">
|
||||||
<label for="valor">Valor</label>
|
<label for="valor">Valor</label>
|
||||||
@ -21,7 +19,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<button class="ui button">Editar</button>
|
<button class="ui button">Editar</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('page_scripts')
|
@push('page_scripts')
|
||||||
|
@ -1,10 +1,39 @@
|
|||||||
@extends('layout.base')
|
@extends('ventas.base')
|
||||||
|
|
||||||
@section('page_title')
|
@php
|
||||||
Venta {{$venta->proyecto()->descripcion}} {{$venta->propiedad()->summary()}}
|
$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
|
@endsection
|
||||||
|
|
||||||
@section('page_content')
|
{{--@section('page_content')
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="ui two column grid">
|
<div class="ui two column grid">
|
||||||
<h1 class="four wide column header">
|
<h1 class="four wide column header">
|
||||||
@ -45,4 +74,4 @@
|
|||||||
@include('ventas.show.comentarios')
|
@include('ventas.show.comentarios')
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection--}}
|
||||||
|
Reference in New Issue
Block a user