rename models and associates, isolate botanic with shop

This commit is contained in:
Ludovic CANDELLIER
2020-04-21 00:09:32 +02:00
parent c80b0f1edf
commit 4ad1f18310
234 changed files with 13899 additions and 3230 deletions

View File

@@ -0,0 +1,28 @@
@extends('layout.index', [
'title' => __('articles.title'),
'subtitle' => __('articles.create.title'),
'breadcrumb' => [__('articles.title'), __('articles.create.title')]
])
@include('boilerplate::load.fileinput')
@section('content')
{{ Form::open(['route' => 'Shop.Admin.Articles.store', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
<div class="row">
<div class="col-sm-12 mbl">
<a href="{{ route("Shop.Admin.Articles.index") }}" class="btn btn-default">
{{ __('articles.list.title') }}
</a>
<span class="btn-group pull-right">
@include('components.button-save')
</span>
</div>
</div>
@include('Shop.Admin.Articles.form')
</form>
@endsection

View File

@@ -0,0 +1,29 @@
@extends('layout.index', [
'title' => 'Articles',
'subtitle' => 'Edition d\'un article',
'breadcrumb' => ['Articles']
])
@include('boilerplate::load.fileinput')
@section('content')
{{ Form::open(['route' => 'Shop.Admin.Articles.update', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
<div class="row">
<div class="col-sm-12 mbl">
<a href="{{ route("Shop.Admin.Articles.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('Shop.Admin.Articles.form')
</form>
@endsection

View 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&amp;key={{ env('GOOGLE_GEOLOCATION_API_KEY') }}"></script>
<script type="text/javascript" src="/js/geo_autocomplete.js"></script>
@endpush

View File

@@ -0,0 +1,12 @@
@extends('layout.index', [
'title' => __('lots.title'),
'subtitle' => __('lots.list.title'),
'breadcrumb' => [__('lots.title')]
])
@section('content')
<div class="box">
<div class="box-body">
</div>
</div>
@endsection

View 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