Fixes
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<a href="{!! route('Shop.Admin.Orders.index') !!}">
|
||||
@include('Shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_orders)) ? $nb_orders : 0, 'class' => 'bg-aqua', 'icon' => 'fa-building-o', 'text' => 'Commandes'])
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<a href="{!! route('Shop.Admin.Invoices.index') !!}">
|
||||
@include('Shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_invoices)) ? $nb_invoices : 0, 'class' => 'bg-red', 'icon' => 'fa-clock-o', 'text' => 'Factures'])
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<!-- fix for small devices only -->
|
||||
<div class="clearfix visible-sm-block"></div>
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<a href="{!!route('Shop.Admin.Orders.index') !!}">
|
||||
@include('Shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_dossiers_encours)) ? $nb_dossiers_encours : 0, 'class' => 'bg-yellow', 'icon' => 'fa-hourglass-start', 'text' => 'CA du mois'])
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<a href="{!! route('Shop.Admin.Orders.index') !!}">
|
||||
@include('Shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_ventes)) ? $nb_ventes : 0, 'class' => 'bg-green', 'icon' => 'fa-check-square-o', 'text' => 'Panier moyen'])
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
@@ -0,0 +1,38 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<div class="description-block border-right">
|
||||
<span class="description-percentage text-green"><i class="fa fa-caret-up"></i> 17%</span>
|
||||
<h5 class="description-header">35 210.43 €</h5>
|
||||
<span class="description-text">TOTAL VENTE</span>
|
||||
</div>
|
||||
<!-- /.description-block -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<div class="description-block border-right">
|
||||
<span class="description-percentage text-yellow"><i class="fa fa-caret-left"></i> 0%</span>
|
||||
<h5 class="description-header">10 390.90 €</h5>
|
||||
<span class="description-text">PANIER MOYEN</span>
|
||||
</div>
|
||||
<!-- /.description-block -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<div class="description-block border-right">
|
||||
<span class="description-percentage text-green"><i class="fa fa-caret-up"></i> 20%</span>
|
||||
<h5 class="description-header">248</h5>
|
||||
<span class="description-text">NB CLIENTS</span>
|
||||
</div>
|
||||
<!-- /.description-block -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<div class="description-block">
|
||||
<span class="description-percentage text-red"><i class="fa fa-caret-down"></i> 18%</span>
|
||||
<h5 class="description-header">1200</h5>
|
||||
<span class="description-text">NB PRODUITS</span>
|
||||
</div>
|
||||
<!-- /.description-block -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@@ -0,0 +1,24 @@
|
||||
<!-- Info boxes -->
|
||||
<div class="row">
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
@include('modules.Dashboard.partials.tile1')
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
@include('modules.Dashboard.partials.tile2')
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<!-- fix for small devices only -->
|
||||
<div class="clearfix visible-sm-block"></div>
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
@include('modules.Dashboard.partials.tile3')
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
@include('modules.Dashboard.partials.tile4')
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@@ -0,0 +1,66 @@
|
||||
<!-- USERS LIST -->
|
||||
<div class="box box-danger">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Utilisateurs</h3>
|
||||
|
||||
<div class="box-tools pull-right">
|
||||
<span class="label label-danger">8 Nouveaux</span>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<ul class="users-list clearfix">
|
||||
<li>
|
||||
<img src="/img/user1-128x128.jpg" alt="User Image">
|
||||
<a class="users-list-name" href="#">Alexander Pierce</a>
|
||||
<span class="users-list-date">Aujourd'hui</span>
|
||||
</li>
|
||||
<li>
|
||||
<img src="/img/user8-128x128.jpg" alt="User Image">
|
||||
<a class="users-list-name" href="#">Norman</a>
|
||||
<span class="users-list-date">Hier</span>
|
||||
</li>
|
||||
<li>
|
||||
<img src="/img/user7-128x128.jpg" alt="User Image">
|
||||
<a class="users-list-name" href="#">Jane</a>
|
||||
<span class="users-list-date">12 Jan</span>
|
||||
</li>
|
||||
<li>
|
||||
<img src="/img/user6-128x128.jpg" alt="User Image">
|
||||
<a class="users-list-name" href="#">John</a>
|
||||
<span class="users-list-date">12 Jan</span>
|
||||
</li>
|
||||
<li>
|
||||
<img src="/img/user2-160x160.jpg" alt="User Image">
|
||||
<a class="users-list-name" href="#">Alexander</a>
|
||||
<span class="users-list-date">13 Jan</span>
|
||||
</li>
|
||||
<li>
|
||||
<img src="/img/user5-128x128.jpg" alt="User Image">
|
||||
<a class="users-list-name" href="#">Sarah</a>
|
||||
<span class="users-list-date">14 Jan</span>
|
||||
</li>
|
||||
<li>
|
||||
<img src="/img/user4-128x128.jpg" alt="User Image">
|
||||
<a class="users-list-name" href="#">Nora</a>
|
||||
<span class="users-list-date">15 Jan</span>
|
||||
</li>
|
||||
<li>
|
||||
<img src="/img/user3-128x128.jpg" alt="User Image">
|
||||
<a class="users-list-name" href="#">Nadia</a>
|
||||
<span class="users-list-date">15 Jan</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /.users-list -->
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="box-footer text-center">
|
||||
<a href="javascript:void(0)" class="uppercase">Voir tous les utilisateurs</a>
|
||||
</div>
|
||||
<!-- /.box-footer -->
|
||||
</div>
|
||||
<!--/.box -->
|
||||
@@ -0,0 +1,43 @@
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Derniers dossiers</h3>
|
||||
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table no-margin">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Résidence</th>
|
||||
<th>Lot</th>
|
||||
<th>Prix</th>
|
||||
<th>Vendeur</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="pages/examples/invoice.html">Résidence</a></td>
|
||||
<td>Lot</td>
|
||||
<td><span class="label label-success">Prix</span></td>
|
||||
<td>Vendeur</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.table-responsive -->
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="box-footer clearfix">
|
||||
<a href="javascript:void(0)" class="btn btn-sm btn-info btn-flat pull-left">Nouveau dossier</a>
|
||||
<a href="javascript:void(0)" class="btn btn-sm btn-default btn-flat pull-right">Voir tous les dossiers</a>
|
||||
</div>
|
||||
<!-- /.box-footer -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
@@ -0,0 +1,23 @@
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-8">
|
||||
@include('Shop.admin.Dashboard._partials.salesByPeriod')
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
@include('Shop.admin.Dashboard._partials.stock')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
@include('Shop.admin.Dashboard._partials.latest_orders')
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
@include('Shop.admin.Dashboard._partials.stats_sections')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,40 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Evolution du CA</h3>
|
||||
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i></button>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="#">Par semaine</a></li>
|
||||
<li><a href="#">Par mois</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#">Autre chose</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@include('Shop.admin.Dashboard.components.chart')
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
<div class="box-footer">
|
||||
@include('Shop.admin.Dashboard._partials.evolutions')
|
||||
</div>
|
||||
<!-- /.box-footer -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@@ -0,0 +1,7 @@
|
||||
@include('Shop.admin.Dashboard.components.infobox2', ['count' => (isset($nb_lots_optionne)) ? $nb_lots_optionne : 0, 'class' => 'bg-aqua', 'icon' => 'fa-building-o', 'text' => 'Lots optionnés', 'percent' => 0 ])
|
||||
|
||||
@include('Shop.admin.Dashboard.components.infobox2', ['count' => (isset($montant_options_encours)) ? $montant_options_encours : 0, 'class' => 'bg-red', 'icon' => 'fa-clock-o', 'text' => 'Options En cours', 'percent' => 10 ])
|
||||
|
||||
@include('Shop.admin.Dashboard.components.infobox2', ['count' => (isset($montant_dossiers_encours)) ? $montant_dossiers_encours : 0, 'class' => 'bg-yellow', 'icon' => 'fa-hourglass-start', 'text' => 'Dossiers en cours', 'percent' => 20 ])
|
||||
|
||||
@include('Shop.admin.Dashboard.components.infobox2', ['count' => (isset($montant_ventes)) ? $montant_ventes : 0, 'class' => 'bg-green', 'icon' => 'fa-check-square-o', 'text' => 'Ventes', 'percent' => 30 ])
|
||||
@@ -0,0 +1,20 @@
|
||||
<div class="pad box-pane-right bg-green" style="min-height: 280px">
|
||||
|
||||
<div class="description-block margin-bottom">
|
||||
<div class="sparkbar pad" data-color="#fff"><canvas width="34" height="30" style="display: inline-block; width: 34px; height: 30px; vertical-align: top;"></canvas></div>
|
||||
<h5 class="description-header">{{ $nb_residences }}</h5>
|
||||
<span class="description-text">Résidences</span>
|
||||
</div>
|
||||
|
||||
<div class="description-block margin-bottom">
|
||||
<div class="sparkbar pad" data-color="#fff"><canvas width="34" height="30" style="display: inline-block; width: 34px; height: 30px; vertical-align: top;"></canvas></div>
|
||||
<h5 class="description-header">{{ $nb_lots }}</h5>
|
||||
<span class="description-text">Lots</span>
|
||||
</div>
|
||||
|
||||
<div class="description-block">
|
||||
<div class="sparkbar pad" data-color="#fff"><canvas width="34" height="30" style="display: inline-block; width: 34px; height: 30px; vertical-align: top;"></canvas></div>
|
||||
<h5 class="description-header">{{ $lots_percent }} %</h5>
|
||||
<span class="description-text">En cours</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,56 @@
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Type de lots</h3>
|
||||
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="chart-responsive">
|
||||
<canvas id="pieChart" height="170" width="205" style="width: 205px; height: 170px;"></canvas>
|
||||
</div>
|
||||
<!-- ./chart-responsive -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-4">
|
||||
<ul class="chart-legend clearfix">
|
||||
<li><i class="fa fa-circle-o text-red"></i> T1</li>
|
||||
<li><i class="fa fa-circle-o text-green"></i> T2</li>
|
||||
<li><i class="fa fa-circle-o text-yellow"></i> T3</li>
|
||||
<li><i class="fa fa-circle-o text-aqua"></i> T4</li>
|
||||
<li><i class="fa fa-circle-o text-light-blue"></i> T5</li>
|
||||
<li><i class="fa fa-circle-o text-gray"></i> Part</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="box-footer no-padding">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li>
|
||||
<a href="#">
|
||||
T1 <span class="pull-right text-red"><i class="fa fa-angle-down"></i> 12%</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
T2 <span class="pull-right text-green"><i class="fa fa-angle-up"></i> 4%</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
T3 <span class="pull-right text-yellow"><i class="fa fa-angle-left"></i> 0%</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.footer -->
|
||||
</div>
|
||||
@@ -0,0 +1,40 @@
|
||||
<p class="text-center">
|
||||
<strong>Activités</strong>
|
||||
</p>
|
||||
|
||||
<div class="progress-group">
|
||||
<span class="progress-text">Produit 1</span>
|
||||
<span class="progress-number"><b>160</b>/200</span>
|
||||
|
||||
<div class="progress sm">
|
||||
<div class="progress-bar progress-bar-aqua" style="width: 80%"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.progress-group -->
|
||||
<div class="progress-group">
|
||||
<span class="progress-text">Produit 2</span>
|
||||
<span class="progress-number"><b>310</b>/400</span>
|
||||
|
||||
<div class="progress sm">
|
||||
<div class="progress-bar progress-bar-red" style="width: 72%"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.progress-group -->
|
||||
<div class="progress-group">
|
||||
<span class="progress-text">Produit 3</span>
|
||||
<span class="progress-number"><b>480</b>/800</span>
|
||||
|
||||
<div class="progress sm">
|
||||
<div class="progress-bar progress-bar-green" style="width: 52%"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.progress-group -->
|
||||
<div class="progress-group">
|
||||
<span class="progress-text">Produit 4</span>
|
||||
<span class="progress-number"><b>250</b>/500</span>
|
||||
|
||||
<div class="progress sm">
|
||||
<div class="progress-bar progress-bar-yellow" style="width: 80%"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.progress-group -->
|
||||
@@ -0,0 +1,9 @@
|
||||
<p class="text-center">
|
||||
<strong>Ventes : 1 Jan 2019 - 30 Juin 2019</strong>
|
||||
</p>
|
||||
|
||||
<div class="chart">
|
||||
<!-- Sales Chart Canvas -->
|
||||
<canvas id="salesChart" style="height: 180px; width: 703px;" width="703" height="180"></canvas>
|
||||
</div>
|
||||
<!-- /.chart-responsive -->
|
||||
@@ -0,0 +1,30 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<a href="{!! route('Hestimmo.Lots.disponibles') !!}">
|
||||
@include('modules.Dashboard.components.infobox', ['count' => (isset($nb_lots_envente)) ? $nb_lots_envente : 0, 'class' => 'bg-aqua', 'icon' => 'fa-building-o', 'text' => 'Lots disponibles'])
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<a href="{!! route('Hestimmo.Options.encours') !!}">
|
||||
@include('modules.Dashboard.components.infobox', ['count' => (isset($nb_lots_optionne)) ? $nb_lots_optionne : 0, 'class' => 'bg-red', 'icon' => 'fa-clock-o', 'text' => 'Options'])
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<!-- fix for small devices only -->
|
||||
<div class="clearfix visible-sm-block"></div>
|
||||
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<a href="{!!route('Hestimmo.Dossiers.encours') !!}">
|
||||
@include('modules.Dashboard.components.infobox', ['count' => (isset($nb_dossiers_encours)) ? $nb_dossiers_encours : 0, 'class' => 'bg-yellow', 'icon' => 'fa-hourglass-start', 'text' => 'Dossiers en cours'])
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<a href="{!! route('Hestimmo.Ventes.index') !!}">
|
||||
@include('modules.Dashboard.components.infobox', ['count' => (isset($nb_ventes)) ? $nb_ventes : 0, 'class' => 'bg-green', 'icon' => 'fa-check-square-o', 'text' => 'Ventes'])
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
@@ -0,0 +1,38 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<div class="description-block border-right">
|
||||
<span class="description-percentage text-green"><i class="fa fa-caret-up"></i> 17%</span>
|
||||
<h5 class="description-header">35,210.43 €</h5>
|
||||
<span class="description-text">TOTAL VENTE</span>
|
||||
</div>
|
||||
<!-- /.description-block -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<div class="description-block border-right">
|
||||
<span class="description-percentage text-yellow"><i class="fa fa-caret-left"></i> 0%</span>
|
||||
<h5 class="description-header">10,390.90 €</h5>
|
||||
<span class="description-text">TOTAL COMMISSION</span>
|
||||
</div>
|
||||
<!-- /.description-block -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<div class="description-block border-right">
|
||||
<span class="description-percentage text-green"><i class="fa fa-caret-up"></i> 20%</span>
|
||||
<h5 class="description-header">24,813.53 €</h5>
|
||||
<span class="description-text">TOTAL PROFIT</span>
|
||||
</div>
|
||||
<!-- /.description-block -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<div class="description-block">
|
||||
<span class="description-percentage text-red"><i class="fa fa-caret-down"></i> 18%</span>
|
||||
<h5 class="description-header">1200</h5>
|
||||
<span class="description-text">Dossiers complétés</span>
|
||||
</div>
|
||||
<!-- /.description-block -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon {{ $class }}"><i class="fa {{ $icon }}"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{{ $text }}</span>
|
||||
<span class="info-box-number">{{ $count }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
<div class="info-box {{ $class }}">
|
||||
<span class="info-box-icon"><i class="fa fa-fw {{ $icon }}"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{{ $text }}</span>
|
||||
<span class="info-box-number">{{ App\Repositories\Core\Number::price($count) }}</span>
|
||||
|
||||
<div class="progress">
|
||||
<div class="progress-bar" style="width: {{ $percent }}%"></div>
|
||||
</div>
|
||||
<span class="progress-description">
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Derniers dossiers</h3>
|
||||
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table no-margin">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Résidence</th>
|
||||
<th>Lot</th>
|
||||
<th>Prix</th>
|
||||
<th>Vendeur</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="pages/examples/invoice.html">Résidence</a></td>
|
||||
<td>Lot</td>
|
||||
<td><span class="label label-success">Prix</span></td>
|
||||
<td>Vendeur</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.table-responsive -->
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="box-footer clearfix">
|
||||
<a href="javascript:void(0)" class="btn btn-sm btn-info btn-flat pull-left">Nouveau dossier</a>
|
||||
<a href="javascript:void(0)" class="btn btn-sm btn-default btn-flat pull-right">Voir tous les dossiers</a>
|
||||
</div>
|
||||
<!-- /.box-footer -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
@@ -0,0 +1,20 @@
|
||||
<!-- MAP & BOX PANE -->
|
||||
|
||||
@component('components.widgets.box')
|
||||
|
||||
@slot('title', 'Emplacement des résidences')
|
||||
|
||||
@slot('content')
|
||||
<div class="row">
|
||||
<div class="col-md-9 col-sm-8">
|
||||
<div class="pad" style="height: 360px;">
|
||||
{!! Mapper::render() !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-4">
|
||||
@include('modules.Dashboard.partials.hestimmo.stats_lots')
|
||||
</div>
|
||||
</div>
|
||||
@endslot
|
||||
|
||||
@endcomponent
|
||||
@@ -0,0 +1,47 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Statistiques mensuelles</h3>
|
||||
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
||||
</button>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-wrench"></i></button>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="#">Par semaine</a></li>
|
||||
<li><a href="#">Par mois</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#">Autre chose</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
@include('modules.Dashboard.partials.chart')
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-4">
|
||||
@include('modules.Dashboard.partials.goal_completion')
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
<div class="box-footer">
|
||||
@include('modules.Dashboard.partials.evolutions')
|
||||
</div>
|
||||
<!-- /.box-footer -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
30
resources/views/Shop/Admin/Dashboard/index.blade.php
Normal file
30
resources/views/Shop/Admin/Dashboard/index.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('boilerplate::layout.index', [
|
||||
'title' => __('dashboard.title'),
|
||||
'subtitle' => __('boilerplate::users.list.title'),
|
||||
'breadcrumb' => [
|
||||
__('boilerplate::dashboard.title') => 'boilerplate.users.index'
|
||||
]
|
||||
])
|
||||
|
||||
@include('boilerplate::logs.style')
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('Shop.admin.Dashboard._partials.counter')
|
||||
@include('Shop.admin.Dashboard._partials.report')
|
||||
|
||||
@endsection
|
||||
|
||||
@prepend('js')
|
||||
@include('components.js.ie11')
|
||||
@include('components.js', ['js' => '/js/laroute.js'])
|
||||
@include('components.js', ['js' => '/js/main.min.js'])
|
||||
@include('components.js', ['js' => '/js/datatables.min.js'])
|
||||
@include('boilerplate::load.moment')
|
||||
|
||||
@endprepend
|
||||
|
||||
@push('css')
|
||||
@include('components.css', ['css' => '/css/main.min.css'])
|
||||
@include('components.css', ['css' => '/css/datatables.min.css'])
|
||||
@endpush
|
||||
15
resources/views/Shop/Admin/Families/create.blade.php
Normal file
15
resources/views/Shop/Admin/Families/create.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('boilerplate::layout.index', [
|
||||
'title' => __('Shop.families.title'),
|
||||
'subtitle' => __('Shop.families.add'),
|
||||
'breadcrumb' => [__('Shop.families.title'), __('Shop.families.add')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.families.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
@include('Shop.Admin.families.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Shop/Admin/Families/edit.blade.php
Normal file
16
resources/views/Shop/Admin/Families/edit.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.families.title'),
|
||||
'subtitle' => __('Shop.families.edit'),
|
||||
'breadcrumb' => ['Familles']
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Families.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $family['id'] }}">
|
||||
|
||||
@include('Shop.Admin.Families.form')
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
21
resources/views/Shop/Admin/Families/form.blade.php
Normal file
21
resources/views/Shop/Admin/Families/form.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => (isset($family['name'])) ? $family['name'] : null, 'required' => true])
|
||||
|
||||
{{ Form::label('alias', 'Alias') }}
|
||||
@include('components.input', ['name' => 'alias', 'value' => (isset($family['alias'])) ? $family['alias'] : null, 'required' => true])
|
||||
|
||||
{{ Form::label('latin', 'Nom latin') }}
|
||||
@include('components.input', ['name' => 'latin', 'value' => (isset($family['latin'])) ? $family['latin'] : null, 'required' => true])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="float-right mt-3">
|
||||
@include('components.button-save')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
21
resources/views/Shop/Admin/Families/list.blade.php
Normal file
21
resources/views/Shop/Admin/Families/list.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.families.title'),
|
||||
'subtitle' => __('Shop.families.list'),
|
||||
'breadcrumb' => [__('Shop.families.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row pb-3">
|
||||
<div class="col text-right">
|
||||
<a href="{{ route('Shop.Admin.Families.create') }}" class="btn btn-sm btn-success">{{ __('Shop.families.add') }} <i class="fa fa-plus"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{$dataTable->table()}}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@include('components.js.datatable', ['route' => '/Shop/Admin/Families', 'model' => 'families'])
|
||||
@endpush
|
||||
30
resources/views/Shop/Admin/Families/show.blade.php
Normal file
30
resources/views/Shop/Admin/Families/show.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('components.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
13
resources/views/Shop/Admin/Genres/create.blade.php
Normal file
13
resources/views/Shop/Admin/Genres/create.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.genres.title'),
|
||||
'subtitle' => __('Shop.genres.add'),
|
||||
'breadcrumb' => [__('Shop.genres.title'), __('Shop.genres.add')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
@include('Shop.Admin.genres.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Shop/Admin/Genres/edit.blade.php
Normal file
16
resources/views/Shop/Admin/Genres/edit.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.genres.title'),
|
||||
'subtitle' => __('Shop.genres.edit'),
|
||||
'breadcrumb' => ['Familles']
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
|
||||
@include('Shop.Admin.Genres.form')
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
27
resources/views/Shop/Admin/Genres/form.blade.php
Normal file
27
resources/views/Shop/Admin/Genres/form.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => isset($name) ? $name : null, 'required' => true])
|
||||
|
||||
{{ Form::label('alias', 'Alias') }}
|
||||
@include('components.input', ['name' => 'alias', 'value' => isset($alias) ? $alias : null, 'required' => true])
|
||||
|
||||
{{ Form::label('latin', 'Nom latin') }}
|
||||
@include('components.input', ['name' => 'latin', 'value' => isset($latin) ? $latin : null, 'required' => true])
|
||||
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($description) ? $description : null, 'class' => 'editor', 'required' => false])
|
||||
|
||||
{{ Form::label('family', 'Famille') }}
|
||||
@include('components.select', ['name' => 'family_id', 'list' => $families, 'value' => isset($family_id) ? $family_id : null, 'required' => false])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="float-right mt-3">
|
||||
@include('components.button-save')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
22
resources/views/Shop/Admin/Genres/list.blade.php
Normal file
22
resources/views/Shop/Admin/Genres/list.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.genres.title'),
|
||||
'subtitle' => __('Shop.genres.list'),
|
||||
'breadcrumb' => [__('Shop.genres.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row pb-3">
|
||||
<div class="col text-right">
|
||||
<a href="{{ route('Shop.Admin.Genres.create') }}" class="btn btn-sm btn-success">{{ __('Shop.genres.add') }} <i class="fa fa-plus"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{$dataTable->table()}}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@include('components.js.datatable', ['route' => '/Shop/Admin/Genres', 'model' => 'genres'])
|
||||
@endpush
|
||||
|
||||
30
resources/views/Shop/Admin/Genres/show.blade.php
Normal file
30
resources/views/Shop/Admin/Genres/show.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('components.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="col-md-12 col-lg-4 row-lot-photo m-top-8">
|
||||
|
||||
<button type="button" class="btn btn-danger delete-lot-photo-btn"><i class="fa fa-minus-circle"></i></button>
|
||||
|
||||
<div class="thumbnail">
|
||||
<img src="/storage/{{ $photo['filepath'] }}/{{ $photo['uuid'] }}.{{ $photo['filetype'] }}" alt="...">
|
||||
<div class="caption">
|
||||
<h3>{{ $photo['title'] }}</h3>
|
||||
<p>Poids : {{ $photo['filesize'] }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div class="col-md-12 col-lg-4 row-new-lot-photo row-lot-photo m-top-8">
|
||||
|
||||
<p>
|
||||
<button type="button" class="btn btn-danger delete-new-lot-photo-btn"><i class="fa fa-minus-circle"></i></button>
|
||||
Photo <span class="row-photo-number"></span>
|
||||
</p>
|
||||
|
||||
<input name="lot_photos[][file]" type="file" class="file" data-show-upload="false" data-show-caption="true" data-msg-placeholder="Choisissez une photo">
|
||||
<label>Titre</label>
|
||||
<input name="lot_photos[][title]" type="text" class="form-control">
|
||||
|
||||
<label>Type de photo</label>
|
||||
@include('components.select',['name' => 'lot_photos[][type_photo_id]' , 'list' => $type_photos])
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,41 @@
|
||||
@if (isset($photos) && count($photos))
|
||||
<table class="table table-striped table-hover va-middle" id="photos-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Photo</th>
|
||||
<th>Type</th>
|
||||
<th>Titre</th>
|
||||
<th>Poids</th>
|
||||
<th style="min-width: 82px; max-width: 82px;"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($photos as $photo)
|
||||
<tr>
|
||||
<td>
|
||||
<img src="/storage/{{ $photo['filepath'] }}/{{ $photo['uuid'] }}.{{ $photo['filetype'] }}" width="64">
|
||||
</td>
|
||||
<td>
|
||||
{{ $photo['type_photo']['nom'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $photo['title'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $photo['filesize'] }}
|
||||
</td>
|
||||
<td>
|
||||
<!--
|
||||
<a href="{{ route('Hestimmo.LotPhotos.edit', $photo['id']) }}" class="btn btn-sm btn-primary">
|
||||
<span class="fa fa-eye"></span>
|
||||
</a>
|
||||
-->
|
||||
<a href="{{ route('Hestimmo.LotPhotos.destroy', $photo['id']) }}" class="btn btn-sm btn-danger destroy">
|
||||
<span class="fa fa-trash"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
38
resources/views/Shop/Admin/Products/create.blade.php
Normal file
38
resources/views/Shop/Admin/Products/create.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('lots.title'),
|
||||
'subtitle' => __('lots.create.title'),
|
||||
'breadcrumb' => [__('lots.title'), __('lots.create.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.icheck')
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@prepend('js')
|
||||
@include('components.js', ['js' => '/js/main.min.js'])
|
||||
@endprepend
|
||||
|
||||
@push('css')
|
||||
@include('components.css', ['css' => '/css/main.min.css'])
|
||||
@endpush
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Hestimmo.Lots.store', 'id' => 'lot-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Hestimmo.Lots.index") }}" class="btn btn-default">
|
||||
{{ __('lots.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.button-save')
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('Hestimmo.modules.Lot.lot_form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
39
resources/views/Shop/Admin/Products/edit.blade.php
Normal file
39
resources/views/Shop/Admin/Products/edit.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Lots',
|
||||
'subtitle' => 'Edition d\'un lot',
|
||||
'breadcrumb' => ['Lots']
|
||||
])
|
||||
|
||||
@include('boilerplate::load.icheck')
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@prepend('js')
|
||||
@include('components.js', ['js' => '/js/main.min.js'])
|
||||
@endprepend
|
||||
|
||||
@push('css')
|
||||
@include('components.css', ['css' => '/css/main.min.css'])
|
||||
@endpush
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Hestimmo.Lots.update', 'id' => 'lot-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Hestimmo.Lots.index") }}" class="btn btn-default">
|
||||
{{ __('lots.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.button-save')
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
@include('Hestimmo.modules.Lot.lot_form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
94
resources/views/Shop/Admin/Products/list.blade.php
Normal file
94
resources/views/Shop/Admin/Products/list.blade.php
Normal file
@@ -0,0 +1,94 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('lots.title'),
|
||||
'subtitle' => __('lots.list.title'),
|
||||
'breadcrumb' => [__('lots.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<div class="box-body">
|
||||
<table class="table table-striped table-hover va-middle" id="lot-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@include('components.select', ['name' => 'statut', 'class' => 'form-control-sm', 'style' => 'padding: 2px;', 'list' => $type_lot_statuts])
|
||||
</th>
|
||||
<th>
|
||||
@include('components.select', ['name' => 'type_dispositif', 'class' => 'form-control-sm', 'style' => 'padding: 2px;', 'list' => $type_dispositifs])
|
||||
</th>
|
||||
<th>
|
||||
@include('components.select', ['name' => 'residence', 'class' => 'form-control-sm', 'style' => 'padding: 2px;', 'list' => $residences])
|
||||
</th>
|
||||
<th style="max-width: 120px;">
|
||||
<input type="text" class="form-control-sm" style="max-width: 100px;">
|
||||
</th>
|
||||
<th>
|
||||
@include('components.select', ['name' => 'type_lot', 'class' => 'form-control-sm', 'style' => 'padding: 2px;', 'list' => $type_lots])
|
||||
</th>
|
||||
<th style="min-width: 100px;">
|
||||
<input type="text" class="form-control-sm" style="max-width: 80px;">
|
||||
</th>
|
||||
<th style="min-width: 160px; max-width: 160px;">
|
||||
</th>
|
||||
<th style="max-width: 120px;">
|
||||
<input type="text" class="form-control-sm" style="max-width: 100px;">
|
||||
</th>
|
||||
<th style="max-width: 120px;">
|
||||
<input type="text" class="form-control-sm" style="max-width: 100px;">
|
||||
</th>
|
||||
<th style="max-width: 120px;">
|
||||
<input type="text" class="form-control-sm" style="max-width: 100px;">
|
||||
</th>
|
||||
<th style="max-width: 120px;">
|
||||
<input type="text" class="form-control-sm" style="max-width: 100px;">
|
||||
</th>
|
||||
<th style="max-width: 120px;">
|
||||
<input type="text" class="form-control-sm" style="max-width: 100px;">
|
||||
</th>
|
||||
<th style="max-width: 120px;">
|
||||
<input type="text" class="form-control-sm" style="max-width: 100px;">
|
||||
</th>
|
||||
<th style="max-width: 120px;">
|
||||
<input type="text" class="form-control-sm" style="max-width: 100px;">
|
||||
</th>
|
||||
<th>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Statut</th>
|
||||
<th>Dispositif</th>
|
||||
<th>Résidence</th>
|
||||
<th>Référence</th>
|
||||
<th>Type</th>
|
||||
<th>Surface</th>
|
||||
<th>Surface Ext.</th>
|
||||
<th>Prix total</th>
|
||||
<th>Prix achat</th>
|
||||
<th>Package</th>
|
||||
<th>F. Notaire</th>
|
||||
<th>F. Bancaire</th>
|
||||
<th>Loyer logement</th>
|
||||
<th>Loyer stat.</th>
|
||||
<th style="min-width: 82px; max-width: 82px;"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@prepend('js')
|
||||
@include('components.js.ie11')
|
||||
@include('components.js', ['js' => '/js/laroute.js'])
|
||||
@include('components.js', ['js' => '/js/main.min.js'])
|
||||
@include('components.js', ['js' => '/js/datatables.min.js'])
|
||||
@endprepend
|
||||
|
||||
@push('js')
|
||||
@include('components.js', ['js' => '/js/lot_index.min.js'])
|
||||
@endpush
|
||||
|
||||
@push('css')
|
||||
@include('components.css', ['css' => '/css/main.min.css'])
|
||||
@include('components.css', ['css' => '/css/datatables.min.css'])
|
||||
@endpush
|
||||
@@ -0,0 +1,35 @@
|
||||
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
||||
<!-- Indicators -->
|
||||
<ol class="carousel-indicators">
|
||||
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
||||
</ol>
|
||||
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner" role="listbox">
|
||||
<div class="item active">
|
||||
<img src="/storage/images/residences/139.jpg" alt="..." class="img-responsive">
|
||||
<div class="carousel-caption">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="/storage/images/residences/134.jpg" alt="..." class="img-responsive">
|
||||
<div class="carousel-caption">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
...
|
||||
</div>
|
||||
|
||||
<!-- Controls -->
|
||||
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Précédent</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Suivant</span>
|
||||
</a>
|
||||
</div>
|
||||
178
resources/views/Shop/Admin/Products/partials/detail.blade.php
Normal file
178
resources/views/Shop/Admin/Products/partials/detail.blade.php
Normal file
@@ -0,0 +1,178 @@
|
||||
<div class="row" style="display: flex;">
|
||||
<div class="col-xs-12 col-md-6 text-center">
|
||||
@include('components.carousel', ['id_name' => 'detail_lot', 'with_modal' => true, 'id' => $id ])
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="text-right">
|
||||
{{ __('lots.reference') }} : {{ $ref }}
|
||||
</div>
|
||||
|
||||
<h3 style="margin-top: 10px;">{{ $type_lot['nom'] }} - {{ $residence['nom'] }}</h3>
|
||||
<span class="badge">
|
||||
Dispositif {{ $dispositifs[0]['type_dispositif']['nom'] }}
|
||||
</span>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
{{ $batiment['adresse'] }} {{ $batiment['code_postal'] }} {{ $batiment['ville'] }}<br/>
|
||||
{{ $batiment['complement_adresse'] }} - {{ $etage }}<br/><br/>
|
||||
|
||||
<div class="m-bottom-15">
|
||||
Surface : {{ $surface }} m2<br/>
|
||||
|
||||
@if ($surface_balcon) Balcon/Terrasse : {{ $surface_balcon }} m2 <br/>@endif
|
||||
@if ($surface_cave) Cave : {{ $surface_cave }} m2 <br/>@endif
|
||||
@if ($surface_grenier) Grenier : {{ $surface_grenier }} m2 <br/>@endif
|
||||
@if ($surface_soussol) Sous-sol : {{ $surface_soussol }} m2 <br/>@endif
|
||||
@if ($surface_terrain) Terrain : {{ $surface_terrain }} m2 <br/>@endif
|
||||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
<h2><strong>{{ App\Repositories\Core\Number::price($prix_total) }} €</strong></h2>
|
||||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||
<button type="button" data-id="{{ $id }}" data-toggle='modal' data-target='#lot-option' class="btn btn-success btn btn-lot-option" >
|
||||
<i class='fa fa-check-square-o fa-fw'></i>
|
||||
Optionner
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" style="margin-top: 20px;">
|
||||
<div class="col-md-12">
|
||||
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" role="tab" id="headingOne">
|
||||
<h4 class="panel-title">
|
||||
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
||||
<i class="fa fa-arrow-circle-right"></i> Détails des prix
|
||||
</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-condensed">
|
||||
<thead class="thead-bgcolor">
|
||||
<tr>
|
||||
<th>Prix acquisition</th>
|
||||
<th>Montant travaux</th>
|
||||
<th>Prix total</th>
|
||||
<th>Prix cave</th>
|
||||
<th>Prix stationnement</th>
|
||||
<th>Package</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_achat) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_travaux) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_total) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_cave) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_stationnement) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($package) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-condensed" style="width: 100%;">
|
||||
<thead class="thead-bgcolor">
|
||||
<tr>
|
||||
<th>Honoraires Agence</th>
|
||||
<th>Frais notaire</th>
|
||||
<th>Frais bancaire</th>
|
||||
<th>Courtage bancaire</th>
|
||||
<th>Interêts intercalaires</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($honoraires_agence) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($frais_notaire) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($frais_bancaire) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($courtage_bancaire) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($interets_intercalaires) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-condensed" style="width: 100%;">
|
||||
<thead class="thead-bgcolor">
|
||||
<tr>
|
||||
<th>Garantie revente</th>
|
||||
<th>Loyer logement</th>
|
||||
<th>Loyer stationnement</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($garantie_revente) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($loyer_logement) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($loyer_stationnement) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" role="tab" id="headingTwo">
|
||||
<h4 class="panel-title">
|
||||
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
||||
<i class="fa fa-arrow-circle-right"></i> Liste des documents disponibles
|
||||
</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-condensed" style="width: 100%;">
|
||||
<thead class="thead-bgcolor">
|
||||
<th>Type</th>
|
||||
<th>Titre</th>
|
||||
<th>Format</th>
|
||||
<th>Poids</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($documents as $document)
|
||||
<tr>
|
||||
<td>{{ $document['type_document']['nom'] }}</td>
|
||||
<td>{{ $document['title'] }}</td>
|
||||
<td>{{ $document['filetype'] }}</td>
|
||||
<td class="text-right">{{ Coduo\PHPHumanizer\NumberHumanizer::binarySuffix($document['filesize']) }}</td>
|
||||
<td><a class='btn btn-xs btn-primary' href="{{ route('Hestimmo.LotDocuments.download', $document['id']) }}"><i class='fa fa-eye fa-fw'></i></a></i></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
handle_option();
|
||||
|
||||
$('.btn-lot-option').on('click', function(e) {
|
||||
var id = $(this).data('id');
|
||||
$('#modal-option-content').load(laroute.route('Hestimmo.Options.getOptionOnLot', {lot_id : id}));
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,28 @@
|
||||
@if (isset($documents))
|
||||
@include('Hestimmo.modules.LotDocument.partials.list-documents')
|
||||
@endif
|
||||
|
||||
@include('Hestimmo.modules.LotDocument.partials.block_document_new')
|
||||
<div id="append_lot_document" class="row m-top-8"> </div>
|
||||
|
||||
<button type="button" class="btn btn-primary add-new-lot-document m-top-8">Ajouter un document <i class="fa fa-plus"></i></button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function append_lot_document() {
|
||||
$("#append_lot_document .file").fileinput();
|
||||
}
|
||||
|
||||
$("#append_lot_document").appender({
|
||||
rowSection: '.row-new-lot-document',
|
||||
type: '.row-lot-document',
|
||||
addBtn: '.add-new-lot-document',
|
||||
appendEffect: 'slide',
|
||||
addClass: 'animated bounceInLeft',
|
||||
rowNumber: '.row-lot-document-number',
|
||||
deleteBtn: '.delete-new-lot-document-btn',
|
||||
callback: append_lot_document,
|
||||
hideSection: true
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,46 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label>Réserver ce lot</label>
|
||||
@include('components.checkbox', ['name' => 'reserve', 'id' => 'reserve', 'class' => 'icheck', 'val' => 1, 'value' => (isset($reserve)) ? $reserve : null])
|
||||
<br/>
|
||||
<div id="partenaires" @if (!isset($reserve) || !$reserve) style="display: none;" @endif>
|
||||
@foreach($partenaires as $key => $item)
|
||||
@include('components.checkbox', ['name' => 'partenaires[]', 'class' => 'icheck', 'val' => $key, 'value' => in_array($key, $lot_partenaires)])
|
||||
<label>{{ $item }}</label>
|
||||
<br/>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Promouvoir ce lot</label>
|
||||
@include('components.checkbox', ['name' => 'promo', 'class' => 'icheck', 'val' => 1, 'value' => (isset($promo)) ? $promo : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$(document).ready(function() {
|
||||
$('#reserve').on('ifChecked', function(event) {
|
||||
$('#partenaires').show();
|
||||
});
|
||||
|
||||
$('#reserve').on('ifUnchecked', function(event) {
|
||||
$('#partenaires').hide();
|
||||
@if (isset($id))
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{!! route('Hestimmo.LotPartenaires.resetReserve') !!}",
|
||||
data: {
|
||||
id: {{ $id }},
|
||||
},
|
||||
});
|
||||
@endif
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
@if (isset($photos))
|
||||
@include('Hestimmo.modules.LotPhoto.partials.list-photos')
|
||||
@endif
|
||||
|
||||
@include('Hestimmo.modules.LotPhoto.partials.block_photo_new')
|
||||
<div id="append_lot_photo" class="row m-top-8"> </div>
|
||||
|
||||
<button type="button" class="btn btn-primary add-new-lot-photo m-top-8">Ajouter une photo <i class="fa fa-plus"></i></button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function append_lot_photo() {
|
||||
$("#append_lot_photo .file").fileinput();
|
||||
}
|
||||
|
||||
$("#append_lot_photo").appender({
|
||||
rowSection: '.row-new-lot-photo',
|
||||
type: '.row-lot-photo',
|
||||
addBtn: '.add-new-lot-photo',
|
||||
appendEffect: 'slide',
|
||||
addClass: 'animated bounceInLeft',
|
||||
rowNumber: '.row-lot-photo-number',
|
||||
deleteBtn: '.delete-new-lot-photo-btn',
|
||||
callback: append_lot_photo,
|
||||
hideSection: true
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,269 @@
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6 col-lg-3">
|
||||
{{ Form::label('ref', 'Numéro de lot') }}
|
||||
@include('components.input', ['name' => 'ref', 'value' => (isset($ref)) ? $ref : null])
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-lg-3">
|
||||
<div class="form-group {{ $errors->has('type_dispositifs') ? 'has-error' : '' }}">
|
||||
{{ Form::label('type_dispositifs', 'Type de dispositifs') }}
|
||||
@include('components.select', ['name' => 'type_dispositif_id', 'list' => $type_dispositifs, 'value' => (isset($type_dispositif_id)) ? $type_dispositif_id : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-lg-2">
|
||||
<div class="form-group {{ $errors->has('type_lots') ? 'has-error' : '' }}">
|
||||
{{ Form::label('type_lots', 'Type de lot') }}
|
||||
@include('components.select', ['name' => 'type_lot_id', 'list' => $type_lots, 'value' => (isset($type_lot_id)) ? $type_lot_id : null ])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('nb_etages', 'Agencement') }}
|
||||
@include('components.select', ['name' => 'nb_etages', 'list' => [1 => 'Aucun étage', 2 => 'Duplex', 3=> 'Triplex'], 'value' => (isset($nb_etages)) ? $nb_etages : 1])
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4 col-lg-2">
|
||||
<div class="form-group {{ $errors->has('statut') ? 'has-error' : '' }}">
|
||||
{{ Form::label('statut_id', 'Statut') }}
|
||||
@include('components.select', ['name' => 'statut_id', 'list' => $type_lot_statuts, 'value' => (isset($statut_id)) ? $statut_id : 3])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12 col-lg-6">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
<textarea name="description" class="form-control editor">@if (isset($description)){{ $description }}@endif</textarea>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<div class="form-group {{ $errors->has('residence_id') ? 'has-error' : '' }}">
|
||||
{{ Form::label('residence_id', 'Résidence') }}
|
||||
@include('components.select', ['name' => 'residence_id', 'id_name' => 'residence_id', 'list' => $residences, 'value' => (isset($residence_id)) ? $residence_id : null])
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-4">
|
||||
<div class="form-group {{ $errors->has('batiment_id') ? 'has-error' : '' }}">
|
||||
{{ Form::label('residence_batiment_id', 'Batiment') }}
|
||||
@include('components.select', ['name' => 'residence_batiment_id', 'id_name' => 'residence_batiment_id', 'list' => (isset($batiments)) ? $batiments : null, 'value' => (isset($residence_batiment_id)) ? $residence_batiment_id : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-lg-2">
|
||||
{{ Form::label('position_etage', 'Etage') }}
|
||||
@include('components.select', ['name' => 'position_etage', 'id_name' => 'position_etage', 'list' => (isset($etages)) ? $etages : null, 'value' => (isset($position_etage)) ? $position_etage : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
{{ Form::label('adresse', 'Adresse') }}
|
||||
@include('components.input', ['name' => 'adresse', 'value' => (isset($adresse)) ? $adresse : null])
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
{{ Form::label('complement_adresse', 'Complément d\'adresse') }}
|
||||
@include('components.input', ['name' => 'complement_adresse', 'value' => (isset($complement_adresse)) ? $complement_adresse : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row m-top-8">
|
||||
<div class="col-md-4">
|
||||
{{ Form::label('code_postal', 'Code postal') }}
|
||||
@include('components.input', ['name' => 'code_postal', 'value' => (isset($code_postal)) ? $code_postal : null])
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('ville', 'Ville') }}
|
||||
@include('components.city', ['name' => 'ville', 'list' => (isset($ville)) ? [$ville_id => $ville] : [], 'value' => (isset($ville_id)) ? $ville_id : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface', 'Surface') }}
|
||||
@include('components.input', ['name' => 'surface', 'value' => (isset($surface)) ? $surface : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_terrain', 'Terrain') }}
|
||||
@include('components.input', ['name' => 'surface_terrain', 'value' => (isset($surface_terrain)) ? $surface_terrain : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_balcon', 'Balcon / Terrasse') }}
|
||||
@include('components.input', ['name' => 'surface_balcon', 'value' => (isset($surface_balcon)) ? $surface_balcon : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_cave', 'Cave') }}
|
||||
@include('components.input', ['name' => 'surface_cave', 'value' => (isset($surface_cave)) ? $surface_cave : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_soussol', 'Sous-sol') }}
|
||||
@include('components.input', ['name' => 'surface_soussol', 'value' => (isset($surface_soussol)) ? $surface_soussol : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_grenier', 'Grenier') }}
|
||||
@include('components.input', ['name' => 'surface_grenier', 'value' => (isset($surface_grenier)) ? $surface_grenier : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row m-top-8">
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_achat', 'Prix acquisition') }}
|
||||
@include('components.money', ['name' => 'prix_achat', 'value' => (isset($prix_achat)) ? $prix_achat : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_travaux', 'Montant travaux') }}
|
||||
@include('components.money', ['name' => 'prix_travaux', 'value' => (isset($prix_travaux)) ? $prix_travaux : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_total', 'Prix total') }}
|
||||
@include('components.money', ['name' => 'prix_total', 'value' => (isset($prix_total)) ? $prix_total : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_cave', 'Prix cave') }}
|
||||
@include('components.money', ['name' => 'prix_cave', 'value' => (isset($prix_cave)) ? $prix_cave : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_stationnement', 'Prix stationnement') }}
|
||||
@include('components.money', ['name' => 'prix_stationnement', 'value' => (isset($prix_stationnement)) ? $prix_stationnement : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('package', 'Package') }}
|
||||
@include('components.money', ['name' => 'package', 'value' => (isset($package)) ? $package : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row m-top-8">
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('honoraires_agence', 'Honoraires Agence') }}
|
||||
@include('components.money', ['name' => 'honoraires_agence', 'value' => (isset($honoraires_agence)) ? $honoraires_agence : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('frais_notaire', 'Frais notaire') }}
|
||||
@include('components.money', ['name' => 'frais_notaire', 'value' => (isset($frais_notaire)) ? $frais_notaire : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('frais_bancaire', 'Garantie bancaire') }}
|
||||
@include('components.money', ['name' => 'frais_bancaire', 'value' => (isset($frais_bancaire)) ? $frais_bancaire : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('courtage_bancaire', 'Courtage bancaire') }}
|
||||
@include('components.money', ['name' => 'courtage_bancaire', 'value' => (isset($courtage_bancaire)) ? $courtage_bancaire : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('interets_intercalaires', 'Interets intercalaires') }}
|
||||
@include('components.money', ['name' => 'interets_intercalaires', 'value' => (isset($interets_intercalaires)) ? $interets_intercalaires : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row m-top-8">
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('garantie_revente', 'Garantie revente') }}
|
||||
@include('components.money', ['name' => 'garantie_revente', 'value' => (isset($garantie_revente)) ? $garantie_revente : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('loyer_logement', 'Loyer logement') }}
|
||||
@include('components.money', ['name' => 'loyer_logement', 'value' => (isset($loyer_logement)) ? $loyer_logement : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('loyer_stationnement', 'Loyer stationnement') }}
|
||||
@include('components.money', ['name' => 'loyer_stationnement', 'value' => (isset($loyer_stationnement)) ? $loyer_stationnement : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function setByResidence(id) {
|
||||
$.ajax({
|
||||
url : laroute.route("Hestimmo.ResidenceBatiments.getByResidence"),
|
||||
data : {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"id": id
|
||||
},
|
||||
method : 'POST',
|
||||
success : function(resp){
|
||||
if (resp.success) {
|
||||
setOptions('#residence_batiment_id',resp.batiments);
|
||||
var batiment_id = $('#residence_batiment_id').val();
|
||||
setNbEtages(batiment_id);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setNbEtages(id) {
|
||||
$.ajax({
|
||||
url : id ? laroute.route("Hestimmo.ResidenceBatiments.getNbEtages") : laroute.route("Hestimmo.Lots.getNbEtages"),
|
||||
data : {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"id": id
|
||||
},
|
||||
method : 'POST',
|
||||
success : function(resp){
|
||||
if (resp.success) {
|
||||
setOptions('#position_etage',resp.etages);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setAdresse(id) {
|
||||
$.ajax({
|
||||
url : laroute.route("Hestimmo.ResidenceBatiments.getAdresse"),
|
||||
data : {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"id": id
|
||||
},
|
||||
method : 'POST',
|
||||
success : function(resp){
|
||||
if (resp.success) {
|
||||
$('#adresse').val(resp.adresse);
|
||||
$('#complement_adresse').val(resp.complement_adresse);
|
||||
$('#code_postal').val(resp.code_postal);
|
||||
$('#ville').val(resp.ville);
|
||||
$('#ville_id').val(resp.ville_id);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$('#residence_id').change(function() {
|
||||
var id = $('#residence_id').val();
|
||||
setByResidence(id);
|
||||
});
|
||||
|
||||
$('#residence_batiment_id').change(function() {
|
||||
var id = $('#residence_batiment_id').val();
|
||||
setNbEtages(id);
|
||||
setAdresse(id);
|
||||
});
|
||||
|
||||
|
||||
var residence_id = $('#residence_id').val();
|
||||
if (residence_id) {
|
||||
setByResidence(residence_id);
|
||||
}
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,92 @@
|
||||
|
||||
<table class="table table-striped table-hover va-middle" id="lots-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Numéro</th>
|
||||
<th>Type</th>
|
||||
<th>Surface</th>
|
||||
<th>Prix total</th>
|
||||
<th>Package</th>
|
||||
<th>Dont F. Notaire</th>
|
||||
<th>Loyer logement</th>
|
||||
<th style="min-width: 82px; max-width: 82px;"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function () {
|
||||
var table = $('#lots-table').DataTable({
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
ajax: {
|
||||
"url": '{!! route('Hestimmo.Lots.getTables') !!}',
|
||||
type: "POST",
|
||||
data: {
|
||||
'residence_id': $('#id').val(),
|
||||
},
|
||||
},
|
||||
sDom: "<'row dt-toolbar-header'<'col-md-4 tool'B><'col-md-4'<'toolbar'>><'col-md-4 text-right add'>r>"+
|
||||
"t"+
|
||||
"<'row dt-toolbar-footer'<'col-md-6'i><'col-md-6'p>>",
|
||||
columns: [
|
||||
{ data: 'ref', name: 'ref' },
|
||||
{ data: 'type_lot.nom', name: 'type_lot.nom' },
|
||||
{ data: 'surface', name: 'surface' },
|
||||
{ data: 'prix_total', name: 'prix_total' },
|
||||
{ data: 'package', name: 'package' },
|
||||
{ data: 'frais_notaire', name: 'frais_notaire' },
|
||||
{ data: 'loyer_logement', name: 'loyer_logement' },
|
||||
{
|
||||
data: "id",
|
||||
name: "action",
|
||||
orderable: false,
|
||||
searchable: false,
|
||||
render: function (data, type, row) {
|
||||
tpl = " <a data-id=" + data + " class='btn btn-xs btn-primary' href='"+ laroute.route('Hestimmo.Lots.edit', { id : data}) +"'><i class='fa fa-edit fa-fw'></i></a>";
|
||||
tpl += " <a data-id=" + data + " class='btn btn-xs btn-danger btn-lot-delete destroy' href='#''><i class='fa fa-times fa-fw'></i></a>";
|
||||
return tpl;
|
||||
}
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
table.on( 'draw', function () {
|
||||
tpl = '<a href="#" id="btn-lot-add" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> Création d\'un lot</a>';
|
||||
$('div.col-md-4.text-right.add').html(tpl);
|
||||
|
||||
var residence_id = $('#id').val();
|
||||
$('#btn-lot-add').click(function() {
|
||||
if (residence_id) {
|
||||
url = laroute.route('Hestimmo.Lots.create', { residence_id : residence_id });
|
||||
window.location = url;
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
$('#lots-table').on('click', '.destroy', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
var href = $(this).attr('href');
|
||||
var line = $(this).closest('tr');
|
||||
|
||||
bootbox.confirm("{{ __('boilerplate::role.list.confirmdelete') }}", function (result) {
|
||||
if (result === false) return;
|
||||
|
||||
$.ajax({
|
||||
url: href,
|
||||
method: 'delete',
|
||||
headers: {'X-CSRF-TOKEN': '{{ csrf_token() }}'},
|
||||
success: function(){
|
||||
line.remove();
|
||||
growl("{{ __('boilerplate::role.list.deletesuccess') }}", 'success');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,73 @@
|
||||
<div class="col-lg-4 col-md-4">
|
||||
<div class="property bg-light-2 m-bottom-30 box-shadow-1 box-shadow-2-hover border-1 border-solid border-light">
|
||||
<div class="property-media overlay-wrapper">
|
||||
@if (isset($lot['residence']['photos'][0]))
|
||||
<img class="img-responsive wow fadeIn" data-wow-offset="100" src="{{ \App\Repositories\Hestimmo\ResidencePhotos::getPhotoSrc($lot['residence']['photos'][0]) }}" alt="Lot">
|
||||
@else
|
||||
<img src="/img/photo_notfound.jpg" class="img-responsive img-rounded">
|
||||
@endif
|
||||
<div class="media-data">
|
||||
<div class="position-top">
|
||||
<div class="text-white text-size-24 pull-right">
|
||||
<!--
|
||||
<a class="text-white text-base-hover" href="#">
|
||||
<i class="fa fa-heart-o"></i>
|
||||
</a>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="position-bottom">
|
||||
<div class="badge badge-base text-white pull-left m-right-8 p-top-8 p-right-12 p-bottom-8 p-left-12 rounded-0">
|
||||
@if (isset($lot['dispositifs'][0]))
|
||||
{{ $lot['dispositifs'][0]['type_dispositif']['nom'] }}
|
||||
@endif
|
||||
</div>
|
||||
<div class="text-white text-size-18 pull-right">
|
||||
<i class="fa fa-camera"></i>
|
||||
{{ $lot['photos_count'] }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="overlay bg-bg opacity-9"></div>
|
||||
</div>
|
||||
<div class="property-section p-left-15 p-right-15">
|
||||
<div class="m-top-20">
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<h2>
|
||||
{{ $lot['type_lot']['nom'] }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<h2 class="text-base text-bold-700 bleu wow heartBeat" data-wow-offset="100">
|
||||
{{ App\Repositories\Core\Number::price($lot['prix_total']) }} €
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
@if (!empty($lot['description']))
|
||||
{!! $lot['description'] !!}
|
||||
@else
|
||||
{!! $lot['residence']['description'] !!}
|
||||
@endif
|
||||
<p>
|
||||
<a href="#" class="bleu">
|
||||
<span class="fa fa-2x fa-map-marker"></span>
|
||||
</a>
|
||||
<strong>{{ $lot['batiment']['adresse'] }} {{ $lot['batiment']['code_postal'] }} {{ $lot['batiment']['ville'] }}</strong>
|
||||
</p>
|
||||
<ul class="icon-list list-inline m-bottom-0">
|
||||
<li class="list-inline-item"><span class="bleu fa fa-map-o"></span> {{ $lot['type_lot']['nb_pieces'] }} pièces</li>
|
||||
<li class="list-inline-item"><span class="bleu fa fa-bed"></span> {{ $lot['type_lot']['nb_chambres'] }} @if ($lot['type_lot']['nb_chambres'] > 1) chambres @else chambre @endif</li>
|
||||
<li class="list-inline-item"><span class="bleu fa fa-expand"></span> <strong>{{ $lot['surface'] }} m²</strong></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<button type="button" data-id="{{ $lot['id'] }}" data-toggle='modal' data-target='#lot-detail' class="btn btn-primary btn-sm btn-lot-detail" style="margin: 10px 10px 10px 0;">
|
||||
<i class="fa fa-eye"></i> Voir le détail
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="modal fade" id="lot-detail" tabindex="-1" role="dialog" aria-labelledby="lot-detail">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel">Détail du lot</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="modal-detail-content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
<div class="modal fade" id="modal-edit-document" tabindex="-1" role="dialog" aria-labelledby="lot-option">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel">Modifier un document</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="modal-document-content">
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||
<button type="button" class="btn btn-primary">Enregistrer</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
{{ Form::open(['route' => 'Hestimmo.Options.store', 'id' => 'option-form', 'autocomplete' => 'off']) }}
|
||||
<div class="modal-box">
|
||||
<div class="modal fade" id="lot-option" tabindex="-1" role="dialog" aria-labelledby="lot-option">
|
||||
<div class="modal-dialog modal-md" role="document">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<div class="modal-body">
|
||||
<div class="icon">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
<h4 class="title">- Option -</h4>
|
||||
<div id="modal-option-content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function handle_option() {
|
||||
$('.save-option').off('click').click(function() {
|
||||
$('.save-option').attr("disabled", true);
|
||||
var data = $("#option-form").serialize();
|
||||
$.ajax({
|
||||
type:'POST',
|
||||
url: "{!! route('Hestimmo.Options.store') !!}",
|
||||
data: data,
|
||||
success:function(data) {
|
||||
growl("{{ __('options.successadd') }}", 'success');
|
||||
$('#lot-option').modal('hide');
|
||||
$('#lot-detail').modal('hide');
|
||||
window.location = laroute.route("Hestimmo.Lots.disponibles");
|
||||
}
|
||||
}).fail(function() {
|
||||
alert( "Erreur lors de l'envoi du formulaire." );
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,95 @@
|
||||
|
||||
<div class="box">
|
||||
<div class="box-body">
|
||||
|
||||
<div class="col-xs-12 col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
<select name="type_dispositif_id" class="form-control">
|
||||
<option>Dispositif</option>
|
||||
@foreach($type_dispositifs as $key => $type_dispositif)
|
||||
<option value="{{$key}}">{{$type_dispositif}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<select name="type_lot_id" class="form-control">
|
||||
<option>Type de lots</option>
|
||||
@foreach($type_lots as $key => $type_lot)
|
||||
<option value="{{$key}}">{{$type_lot}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
@include('components.city', ['name' => 'ville'])
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="number" class="w-100" id="distance" name="distance" data-provide="slider" data-slider-min="0" data-slider-max="40" data-slider-step="5">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
Distance : <span id="distanceSliderVal">5</span> km
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-8">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-12">Budget</label>
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group">
|
||||
<input type="number" style="width: 100%;" id="budget" name="budget" data-provide="slider" data-slider-min="{{ $min }}" data-slider-max="{{ $max }}" data-slider-step="10000" data-slider-value="[{{ $min }},{{ $max }}]">
|
||||
</div>
|
||||
<div class="small-box bg-red">
|
||||
<div class="inner">
|
||||
<h3 id="budgetSliderVal">{{ App\Repositories\Core\Number::price($min) }} - {{ App\Repositories\Core\Number::price($max) }}</h3>
|
||||
<p>Montant +/- 10 000 €</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-eur"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row text-center">
|
||||
<button type="submit" class="btn btn-info">Rechercher</button>
|
||||
<p></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
/*
|
||||
$("input.slider").slider({
|
||||
tooltip: 'always',
|
||||
formatter: function(value) {
|
||||
console.log(value);
|
||||
return value.toString().replace(',',' - ');
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
$("#budget").on("slide", function(slideEvt) {
|
||||
var min = numeral(slideEvt.value[0]).format('0,0');
|
||||
var max = numeral(slideEvt.value[1]).format('0,0');
|
||||
var txt = min + ' - ' + max;
|
||||
$("#budgetSliderVal").text(txt);
|
||||
});
|
||||
|
||||
$("#distance").on("slide", function(slideEvt) {
|
||||
$("#distanceSliderVal").text(slideEvt.value);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
73
resources/views/Shop/Admin/Products/product_form.blade.php
Normal file
73
resources/views/Shop/Admin/Products/product_form.blade.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active">
|
||||
<a href="#lot-renseignement" data-toggle="tab" aria-expanded="true">
|
||||
Renseignement
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#lot-documentation" data-toggle="tab" aria-expanded="true">
|
||||
Documentations
|
||||
@if(isset($documents_count))<span class="badge">{{ $documents_count }}</span>@endif
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#lot-photo" id="lot-photo-tab" data-toggle="tab" aria-expanded="true">
|
||||
Photos
|
||||
@if(isset($photos_count))<span class="badge">{{ $photos_count }}</span>@endif
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#lot-option" id="lot-option-tab" data-toggle="tab" aria-expanded="true">
|
||||
Options
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="lot-renseignement">
|
||||
@include('Hestimmo.modules.Lot.partials.edit-renseignement')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="lot-documentation">
|
||||
@include('Hestimmo.modules.Lot.partials.edit-documentation')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="lot-photo">
|
||||
@include('Hestimmo.modules.Lot.partials.edit-photo')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="lot-option">
|
||||
@include('Hestimmo.modules.Lot.partials.edit-option')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
@include('components.js', ['js' => '/js/laroute.js'])
|
||||
<script>
|
||||
$('.editor').summernote({
|
||||
lang: 'fr-FR',
|
||||
height: 120,
|
||||
toolbar: [
|
||||
// [groupName, [list of button]]
|
||||
['style', ['bold', 'italic', 'underline', 'clear']],
|
||||
['font', ['strikethrough', 'superscript', 'subscript']],
|
||||
['fontsize', ['fontsize']],
|
||||
['para', ['ul', 'ol', 'paragraph']],
|
||||
['color', ['color']],
|
||||
]
|
||||
});
|
||||
$('.save').click(function() {
|
||||
$(this).prop('disabled', true);
|
||||
$(this).html('en cours...');
|
||||
$( "#lot-form" ).submit();
|
||||
return true;
|
||||
})
|
||||
</script>
|
||||
|
||||
<!-- Include Google Maps JS API -->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&key={{ env('GOOGLE_GEOLOCATION_API_KEY') }}"></script>
|
||||
<script type="text/javascript" src="/js/geo_autocomplete.js"></script>
|
||||
@endpush
|
||||
125
resources/views/Shop/Admin/Products/recherche.blade.php
Normal file
125
resources/views/Shop/Admin/Products/recherche.blade.php
Normal file
@@ -0,0 +1,125 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('lots.title'),
|
||||
'subtitle' => __('lots.demande.title'),
|
||||
'breadcrumb' => [__('lots.demande.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Hestimmo.Lots.disponibles', 'id' => 'lot-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
|
||||
<div class="col-xs-12 col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
<select name="type_produit_id" class="form-control">
|
||||
<option>Type de produits</option>
|
||||
@foreach($type_produits as $key => $type_produit)
|
||||
<option value="{{$key}}">{{$type_produit}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<select name="type_lot_id" class="form-control">
|
||||
<option>Type de lots</option>
|
||||
@foreach($type_lots as $key => $type_lot)
|
||||
<option value="{{$key}}">{{$type_lot}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<select name="ville" id="ville" class="form-control" placeholder="Ville"></select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="number" style="width: 100%;" id="distance" name="distance" data-provide="slider" data-slider-min="0" data-slider-max="40" data-slider-step="5" >
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
Distance : <span id="distanceSliderVal">5</span> km
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-8">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-12">Budget</label>
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group">
|
||||
<input type="number" style="width: 100%;" id="budget" name="budget" data-provide="slider" data-slider-min="10000" data-slider-max="1000000" data-slider-step="10000" >
|
||||
</div>
|
||||
<div class="small-box bg-aqua">
|
||||
<div class="inner">
|
||||
<h3 id="budgetSliderVal">10 000</h3>
|
||||
<p>Montant +/- 5000 €</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-eur"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row text-center">
|
||||
<button type="submit" class="btn btn-info">Rechercher</button>
|
||||
<p></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@include('Hestimmo.modules.Lot.partials.list-mini')
|
||||
|
||||
@endsection
|
||||
|
||||
@include('boilerplate::load.datatables')
|
||||
@include('boilerplate::load.select2')
|
||||
|
||||
@push('js')
|
||||
<script src="/js/bootstrap-slider.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
var mySlider = $("input.slider").slider();
|
||||
|
||||
$("#budget").on("slide", function(slideEvt) {
|
||||
$("#budgetSliderVal").text(slideEvt.value);
|
||||
});
|
||||
|
||||
$("#distance").on("slide", function(slideEvt) {
|
||||
$("#distanceSliderVal").text(slideEvt.value);
|
||||
});
|
||||
|
||||
$('#ville').select2({
|
||||
ajax: {
|
||||
url: "{{ route('Villes.autocomplete') }}",
|
||||
data: function (params) {
|
||||
var query = {
|
||||
search: params.term
|
||||
}
|
||||
|
||||
// Query parameters will be ?search=[term]&type=public
|
||||
return query;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@push('css')
|
||||
<link rel="stylesheet" href="/css/bootstrap-slider.min.css">
|
||||
@endpush
|
||||
36
resources/views/Shop/Admin/Products/show.blade.php
Normal file
36
resources/views/Shop/Admin/Products/show.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<form action="{{ route('Shop.Products') }}" method="GET">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="col-md-6 text-right">
|
||||
<h2>{{ $prix_total }} €</h2>
|
||||
<h4>{{ $residence['type_produit']['name'] }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('Hestimmo.modules.Lot.partials.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
38
resources/views/Shop/Admin/Products/site/lot.blade.php
Normal file
38
resources/views/Shop/Admin/Products/site/lot.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="property bg-light-2 m-bottom-30 box-shadow-1 box-shadow-2-hover border-1 border-solid border-light">
|
||||
<div class="property-media overlay-wrapper">
|
||||
<img class="img-fluid wow fadeIn" data-wow-offset="100" src="/storage/images/site/{{ $image }}" alt="Lot">
|
||||
<div class="media-data">
|
||||
<div class="position-top">
|
||||
<div class="text-white text-size-24 pull-right">
|
||||
<a class="text-white text-base-hover" href="#">
|
||||
<i class="fa fa-heart-o"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="position-bottom">
|
||||
<div class="badge badge-base text-white pull-left m-right-8 p-top-8 p-right-12 p-bottom-8 p-left-12 rounded-0">{{ $dispositif }}</div>
|
||||
<div class="text-white text-size-18 pull-right"><i class="fa fa-camera"></i> {{ $nb_photos }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="overlay bg-bg opacity-9"></div>
|
||||
</div>
|
||||
<div class="property-section p-left-15 p-right-15">
|
||||
<div class="m-top-20 m-bottom-20">
|
||||
<h2 class="text-base text-bold-700 m-top-15 bleu wow heartBeat" data-wow-offset="100">
|
||||
{{ $prix }} €
|
||||
<small class="text-size-14 text-muted"></small>
|
||||
</h2>
|
||||
<h5><a class="text-bold-600 text-dark text-base-hover" href="#">{{ $titre }}</a></h5>
|
||||
<p>Au sein d'une résidence récente et sécurisée, dans un cadre calme et verdoyant, appartement T3 de 58 m² situé au 1er étage comprenant</p>
|
||||
<p><a href="#" class="bleu"><span class="fa fa-2x fa-map-marker"></span></a> <strong>{{ $adresse }} {{ $ville }}</strong></p>
|
||||
<ul class="icon-list list-inline m-bottom-0">
|
||||
<li class="list-inline-item"><span class="bleu fa fa-map-o"></span> {{ $nb_chambres+2 }} pièces</li>
|
||||
<li class="list-inline-item"><span class="bleu fa fa-bed"></span> {{ $nb_chambres }} chambres</li>
|
||||
<li class="list-inline-item"><span class="bleu fa fa-expand"></span> <strong>{{ $surface }} m²</strong></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
110
resources/views/Shop/Admin/Products/site/recherche.blade.php
Normal file
110
resources/views/Shop/Admin/Products/site/recherche.blade.php
Normal file
@@ -0,0 +1,110 @@
|
||||
<section style="padding-top: 20px;">
|
||||
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
|
||||
<div class="container-fluid position-absolute" style="z-index: 5; padding-top: 40px;">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-sm-8">
|
||||
<div class="widget padding-lg bg-dark">
|
||||
<h1 class="text-center text-light wow rubberBand">Recherchez un lot</h1>
|
||||
<form action="{{ route('Hestimmo.Lots.disponibles') }}" method="GET" class="form-inline">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="">Type de logement</label>
|
||||
<select name="type_lot_id" class="form-control">
|
||||
<option>Type de lots</option>
|
||||
@foreach($type_lots as $key => $type_lot)
|
||||
<option value="{{$key}}">{{$type_lot}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="">Ville</label>
|
||||
<select name="ville" id="ville" class="form-control" placeholder="Ville"></select>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="number" style="width: 100%;" id="distance" name="distance" data-provide="slider" data-slider-min="0" data-slider-max="40" data-slider-step="5" >
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
Distance : <span id="distanceSliderVal">5</span> km
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 text-center">
|
||||
<label class="col-sm-12">Budget</label>
|
||||
<div class="form-group">
|
||||
<input type="number" style="width: 100%;" id="budget" name="budget" data-provide="slider" data-slider-min="50000" data-slider-max="600000" data-slider-step="10000" >
|
||||
</div>
|
||||
<h3><span id="budgetSliderVal">50 000,00 €</span></h3>
|
||||
<div class="w-100">+/- 5000 €</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for=""></label>
|
||||
<button class="btn btn-primary btn-block">Rechercher</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="carousel-inner">
|
||||
<div class="carousel-item active">
|
||||
<img src="/storage/images/site/slide01.jpg" class="d-block w-100" alt="...">
|
||||
</div>
|
||||
<div class="carousel-item">
|
||||
<img src="/storage/images/site/slide02.jpg" class="d-block w-100" alt="...">
|
||||
</div>
|
||||
<div class="carousel-item">
|
||||
<img src="/storage/images/site/slide03.jpg" class="d-block w-100" alt="...">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@include('boilerplate::load.select2')
|
||||
|
||||
@push('js')
|
||||
<script src="/js/bootstrap-slider.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
|
||||
var mySlider = $("input.slider").slider();
|
||||
|
||||
$("#budget").on("slide", function(slideEvt) {
|
||||
value = new Intl.NumberFormat('fr-FR', { style: 'currency', currency: 'EUR' }).format(slideEvt.value);
|
||||
$("#budgetSliderVal").text(value);
|
||||
});
|
||||
|
||||
$("#distance").on("slide", function(slideEvt) {
|
||||
$("#distanceSliderVal").text(slideEvt.value);
|
||||
});
|
||||
|
||||
$('#ville').select2({
|
||||
ajax: {
|
||||
url: "{{ route('Villes.autocomplete') }}",
|
||||
data: function (params) {
|
||||
var query = {
|
||||
search: params.term
|
||||
}
|
||||
|
||||
// Query parameters will be ?search=[term]
|
||||
return query;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var wew = new Wew({
|
||||
target: '.wow',
|
||||
keyword: 'wow',
|
||||
});
|
||||
wew.init();
|
||||
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@push('css')
|
||||
<link rel="stylesheet" href="/css/bootstrap-slider.min.css">
|
||||
@endpush
|
||||
22
resources/views/Shop/Admin/Sections/create.blade.php
Normal file
22
resources/views/Shop/Admin/Sections/create.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
@extends('boilerplate::layout.index', [
|
||||
'title' => __('Shop.sections.title'),
|
||||
'subtitle' => __('Shop.sections.add'),
|
||||
'breadcrumb' => [__('Shop.sections.title'), __('Shop.sections.add')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Sections.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 text-right">
|
||||
@include('components.button-save')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('Shop.Admin.Sections.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
39
resources/views/Shop/Admin/Sections/edit.blade.php
Normal file
39
resources/views/Shop/Admin/Sections/edit.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Lots',
|
||||
'subtitle' => 'Edition d\'un lot',
|
||||
'breadcrumb' => ['Lots']
|
||||
])
|
||||
|
||||
@include('boilerplate::load.icheck')
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@prepend('js')
|
||||
@include('components.js', ['js' => '/js/main.min.js'])
|
||||
@endprepend
|
||||
|
||||
@push('css')
|
||||
@include('components.css', ['css' => '/css/main.min.css'])
|
||||
@endpush
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Hestimmo.Lots.update', 'id' => 'lot-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Hestimmo.Lots.index") }}" class="btn btn-default">
|
||||
{{ __('lots.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.button-save')
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
@include('Hestimmo.modules.Lot.lot_form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
38
resources/views/Shop/Admin/Sections/form.blade.php
Normal file
38
resources/views/Shop/Admin/Sections/form.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => (isset($section['name'])) ? $section['name'] : null, 'required' => true])
|
||||
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'id_name' => 'description', 'value' => (isset($section['description'])) ? $section['description'] : null, 'required' => true])
|
||||
|
||||
{{ Form::label('description', 'Rubrique parente') }}
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="row">
|
||||
<div class="col-md-12 row-new-lot-photo row-lot-photo mt-3">
|
||||
|
||||
<!--
|
||||
<p>
|
||||
<button type="button" class="btn btn-danger delete-new-lot-photo-btn"><i class="fa fa-minus-circle"></i></button>
|
||||
Photo <span class="row-photo-number"></span>
|
||||
</p>
|
||||
-->
|
||||
|
||||
<input name="lot_photos[][file]" type="file" class="file" data-show-upload="false" data-show-caption="true" data-msg-placeholder="Choisissez une photo">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$('#description').tinymce({});
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
46
resources/views/Shop/Admin/Sections/list.blade.php
Normal file
46
resources/views/Shop/Admin/Sections/list.blade.php
Normal file
@@ -0,0 +1,46 @@
|
||||
@extends('boilerplate::layout.index', [
|
||||
'title' => __('Shop.sections.title'),
|
||||
'breadcrumb' => [__('Shop.sections.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<div class="box-body">
|
||||
<table class="table table-striped table-hover va-middle" id="section-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<input type="text" class="form-control-sm" style="max-width: 100px;">
|
||||
</th>
|
||||
<th>
|
||||
</th>
|
||||
<th class="text-right">
|
||||
<a href="{{ route('Shop.Admin.Sections.create') }}" class="btn btn-sm btn-success">{{ __('Shop.sections.add') }} <i class="fa fa-plus"></i></a>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Nb produits</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@prepend('js')
|
||||
@include('components.js.ie11')
|
||||
@include('components.js', ['js' => '/js/laroute.js'])
|
||||
@include('components.js', ['js' => '/js/main.min.js'])
|
||||
@include('components.js', ['js' => '/js/datatables.min.js'])
|
||||
@endprepend
|
||||
|
||||
@push('js')
|
||||
@include('components.js', ['js' => '/js/section_index.min.js'])
|
||||
@endpush
|
||||
|
||||
@push('css')
|
||||
@include('components.css', ['css' => '/css/main.min.css'])
|
||||
@include('components.css', ['css' => '/css/datatables.min.css'])
|
||||
@endpush
|
||||
@@ -0,0 +1,35 @@
|
||||
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
||||
<!-- Indicators -->
|
||||
<ol class="carousel-indicators">
|
||||
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
||||
</ol>
|
||||
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner" role="listbox">
|
||||
<div class="item active">
|
||||
<img src="/storage/images/residences/139.jpg" alt="..." class="img-responsive">
|
||||
<div class="carousel-caption">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="/storage/images/residences/134.jpg" alt="..." class="img-responsive">
|
||||
<div class="carousel-caption">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
...
|
||||
</div>
|
||||
|
||||
<!-- Controls -->
|
||||
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Précédent</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Suivant</span>
|
||||
</a>
|
||||
</div>
|
||||
178
resources/views/Shop/Admin/Sections/partials/detail.blade.php
Normal file
178
resources/views/Shop/Admin/Sections/partials/detail.blade.php
Normal file
@@ -0,0 +1,178 @@
|
||||
<div class="row" style="display: flex;">
|
||||
<div class="col-xs-12 col-md-6 text-center">
|
||||
@include('components.carousel', ['id_name' => 'detail_lot', 'with_modal' => true, 'id' => $id ])
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="text-right">
|
||||
{{ __('lots.reference') }} : {{ $ref }}
|
||||
</div>
|
||||
|
||||
<h3 style="margin-top: 10px;">{{ $type_lot['nom'] }} - {{ $residence['nom'] }}</h3>
|
||||
<span class="badge">
|
||||
Dispositif {{ $dispositifs[0]['type_dispositif']['nom'] }}
|
||||
</span>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
{{ $batiment['adresse'] }} {{ $batiment['code_postal'] }} {{ $batiment['ville'] }}<br/>
|
||||
{{ $batiment['complement_adresse'] }} - {{ $etage }}<br/><br/>
|
||||
|
||||
<div class="m-bottom-15">
|
||||
Surface : {{ $surface }} m2<br/>
|
||||
|
||||
@if ($surface_balcon) Balcon/Terrasse : {{ $surface_balcon }} m2 <br/>@endif
|
||||
@if ($surface_cave) Cave : {{ $surface_cave }} m2 <br/>@endif
|
||||
@if ($surface_grenier) Grenier : {{ $surface_grenier }} m2 <br/>@endif
|
||||
@if ($surface_soussol) Sous-sol : {{ $surface_soussol }} m2 <br/>@endif
|
||||
@if ($surface_terrain) Terrain : {{ $surface_terrain }} m2 <br/>@endif
|
||||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
<h2><strong>{{ App\Repositories\Core\Number::price($prix_total) }} €</strong></h2>
|
||||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||
<button type="button" data-id="{{ $id }}" data-toggle='modal' data-target='#lot-option' class="btn btn-success btn btn-lot-option" >
|
||||
<i class='fa fa-check-square-o fa-fw'></i>
|
||||
Optionner
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" style="margin-top: 20px;">
|
||||
<div class="col-md-12">
|
||||
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" role="tab" id="headingOne">
|
||||
<h4 class="panel-title">
|
||||
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
||||
<i class="fa fa-arrow-circle-right"></i> Détails des prix
|
||||
</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-condensed">
|
||||
<thead class="thead-bgcolor">
|
||||
<tr>
|
||||
<th>Prix acquisition</th>
|
||||
<th>Montant travaux</th>
|
||||
<th>Prix total</th>
|
||||
<th>Prix cave</th>
|
||||
<th>Prix stationnement</th>
|
||||
<th>Package</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_achat) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_travaux) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_total) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_cave) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_stationnement) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($package) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-condensed" style="width: 100%;">
|
||||
<thead class="thead-bgcolor">
|
||||
<tr>
|
||||
<th>Honoraires Agence</th>
|
||||
<th>Frais notaire</th>
|
||||
<th>Frais bancaire</th>
|
||||
<th>Courtage bancaire</th>
|
||||
<th>Interêts intercalaires</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($honoraires_agence) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($frais_notaire) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($frais_bancaire) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($courtage_bancaire) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($interets_intercalaires) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-condensed" style="width: 100%;">
|
||||
<thead class="thead-bgcolor">
|
||||
<tr>
|
||||
<th>Garantie revente</th>
|
||||
<th>Loyer logement</th>
|
||||
<th>Loyer stationnement</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($garantie_revente) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($loyer_logement) }}</td>
|
||||
<td class="text-right">{{ App\Repositories\Core\Number::price($loyer_stationnement) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" role="tab" id="headingTwo">
|
||||
<h4 class="panel-title">
|
||||
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
||||
<i class="fa fa-arrow-circle-right"></i> Liste des documents disponibles
|
||||
</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-condensed" style="width: 100%;">
|
||||
<thead class="thead-bgcolor">
|
||||
<th>Type</th>
|
||||
<th>Titre</th>
|
||||
<th>Format</th>
|
||||
<th>Poids</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($documents as $document)
|
||||
<tr>
|
||||
<td>{{ $document['type_document']['nom'] }}</td>
|
||||
<td>{{ $document['title'] }}</td>
|
||||
<td>{{ $document['filetype'] }}</td>
|
||||
<td class="text-right">{{ Coduo\PHPHumanizer\NumberHumanizer::binarySuffix($document['filesize']) }}</td>
|
||||
<td><a class='btn btn-xs btn-primary' href="{{ route('Hestimmo.LotDocuments.download', $document['id']) }}"><i class='fa fa-eye fa-fw'></i></a></i></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
handle_option();
|
||||
|
||||
$('.btn-lot-option').on('click', function(e) {
|
||||
var id = $(this).data('id');
|
||||
$('#modal-option-content').load(laroute.route('Hestimmo.Options.getOptionOnLot', {lot_id : id}));
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,28 @@
|
||||
@if (isset($documents))
|
||||
@include('Hestimmo.modules.LotDocument.partials.list-documents')
|
||||
@endif
|
||||
|
||||
@include('Hestimmo.modules.LotDocument.partials.block_document_new')
|
||||
<div id="append_lot_document" class="row m-top-8"> </div>
|
||||
|
||||
<button type="button" class="btn btn-primary add-new-lot-document m-top-8">Ajouter un document <i class="fa fa-plus"></i></button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function append_lot_document() {
|
||||
$("#append_lot_document .file").fileinput();
|
||||
}
|
||||
|
||||
$("#append_lot_document").appender({
|
||||
rowSection: '.row-new-lot-document',
|
||||
type: '.row-lot-document',
|
||||
addBtn: '.add-new-lot-document',
|
||||
appendEffect: 'slide',
|
||||
addClass: 'animated bounceInLeft',
|
||||
rowNumber: '.row-lot-document-number',
|
||||
deleteBtn: '.delete-new-lot-document-btn',
|
||||
callback: append_lot_document,
|
||||
hideSection: true
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,46 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label>Réserver ce lot</label>
|
||||
@include('components.checkbox', ['name' => 'reserve', 'id' => 'reserve', 'class' => 'icheck', 'val' => 1, 'value' => (isset($reserve)) ? $reserve : null])
|
||||
<br/>
|
||||
<div id="partenaires" @if (!isset($reserve) || !$reserve) style="display: none;" @endif>
|
||||
@foreach($partenaires as $key => $item)
|
||||
@include('components.checkbox', ['name' => 'partenaires[]', 'class' => 'icheck', 'val' => $key, 'value' => in_array($key, $lot_partenaires)])
|
||||
<label>{{ $item }}</label>
|
||||
<br/>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Promouvoir ce lot</label>
|
||||
@include('components.checkbox', ['name' => 'promo', 'class' => 'icheck', 'val' => 1, 'value' => (isset($promo)) ? $promo : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$(document).ready(function() {
|
||||
$('#reserve').on('ifChecked', function(event) {
|
||||
$('#partenaires').show();
|
||||
});
|
||||
|
||||
$('#reserve').on('ifUnchecked', function(event) {
|
||||
$('#partenaires').hide();
|
||||
@if (isset($id))
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{!! route('Hestimmo.LotPartenaires.resetReserve') !!}",
|
||||
data: {
|
||||
id: {{ $id }},
|
||||
},
|
||||
});
|
||||
@endif
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
@if (isset($photos))
|
||||
@include('Hestimmo.modules.LotPhoto.partials.list-photos')
|
||||
@endif
|
||||
|
||||
@include('Hestimmo.modules.LotPhoto.partials.block_photo_new')
|
||||
<div id="append_lot_photo" class="row m-top-8"> </div>
|
||||
|
||||
<button type="button" class="btn btn-primary add-new-lot-photo m-top-8">Ajouter une photo <i class="fa fa-plus"></i></button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function append_lot_photo() {
|
||||
$("#append_lot_photo .file").fileinput();
|
||||
}
|
||||
|
||||
$("#append_lot_photo").appender({
|
||||
rowSection: '.row-new-lot-photo',
|
||||
type: '.row-lot-photo',
|
||||
addBtn: '.add-new-lot-photo',
|
||||
appendEffect: 'slide',
|
||||
addClass: 'animated bounceInLeft',
|
||||
rowNumber: '.row-lot-photo-number',
|
||||
deleteBtn: '.delete-new-lot-photo-btn',
|
||||
callback: append_lot_photo,
|
||||
hideSection: true
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,269 @@
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6 col-lg-3">
|
||||
{{ Form::label('ref', 'Numéro de lot') }}
|
||||
@include('components.input', ['name' => 'ref', 'value' => (isset($ref)) ? $ref : null])
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-lg-3">
|
||||
<div class="form-group {{ $errors->has('type_dispositifs') ? 'has-error' : '' }}">
|
||||
{{ Form::label('type_dispositifs', 'Type de dispositifs') }}
|
||||
@include('components.select', ['name' => 'type_dispositif_id', 'list' => $type_dispositifs, 'value' => (isset($type_dispositif_id)) ? $type_dispositif_id : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-lg-2">
|
||||
<div class="form-group {{ $errors->has('type_lots') ? 'has-error' : '' }}">
|
||||
{{ Form::label('type_lots', 'Type de lot') }}
|
||||
@include('components.select', ['name' => 'type_lot_id', 'list' => $type_lots, 'value' => (isset($type_lot_id)) ? $type_lot_id : null ])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('nb_etages', 'Agencement') }}
|
||||
@include('components.select', ['name' => 'nb_etages', 'list' => [1 => 'Aucun étage', 2 => 'Duplex', 3=> 'Triplex'], 'value' => (isset($nb_etages)) ? $nb_etages : 1])
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4 col-lg-2">
|
||||
<div class="form-group {{ $errors->has('statut') ? 'has-error' : '' }}">
|
||||
{{ Form::label('statut_id', 'Statut') }}
|
||||
@include('components.select', ['name' => 'statut_id', 'list' => $type_lot_statuts, 'value' => (isset($statut_id)) ? $statut_id : 3])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12 col-lg-6">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
<textarea name="description" class="form-control editor">@if (isset($description)){{ $description }}@endif</textarea>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<div class="form-group {{ $errors->has('residence_id') ? 'has-error' : '' }}">
|
||||
{{ Form::label('residence_id', 'Résidence') }}
|
||||
@include('components.select', ['name' => 'residence_id', 'id_name' => 'residence_id', 'list' => $residences, 'value' => (isset($residence_id)) ? $residence_id : null])
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-4">
|
||||
<div class="form-group {{ $errors->has('batiment_id') ? 'has-error' : '' }}">
|
||||
{{ Form::label('residence_batiment_id', 'Batiment') }}
|
||||
@include('components.select', ['name' => 'residence_batiment_id', 'id_name' => 'residence_batiment_id', 'list' => (isset($batiments)) ? $batiments : null, 'value' => (isset($residence_batiment_id)) ? $residence_batiment_id : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-lg-2">
|
||||
{{ Form::label('position_etage', 'Etage') }}
|
||||
@include('components.select', ['name' => 'position_etage', 'id_name' => 'position_etage', 'list' => (isset($etages)) ? $etages : null, 'value' => (isset($position_etage)) ? $position_etage : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
{{ Form::label('adresse', 'Adresse') }}
|
||||
@include('components.input', ['name' => 'adresse', 'value' => (isset($adresse)) ? $adresse : null])
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
{{ Form::label('complement_adresse', 'Complément d\'adresse') }}
|
||||
@include('components.input', ['name' => 'complement_adresse', 'value' => (isset($complement_adresse)) ? $complement_adresse : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row m-top-8">
|
||||
<div class="col-md-4">
|
||||
{{ Form::label('code_postal', 'Code postal') }}
|
||||
@include('components.input', ['name' => 'code_postal', 'value' => (isset($code_postal)) ? $code_postal : null])
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('ville', 'Ville') }}
|
||||
@include('components.city', ['name' => 'ville', 'list' => (isset($ville)) ? [$ville_id => $ville] : [], 'value' => (isset($ville_id)) ? $ville_id : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface', 'Surface') }}
|
||||
@include('components.input', ['name' => 'surface', 'value' => (isset($surface)) ? $surface : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_terrain', 'Terrain') }}
|
||||
@include('components.input', ['name' => 'surface_terrain', 'value' => (isset($surface_terrain)) ? $surface_terrain : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_balcon', 'Balcon / Terrasse') }}
|
||||
@include('components.input', ['name' => 'surface_balcon', 'value' => (isset($surface_balcon)) ? $surface_balcon : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_cave', 'Cave') }}
|
||||
@include('components.input', ['name' => 'surface_cave', 'value' => (isset($surface_cave)) ? $surface_cave : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_soussol', 'Sous-sol') }}
|
||||
@include('components.input', ['name' => 'surface_soussol', 'value' => (isset($surface_soussol)) ? $surface_soussol : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('surface_grenier', 'Grenier') }}
|
||||
@include('components.input', ['name' => 'surface_grenier', 'value' => (isset($surface_grenier)) ? $surface_grenier : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row m-top-8">
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_achat', 'Prix acquisition') }}
|
||||
@include('components.money', ['name' => 'prix_achat', 'value' => (isset($prix_achat)) ? $prix_achat : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_travaux', 'Montant travaux') }}
|
||||
@include('components.money', ['name' => 'prix_travaux', 'value' => (isset($prix_travaux)) ? $prix_travaux : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_total', 'Prix total') }}
|
||||
@include('components.money', ['name' => 'prix_total', 'value' => (isset($prix_total)) ? $prix_total : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_cave', 'Prix cave') }}
|
||||
@include('components.money', ['name' => 'prix_cave', 'value' => (isset($prix_cave)) ? $prix_cave : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('prix_stationnement', 'Prix stationnement') }}
|
||||
@include('components.money', ['name' => 'prix_stationnement', 'value' => (isset($prix_stationnement)) ? $prix_stationnement : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('package', 'Package') }}
|
||||
@include('components.money', ['name' => 'package', 'value' => (isset($package)) ? $package : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row m-top-8">
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('honoraires_agence', 'Honoraires Agence') }}
|
||||
@include('components.money', ['name' => 'honoraires_agence', 'value' => (isset($honoraires_agence)) ? $honoraires_agence : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('frais_notaire', 'Frais notaire') }}
|
||||
@include('components.money', ['name' => 'frais_notaire', 'value' => (isset($frais_notaire)) ? $frais_notaire : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('frais_bancaire', 'Garantie bancaire') }}
|
||||
@include('components.money', ['name' => 'frais_bancaire', 'value' => (isset($frais_bancaire)) ? $frais_bancaire : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('courtage_bancaire', 'Courtage bancaire') }}
|
||||
@include('components.money', ['name' => 'courtage_bancaire', 'value' => (isset($courtage_bancaire)) ? $courtage_bancaire : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('interets_intercalaires', 'Interets intercalaires') }}
|
||||
@include('components.money', ['name' => 'interets_intercalaires', 'value' => (isset($interets_intercalaires)) ? $interets_intercalaires : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row m-top-8">
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('garantie_revente', 'Garantie revente') }}
|
||||
@include('components.money', ['name' => 'garantie_revente', 'value' => (isset($garantie_revente)) ? $garantie_revente : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('loyer_logement', 'Loyer logement') }}
|
||||
@include('components.money', ['name' => 'loyer_logement', 'value' => (isset($loyer_logement)) ? $loyer_logement : null])
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-2">
|
||||
{{ Form::label('loyer_stationnement', 'Loyer stationnement') }}
|
||||
@include('components.money', ['name' => 'loyer_stationnement', 'value' => (isset($loyer_stationnement)) ? $loyer_stationnement : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function setByResidence(id) {
|
||||
$.ajax({
|
||||
url : laroute.route("Hestimmo.ResidenceBatiments.getByResidence"),
|
||||
data : {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"id": id
|
||||
},
|
||||
method : 'POST',
|
||||
success : function(resp){
|
||||
if (resp.success) {
|
||||
setOptions('#residence_batiment_id',resp.batiments);
|
||||
var batiment_id = $('#residence_batiment_id').val();
|
||||
setNbEtages(batiment_id);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setNbEtages(id) {
|
||||
$.ajax({
|
||||
url : id ? laroute.route("Hestimmo.ResidenceBatiments.getNbEtages") : laroute.route("Hestimmo.Lots.getNbEtages"),
|
||||
data : {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"id": id
|
||||
},
|
||||
method : 'POST',
|
||||
success : function(resp){
|
||||
if (resp.success) {
|
||||
setOptions('#position_etage',resp.etages);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setAdresse(id) {
|
||||
$.ajax({
|
||||
url : laroute.route("Hestimmo.ResidenceBatiments.getAdresse"),
|
||||
data : {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"id": id
|
||||
},
|
||||
method : 'POST',
|
||||
success : function(resp){
|
||||
if (resp.success) {
|
||||
$('#adresse').val(resp.adresse);
|
||||
$('#complement_adresse').val(resp.complement_adresse);
|
||||
$('#code_postal').val(resp.code_postal);
|
||||
$('#ville').val(resp.ville);
|
||||
$('#ville_id').val(resp.ville_id);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$('#residence_id').change(function() {
|
||||
var id = $('#residence_id').val();
|
||||
setByResidence(id);
|
||||
});
|
||||
|
||||
$('#residence_batiment_id').change(function() {
|
||||
var id = $('#residence_batiment_id').val();
|
||||
setNbEtages(id);
|
||||
setAdresse(id);
|
||||
});
|
||||
|
||||
|
||||
var residence_id = $('#residence_id').val();
|
||||
if (residence_id) {
|
||||
setByResidence(residence_id);
|
||||
}
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,92 @@
|
||||
|
||||
<table class="table table-striped table-hover va-middle" id="lots-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Numéro</th>
|
||||
<th>Type</th>
|
||||
<th>Surface</th>
|
||||
<th>Prix total</th>
|
||||
<th>Package</th>
|
||||
<th>Dont F. Notaire</th>
|
||||
<th>Loyer logement</th>
|
||||
<th style="min-width: 82px; max-width: 82px;"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function () {
|
||||
var table = $('#lots-table').DataTable({
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
ajax: {
|
||||
"url": '{!! route('Hestimmo.Lots.getTables') !!}',
|
||||
type: "POST",
|
||||
data: {
|
||||
'residence_id': $('#id').val(),
|
||||
},
|
||||
},
|
||||
sDom: "<'row dt-toolbar-header'<'col-md-4 tool'B><'col-md-4'<'toolbar'>><'col-md-4 text-right add'>r>"+
|
||||
"t"+
|
||||
"<'row dt-toolbar-footer'<'col-md-6'i><'col-md-6'p>>",
|
||||
columns: [
|
||||
{ data: 'ref', name: 'ref' },
|
||||
{ data: 'type_lot.nom', name: 'type_lot.nom' },
|
||||
{ data: 'surface', name: 'surface' },
|
||||
{ data: 'prix_total', name: 'prix_total' },
|
||||
{ data: 'package', name: 'package' },
|
||||
{ data: 'frais_notaire', name: 'frais_notaire' },
|
||||
{ data: 'loyer_logement', name: 'loyer_logement' },
|
||||
{
|
||||
data: "id",
|
||||
name: "action",
|
||||
orderable: false,
|
||||
searchable: false,
|
||||
render: function (data, type, row) {
|
||||
tpl = " <a data-id=" + data + " class='btn btn-xs btn-primary' href='"+ laroute.route('Hestimmo.Lots.edit', { id : data}) +"'><i class='fa fa-edit fa-fw'></i></a>";
|
||||
tpl += " <a data-id=" + data + " class='btn btn-xs btn-danger btn-lot-delete destroy' href='#''><i class='fa fa-times fa-fw'></i></a>";
|
||||
return tpl;
|
||||
}
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
table.on( 'draw', function () {
|
||||
tpl = '<a href="#" id="btn-lot-add" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> Création d\'un lot</a>';
|
||||
$('div.col-md-4.text-right.add').html(tpl);
|
||||
|
||||
var residence_id = $('#id').val();
|
||||
$('#btn-lot-add').click(function() {
|
||||
if (residence_id) {
|
||||
url = laroute.route('Hestimmo.Lots.create', { residence_id : residence_id });
|
||||
window.location = url;
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
$('#lots-table').on('click', '.destroy', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
var href = $(this).attr('href');
|
||||
var line = $(this).closest('tr');
|
||||
|
||||
bootbox.confirm("{{ __('boilerplate::role.list.confirmdelete') }}", function (result) {
|
||||
if (result === false) return;
|
||||
|
||||
$.ajax({
|
||||
url: href,
|
||||
method: 'delete',
|
||||
headers: {'X-CSRF-TOKEN': '{{ csrf_token() }}'},
|
||||
success: function(){
|
||||
line.remove();
|
||||
growl("{{ __('boilerplate::role.list.deletesuccess') }}", 'success');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,73 @@
|
||||
<div class="col-lg-4 col-md-4">
|
||||
<div class="property bg-light-2 m-bottom-30 box-shadow-1 box-shadow-2-hover border-1 border-solid border-light">
|
||||
<div class="property-media overlay-wrapper">
|
||||
@if (isset($lot['residence']['photos'][0]))
|
||||
<img class="img-responsive wow fadeIn" data-wow-offset="100" src="{{ \App\Repositories\Hestimmo\ResidencePhotos::getPhotoSrc($lot['residence']['photos'][0]) }}" alt="Lot">
|
||||
@else
|
||||
<img src="/img/photo_notfound.jpg" class="img-responsive img-rounded">
|
||||
@endif
|
||||
<div class="media-data">
|
||||
<div class="position-top">
|
||||
<div class="text-white text-size-24 pull-right">
|
||||
<!--
|
||||
<a class="text-white text-base-hover" href="#">
|
||||
<i class="fa fa-heart-o"></i>
|
||||
</a>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="position-bottom">
|
||||
<div class="badge badge-base text-white pull-left m-right-8 p-top-8 p-right-12 p-bottom-8 p-left-12 rounded-0">
|
||||
@if (isset($lot['dispositifs'][0]))
|
||||
{{ $lot['dispositifs'][0]['type_dispositif']['nom'] }}
|
||||
@endif
|
||||
</div>
|
||||
<div class="text-white text-size-18 pull-right">
|
||||
<i class="fa fa-camera"></i>
|
||||
{{ $lot['photos_count'] }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="overlay bg-bg opacity-9"></div>
|
||||
</div>
|
||||
<div class="property-section p-left-15 p-right-15">
|
||||
<div class="m-top-20">
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<h2>
|
||||
{{ $lot['type_lot']['nom'] }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<h2 class="text-base text-bold-700 bleu wow heartBeat" data-wow-offset="100">
|
||||
{{ App\Repositories\Core\Number::price($lot['prix_total']) }} €
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
@if (!empty($lot['description']))
|
||||
{!! $lot['description'] !!}
|
||||
@else
|
||||
{!! $lot['residence']['description'] !!}
|
||||
@endif
|
||||
<p>
|
||||
<a href="#" class="bleu">
|
||||
<span class="fa fa-2x fa-map-marker"></span>
|
||||
</a>
|
||||
<strong>{{ $lot['batiment']['adresse'] }} {{ $lot['batiment']['code_postal'] }} {{ $lot['batiment']['ville'] }}</strong>
|
||||
</p>
|
||||
<ul class="icon-list list-inline m-bottom-0">
|
||||
<li class="list-inline-item"><span class="bleu fa fa-map-o"></span> {{ $lot['type_lot']['nb_pieces'] }} pièces</li>
|
||||
<li class="list-inline-item"><span class="bleu fa fa-bed"></span> {{ $lot['type_lot']['nb_chambres'] }} @if ($lot['type_lot']['nb_chambres'] > 1) chambres @else chambre @endif</li>
|
||||
<li class="list-inline-item"><span class="bleu fa fa-expand"></span> <strong>{{ $lot['surface'] }} m²</strong></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<button type="button" data-id="{{ $lot['id'] }}" data-toggle='modal' data-target='#lot-detail' class="btn btn-primary btn-sm btn-lot-detail" style="margin: 10px 10px 10px 0;">
|
||||
<i class="fa fa-eye"></i> Voir le détail
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="modal fade" id="lot-detail" tabindex="-1" role="dialog" aria-labelledby="lot-detail">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel">Détail du lot</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="modal-detail-content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
<div class="modal fade" id="modal-edit-document" tabindex="-1" role="dialog" aria-labelledby="lot-option">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel">Modifier un document</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="modal-document-content">
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||
<button type="button" class="btn btn-primary">Enregistrer</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
{{ Form::open(['route' => 'Hestimmo.Options.store', 'id' => 'option-form', 'autocomplete' => 'off']) }}
|
||||
<div class="modal-box">
|
||||
<div class="modal fade" id="lot-option" tabindex="-1" role="dialog" aria-labelledby="lot-option">
|
||||
<div class="modal-dialog modal-md" role="document">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<div class="modal-body">
|
||||
<div class="icon">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
<h4 class="title">- Option -</h4>
|
||||
<div id="modal-option-content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function handle_option() {
|
||||
$('.save-option').off('click').click(function() {
|
||||
$('.save-option').attr("disabled", true);
|
||||
var data = $("#option-form").serialize();
|
||||
$.ajax({
|
||||
type:'POST',
|
||||
url: "{!! route('Hestimmo.Options.store') !!}",
|
||||
data: data,
|
||||
success:function(data) {
|
||||
growl("{{ __('options.successadd') }}", 'success');
|
||||
$('#lot-option').modal('hide');
|
||||
$('#lot-detail').modal('hide');
|
||||
window.location = laroute.route("Hestimmo.Lots.disponibles");
|
||||
}
|
||||
}).fail(function() {
|
||||
alert( "Erreur lors de l'envoi du formulaire." );
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,95 @@
|
||||
|
||||
<div class="box">
|
||||
<div class="box-body">
|
||||
|
||||
<div class="col-xs-12 col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
<select name="type_dispositif_id" class="form-control">
|
||||
<option>Dispositif</option>
|
||||
@foreach($type_dispositifs as $key => $type_dispositif)
|
||||
<option value="{{$key}}">{{$type_dispositif}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<select name="type_lot_id" class="form-control">
|
||||
<option>Type de lots</option>
|
||||
@foreach($type_lots as $key => $type_lot)
|
||||
<option value="{{$key}}">{{$type_lot}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
@include('components.city', ['name' => 'ville'])
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="number" class="w-100" id="distance" name="distance" data-provide="slider" data-slider-min="0" data-slider-max="40" data-slider-step="5">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
Distance : <span id="distanceSliderVal">5</span> km
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-8">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-12">Budget</label>
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group">
|
||||
<input type="number" style="width: 100%;" id="budget" name="budget" data-provide="slider" data-slider-min="{{ $min }}" data-slider-max="{{ $max }}" data-slider-step="10000" data-slider-value="[{{ $min }},{{ $max }}]">
|
||||
</div>
|
||||
<div class="small-box bg-red">
|
||||
<div class="inner">
|
||||
<h3 id="budgetSliderVal">{{ App\Repositories\Core\Number::price($min) }} - {{ App\Repositories\Core\Number::price($max) }}</h3>
|
||||
<p>Montant +/- 10 000 €</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-eur"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row text-center">
|
||||
<button type="submit" class="btn btn-info">Rechercher</button>
|
||||
<p></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
/*
|
||||
$("input.slider").slider({
|
||||
tooltip: 'always',
|
||||
formatter: function(value) {
|
||||
console.log(value);
|
||||
return value.toString().replace(',',' - ');
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
$("#budget").on("slide", function(slideEvt) {
|
||||
var min = numeral(slideEvt.value[0]).format('0,0');
|
||||
var max = numeral(slideEvt.value[1]).format('0,0');
|
||||
var txt = min + ' - ' + max;
|
||||
$("#budgetSliderVal").text(txt);
|
||||
});
|
||||
|
||||
$("#distance").on("slide", function(slideEvt) {
|
||||
$("#distanceSliderVal").text(slideEvt.value);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
36
resources/views/Shop/Admin/Sections/show.blade.php
Normal file
36
resources/views/Shop/Admin/Sections/show.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<form action="{{ route('Shop.Products') }}" method="GET">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="col-md-6 text-right">
|
||||
<h2>{{ $prix_total }} €</h2>
|
||||
<h4>{{ $residence['type_produit']['name'] }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('Hestimmo.modules.Lot.partials.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Shop/Admin/Species/create.blade.php
Normal file
16
resources/views/Shop/Admin/Species/create.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.species.title'),
|
||||
'subtitle' => __('Shop.species.add'),
|
||||
'breadcrumb' => [__('Shop.species.title'), __('Shop.species.add')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.species.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
@include('Shop.Admin.species.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Shop/Admin/Species/edit.blade.php
Normal file
16
resources/views/Shop/Admin/Species/edit.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.species.title'),
|
||||
'subtitle' => __('Shop.species.edit'),
|
||||
'breadcrumb' => ['Familles']
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Species.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $specie['id'] }}">
|
||||
|
||||
@include('Shop.Admin.Species.form')
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
28
resources/views/Shop/Admin/Species/form.blade.php
Normal file
28
resources/views/Shop/Admin/Species/form.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => isset($name) ? $name : null, 'required' => true])
|
||||
|
||||
{{ Form::label('alias', 'Alias') }}
|
||||
@include('components.input', ['name' => 'alias', 'value' => isset($alias) ? $alias : null, 'required' => true])
|
||||
|
||||
{{ Form::label('latin', 'Nom latin') }}
|
||||
@include('components.input', ['name' => 'latin', 'value' => isset($latin) ? $latin : null, 'required' => true])
|
||||
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($description) ? $description : null, 'class' => 'editor', 'required' => false])
|
||||
|
||||
{{ Form::label('genre', 'Genre') }}
|
||||
@include('components.select', ['name' => 'genre_id', 'list' => $genres, 'value' => isset($genre_id) ? $genre_id : null, 'required' => false])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="float-right mt-3">
|
||||
@include('components.button-save')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
22
resources/views/Shop/Admin/Species/list.blade.php
Normal file
22
resources/views/Shop/Admin/Species/list.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.species.title'),
|
||||
'subtitle' => __('Shop.species.list'),
|
||||
'breadcrumb' => [__('Shop.species.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row pb-3">
|
||||
<div class="col text-right">
|
||||
<a href="{{ route('Shop.Admin.Species.create') }}" class="btn btn-sm btn-success">{{ __('Shop.species.add') }} <i class="fa fa-plus"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{$dataTable->table()}}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@include('components.js.datatable', ['route' => '/Shop/Admin/Species', 'model' => 'species'])
|
||||
@endpush
|
||||
|
||||
30
resources/views/Shop/Admin/Species/show.blade.php
Normal file
30
resources/views/Shop/Admin/Species/show.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('components.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Shop/Admin/Varieties/create.blade.php
Normal file
16
resources/views/Shop/Admin/Varieties/create.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.varieties.title'),
|
||||
'subtitle' => __('Shop.varieties.add'),
|
||||
'breadcrumb' => [__('Shop.varieties.title'), __('Shop.varieties.add')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Varieties.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
@include('Shop.Admin.Varieties.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Shop/Admin/Varieties/edit.blade.php
Normal file
16
resources/views/Shop/Admin/Varieties/edit.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.varieties.title'),
|
||||
'subtitle' => __('Shop.varieties.edit'),
|
||||
'breadcrumb' => ['Familles']
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Varieties.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $specie['id'] }}">
|
||||
|
||||
@include('Shop.Admin.Varieties.form')
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
28
resources/views/Shop/Admin/Varieties/form.blade.php
Normal file
28
resources/views/Shop/Admin/Varieties/form.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => isset($name) ? $name : null, 'required' => true])
|
||||
|
||||
{{ Form::label('alias', 'Alias') }}
|
||||
@include('components.input', ['name' => 'alias', 'value' => isset($alias) ? $alias : null, 'required' => true])
|
||||
|
||||
{{ Form::label('latin', 'Nom latin') }}
|
||||
@include('components.input', ['name' => 'latin', 'value' => isset($latin) ? $latin : null, 'required' => true])
|
||||
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($description) ? $description : null, 'class' => 'editor', 'required' => false])
|
||||
|
||||
{{ Form::label('genre', 'Genre') }}
|
||||
@include('components.select', ['name' => 'genre_id', 'list' => $genres, 'value' => isset($genre_id) ? $genre_id : null, 'required' => false])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="float-right mt-3">
|
||||
@include('components.button-save')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
22
resources/views/Shop/Admin/Varieties/list.blade.php
Normal file
22
resources/views/Shop/Admin/Varieties/list.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.varieties.title'),
|
||||
'subtitle' => __('Shop.varieties.list'),
|
||||
'breadcrumb' => [__('Shop.varieties.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row pb-3">
|
||||
<div class="col text-right">
|
||||
<a href="{{ route('Shop.Admin.Varieties.create') }}" class="btn btn-sm btn-success">{{ __('Shop.varieties.add') }} <i class="fa fa-plus"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{$dataTable->table()}}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@include('components.js.datatable', ['route' => '/Shop/Admin/Varieties', 'model' => 'varieties'])
|
||||
@endpush
|
||||
|
||||
30
resources/views/Shop/Admin/Varieties/show.blade.php
Normal file
30
resources/views/Shop/Admin/Varieties/show.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('components.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user