Add new version in repository
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('article_families.title'),
|
||||
'subtitle' => __('article_families.create.title'),
|
||||
'breadcrumb' => [__('article_families.title'), __('article_families.create.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.store', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
@include('Shop.Admin.ArticleFamilies.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,16 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Famille d\'articles',
|
||||
'subtitle' => 'Edition d\'une famille d\'article',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.update', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
@include('Shop.Admin.ArticleFamilies.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,22 +0,0 @@
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
<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('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($family['description']) ? $family['description'] : null, 'class' => 'editor', 'required' => false])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,9 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.article_families.title'),
|
||||
'subtitle' => __('Shop.article_families.list'),
|
||||
'breadcrumb' => [__('Shop.article_families.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.ArticleFamilies.index'), 'model' => 'article_families'])
|
||||
@endsection
|
||||
@@ -1,36 +0,0 @@
|
||||
@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
|
||||
@@ -1,13 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.articles.title'),
|
||||
'subtitle' => __('Shop.articles.add'),
|
||||
'breadcrumb' => [__('Shop.articles.title'), __('Shop.articles.add')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Articles.store', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
@include('Shop.Admin.Articles.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,15 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Articles',
|
||||
'subtitle' => 'Edition d\'un article',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Articles.store', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
<input type="hidden" name="id" id="id" value="{{ $article['id'] ?? null }}">
|
||||
|
||||
@include('Shop.Admin.Articles.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,100 +0,0 @@
|
||||
<div class="row mt-3">
|
||||
<div class="col-12">
|
||||
<div class="card card-primary card-outline card-outline-tabs">
|
||||
<div class="card-header p-0 border-bottom-0">
|
||||
|
||||
<ul class="card-title nav nav-tabs ml-auto" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a href="#characteristics" class="nav-link active" data-toggle="tab" aria-expanded="true">
|
||||
Caractéristiques
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#prices" class="nav-link" data-toggle="tab" aria-expanded="true">
|
||||
Tarifs
|
||||
@if(isset($prices_count))<span class="badge">{{ $prices_count }}</span>@endif
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#shipping" class="nav-link" data-toggle="tab" aria-expanded="true">
|
||||
Livraison
|
||||
@if(isset($shipping_count))<span class="badge">{{ $shipping_count }}</span>@endif
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#stock" class="nav-link" data-toggle="tab" aria-expanded="true">
|
||||
Stock
|
||||
@if(isset($stock_count))<span class="badge">{{ $stock_count }}</span>@endif
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#seo" class="nav-link" data-toggle="tab" aria-expanded="true">
|
||||
Référencement
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="card-tools">
|
||||
Actif
|
||||
<input type="checkbox" name="active" class="active-checkbox" data-toggle="toggle" data-size="mini" data-width="50" data-height="25" data-onstyle="success" data-offstyle="danger">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="characteristics">
|
||||
@include('Shop.Admin.Articles.partials.characteristics')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="prices">
|
||||
@include('Shop.Admin.Articles.partials.prices')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="shipping">
|
||||
@include('Shop.Admin.Articles.partials.shipping')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="stock">
|
||||
@include('Shop.Admin.Articles.partials.stock')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="seo">
|
||||
@include('Shop.Admin.Articles.partials.seo')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
@include('boilerplate::load.select2')
|
||||
@include('load.set_options')
|
||||
@include('boilerplate::load.tinymce')
|
||||
@include('load.appender')
|
||||
@include('load.toggle')
|
||||
@include('load.form.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
$('.select2').select2({ width: '100%' });
|
||||
$('.editor').tinymce({});
|
||||
|
||||
$('.active-checkbox').bootstrapToggle();
|
||||
$('.active-checkbox').off('change').on('change', function(e) {
|
||||
var id = $('#id').val();
|
||||
// handleAdmin.toggle(id, $(this).prop('checked'));
|
||||
});
|
||||
|
||||
initSaveForm('.save', '#article-form');
|
||||
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,15 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.articles.title'),
|
||||
'subtitle' => __('Shop.articles.list'),
|
||||
'breadcrumb' => [__('Shop.articles.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Articles.index'), 'model' => 'articles', 'with_filters' => true])
|
||||
|
||||
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-articles-filters'])
|
||||
@include('Shop.Admin.Articles.partials.filters')
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,112 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
{{ Form::label('ref', 'Référence') }}<br>
|
||||
@include('components.input', ['name' => 'ref', 'value' => $article['ref'] ?? null])
|
||||
</div>
|
||||
<div class="col-4">
|
||||
{{ Form::label('model', 'Familles de produit') }}<br>
|
||||
@include('components.select', ['name' => 'product_type', 'id_name' => 'product_type', 'list' => $models_options, 'value' => $article['product_type'] ?? null, 'class' => 'select2 form-control'])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('model_id', 'Produit') }}<br>
|
||||
@include('components.select', ['name' => 'product_id', 'id_name' => 'product_id', 'list' => $products ?? [], 'value' => $article['product_id'] ?? null, 'class' => 'select2 form-control'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
{{ Form::label('name', 'Nom') }}<br>
|
||||
@include('components.input', ['name' => 'name', 'value' => $article['name'] ?? null, 'required' => true])
|
||||
</div>
|
||||
<div class="col-4">
|
||||
{{ Form::label('family_id', 'Famille d\'articles') }}<br>
|
||||
@include('components.select', ['name' => 'article_family_id', 'list' => $families_options, 'value' => $article['article_family_id'] ?? null, 'class' => 'select2 form-control'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ Form::label('categories', 'Rayons') }}<br>
|
||||
@include('components.select', ['name' => 'categories[]', 'list' => $categories_options, 'values' => $article['categories'] ?? null, 'class' => 'select2 form-control', 'multiple' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tags', 'Tags') }}<br>
|
||||
@include('Shop.Admin.Articles.partials.product.tags')
|
||||
@include('components.select-tree', ['name' => 'tags[]', 'list' => $tags_list, 'values' => $article['tags'] ?? null, 'class' => 'select2 form-control', 'multiple' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('Shop.Admin.Articles.partials.product.description')
|
||||
@include('components.textarea', ['name' => 'description', 'value' => $article['description'] ?? null, 'class' => 'editor', 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
@include('Shop.Admin.Articles.partials.product.images')
|
||||
@include('components.uploader.widget', ['load_url' => route('Shop.Admin.Articles.getImages', ['id' => $article['id'] ?? false]), 'delete_url' => route('Shop.Admin.Articles.deleteImage'), 'title' => 'Photos', 'name' => 'images' ])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
$("#product_id").change( function(e) {
|
||||
var product = $('#product_id').select2('data');
|
||||
var name = product[0]['text'];
|
||||
$('input[name="name"]').val(name);
|
||||
});
|
||||
|
||||
$('#product_type').change( function() {
|
||||
var product_type = $(this).val();
|
||||
switch (product_type) {
|
||||
case 'App\\Models\\Botanic\\Specie':
|
||||
loadSpecies();
|
||||
break;
|
||||
case 'App\\Models\\Botanic\\Variety':
|
||||
default:
|
||||
loadVarieties();
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
function loadVarieties() {
|
||||
$.ajax({
|
||||
url : '{{ route('Botanic.Admin.Varieties.getSelect') }}',
|
||||
method : 'POST',
|
||||
data: {model: $('#product_type').val()},
|
||||
success : function(data) {
|
||||
setOptions('#product_id', data);
|
||||
// $("#product_id").select2({data: data});
|
||||
// $("#product_id").trigger('change');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadSpecies() {
|
||||
console.log('loadSpecies');
|
||||
console.log($('#product_type').val());
|
||||
$.ajax({
|
||||
url : '{{ route('Botanic.Admin.Species.getSelect') }}',
|
||||
method : 'POST',
|
||||
data: {model: $('#product_type').val()},
|
||||
success : function(data) {
|
||||
setOptions('#product_id', data);
|
||||
// $("#product_id").select2({data: data});
|
||||
// $("#product_id").trigger('change');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// loadVarieties();
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,8 +0,0 @@
|
||||
<form id="articles-filters">
|
||||
<div class="row">
|
||||
<label class="col-4">Familles d'articles</label>
|
||||
<div class="col-8">
|
||||
@include('components.select', ['name' => 'family_id', 'list' => (isset($families)) ? $families : [], 'value' => (isset($filters['family_id'])) ? $filters['family_id'] : null, 'class' => 'form-control-sm select2', 'with_empty' => ' '])
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -1,4 +0,0 @@
|
||||
<div id="attributes" class="appender" data-id="">
|
||||
@include('Shop.Admin.Articles.partials.prices.block_attribute_new')
|
||||
<div class="append_attribute"></div>
|
||||
</div>
|
||||
@@ -1,28 +0,0 @@
|
||||
<div class="row row-attribute">
|
||||
|
||||
<input type="hidden" name="prices[{{ $key }}][article_attribute][quantity]" value="1">
|
||||
<input type="hidden" name="prices[{{ $key }}][article_attribute][id]" value="{{ (isset($attribute['id'])) ? $attribute['id'] : null }}">
|
||||
|
||||
<div class="col-12 col-lg-7">
|
||||
{{ Form::label('attribute_family_id', 'Attributs') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[$key][attribute][attribute_family_id]",
|
||||
'value' => $attribute['attribute_value']['article_attribute_family_id'] ?? null,
|
||||
'list' => $attribute_families_options,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm attributes-family'
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-lg-5">
|
||||
{{ Form::label('attribute_value_id', 'Valeur') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[$key][attribute][attribute_value_id]",
|
||||
'value' => $attribute['article_attribute_value_id'] ?? null,
|
||||
'list' => $attribute_values ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm attributes-value w-100',
|
||||
'meta' => (isset($attribute['article_attribute_value_id'])) ? 'data-id="' . $attribute['article_attribute_value_id'] . '"' : ''
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,24 +0,0 @@
|
||||
<div class="row row-new-attribute row-attribute">
|
||||
<input type="hidden" name="prices[][attribute][quantity]" value="1">
|
||||
<div class="col-12 col-lg-6 1">
|
||||
{{ Form::label('attribute_family_id', 'Attributs') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => 'prices[][attribute][attribute_family_id]',
|
||||
'value' => $attribute_value['article_attribute_family_id'] ?? null,
|
||||
'list' => $attribute_families_options,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm attributes-family'
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-lg-6 2">
|
||||
{{ Form::label('attribute_value_id', 'Valeur') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => 'prices[][attribute][attribute_value_id]',
|
||||
'value' => $attribute_value['id'] ?? null,
|
||||
'list' => $attribute_values ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm attributes-value'
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,8 +0,0 @@
|
||||
<div class="col-12 row-generic">
|
||||
|
||||
<input type="hidden" name="generics[id][]" value="{{ $generic['id'] ?? null }}">
|
||||
<input type="hidden" name="generics[price_generic_id][]" value="{{ $generic['price_generic_id'] ?? null }}">
|
||||
|
||||
@include('Shop.Admin.PriceGenerics.partials.table-prices', ['generic' => $generic['generic'] ?? null ])
|
||||
</div>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<div class="col-12 row-new-generic row-generic">
|
||||
|
||||
@include('Shop.Admin.PriceGenerics.partials.table-prices', ['generic' => $generic['generic'] ?? null ])
|
||||
|
||||
</div>
|
||||
@@ -1,51 +0,0 @@
|
||||
<div id="append_generic_price" class="row">
|
||||
@include('Shop.Admin.Articles.partials.generic_prices.list-generic_prices')
|
||||
</div>
|
||||
|
||||
<div class="row mt-3">
|
||||
<div class="col-6">
|
||||
@include('components.select-tree', ['name' => "article_price_generic_id", 'id_name' => "article_price_generic_id", 'value' => $price['article_price_generic_id'] ?? null, 'list' => $price_generics ?? null, 'required' => false, 'class' => 'form-control-sm w-100'])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<button type="button" class="btn btn-sm btn-primary" id="add-new-generic_price">Associer un tarif générique <i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
function append_generic_price() {
|
||||
$('.select2').select2();
|
||||
handleAddGeneric();
|
||||
}
|
||||
|
||||
function handleAddGeneric() {
|
||||
$('#add-new-generic_price').click(function() {
|
||||
var id = $('#article_price_generic_id').val();
|
||||
var content = $.get("{{ route('Shop.Admin.PriceGenerics.getPrice') }}/" + id, function(data) {
|
||||
$('#append_generic_price').html(data);
|
||||
handleDeleteGenericPrice();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function handleDeleteGenericPrice() {
|
||||
$('.delete-generic_price-btn').off().click(function(e) {
|
||||
console.log('ici');
|
||||
e.preventDefault();
|
||||
// $('#append_generic_price').html('');
|
||||
|
||||
/*
|
||||
confirm_delete(id, "{## route('Shop.Admin.GenericPrices.destroy') }}", function() {
|
||||
$selector.remove();
|
||||
});
|
||||
*/
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
append_generic_price();
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,14 +0,0 @@
|
||||
@if (isset($generics) && (count($generics)))
|
||||
@foreach ($generics as $generic)
|
||||
@include('Shop.Admin.Articles.partials.generic_prices.block_generic_price')
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function () {
|
||||
handleDeleteGenericPrice();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
@include('Shop.Admin.Articles.partials.prices.prices', ['prices' => $article['prices']['prices'] ?? null])
|
||||
@include('Shop.Admin.Articles.partials.generic_prices.generic_prices', ['generics' => $article['prices']['generics'] ?? null])
|
||||
@@ -1,4 +0,0 @@
|
||||
<div id="attributes" class="appender" data-id="">
|
||||
@include('Shop.Admin.Articles.partials.prices.block_attribute_new')
|
||||
<div class="append_attribute"></div>
|
||||
</div>
|
||||
@@ -1,75 +0,0 @@
|
||||
<div class="col-12 row-price">
|
||||
|
||||
<input type="hidden" name="prices[{{ $key }}][id]" value="@if (isset($price['id'])){{ $price['id'] }}@endif" class="price_id">
|
||||
|
||||
<div class="card card-light">
|
||||
<div class="card-body pt-2">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-1">
|
||||
{{ Form::label('quantity', 'Qté.') }}<br/>
|
||||
@include('components.number', ['name' => "prices[$key][quantity]", 'value' => $price['quantity'] ?? 1, 'required' => true, 'class' => 'form-control-sm'])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
{{ Form::label('package_id', 'Type Package') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[$key][package_id]",
|
||||
'value' => $price['package_id'] ?? null,
|
||||
'list' => $packages ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm packages w-100',
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-1">
|
||||
{{ Form::label('package_qty', 'Pack Qté') }}<br/>
|
||||
@include('components.number', [
|
||||
'name' => "prices[$key][package_quantity]",
|
||||
'value' => $price['package_quantity'] ?? null,
|
||||
'required' => true,
|
||||
'class' => 'form-control-sm',
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
{{ Form::label('unity_id', 'Unité') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[$key][unity_id]",
|
||||
'value' => $price['unity_id'] ?? null,
|
||||
'list' => $unities ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm unities w-100',
|
||||
'with_empty' => ''
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
{{ Form::label('tax_id', 'TVA') }}<br/>
|
||||
@include('components.select', ['name' => "prices[$key][tax_id]", 'value' => $price['tax_id'] ?? null, 'list' => $taxes_options ?? null, 'required' => true, 'class' => 'form-control form-control-sm'])
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
{{ Form::label('price', 'Prix HT') }}
|
||||
@include('components.money', ['name' => "prices[$key][price]", 'value' => $price['price'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-item'])
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
{{ Form::label('price_taxed', 'Prix TTC') }}
|
||||
@include('components.money', ['name' => "prices[$key][price_taxed]", 'value' => $price['price_taxed'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-taxed-item'])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-1 text-right">
|
||||
<br/>
|
||||
<button type="button" class="btn btn-xs btn-danger delete-price-btn mt-2" data-card-widget="collapse" data-toggle="tooltip" title="supprimer">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,80 +0,0 @@
|
||||
<div class="col-12 row-new-price row-price">
|
||||
|
||||
<input type="hidden" name="prices[0][article_id]" value="{{ $id ?? null }}">
|
||||
|
||||
<div class="card card-light">
|
||||
<div class="card-body pt-2">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-1">
|
||||
{{ Form::label('quantity', 'Quantité') }}<br/>
|
||||
@include('components.number', ['name' => 'prices[0][quantity]', 'value' => $quantity ?? 1, 'required' => true, 'class' => 'form-control-sm'])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
{{ Form::label('package_id', 'Type Package') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[0][package_id]",
|
||||
'value' => $price['package_id'] ?? null,
|
||||
'list' => $packages ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm packages w-100',
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-1">
|
||||
{{ Form::label('package_qty', 'Pack Qté') }}<br/>
|
||||
@include('components.number', [
|
||||
'name' => "prices[0][package_quantity]",
|
||||
'value' => $price['package_quantity'] ?? null,
|
||||
'required' => true,
|
||||
'class' => 'form-control-sm',
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
{{ Form::label('unity_id', 'Unité') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[0][unity_id]",
|
||||
'value' => $price['unity_id'] ?? null,
|
||||
'list' => $unities ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm unities w-100',
|
||||
'with_empty' => ''
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
{{ Form::label('tax_id', 'TVA') }}<br/>
|
||||
@include('components.select', ['name' => 'prices[0][tax_id]', 'value' => $tax_id ?? null, 'list' => $taxes_options ?? null, 'required' => true, 'class' => 'form-control form-control-sm'])
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
{{ Form::label('price', 'Prix HT') }}
|
||||
@include('components.money', ['name' => 'prices[0][price]', 'value' => $price ?? 0, 'required' => true, 'class' => 'form-control-sm price-item'])
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
{{ Form::label('price_taxed', 'Prix TTC') }}
|
||||
@include('components.money', ['name' => 'prices[0][price_taxed]', 'value' => $price_taxed ?? 0, 'required' => true, 'class' => 'form-control-sm price-taxed-item'])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-1 text-right">
|
||||
<br/>
|
||||
<button type="button" class="btn btn-xs btn-danger delete-new-price-btn mt-2" data-card-widget="collapse" data-toggle="tooltip" title="supprimer">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,18 +0,0 @@
|
||||
@if (isset($prices) && (count($prices)))
|
||||
@for ($i = 0; $i < count($prices); $i++)
|
||||
@include('Shop.Admin.Articles.partials.prices.block_price', ['key' => $i, 'price' => $prices[$i]])
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function () {
|
||||
handle_delete_price();
|
||||
init_unities();
|
||||
handle_change_package();
|
||||
handle_prices();
|
||||
handle_prices_taxed();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
@include('Shop.Admin.Articles.partials.prices.block_price_new')
|
||||
|
||||
<div id="append_price" class="row">
|
||||
@include('Shop.Admin.Articles.partials.prices.list-prices')
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-primary add-new-price">Ajouter un tarif <i class="fa fa-plus"></i></button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
function append_price() {
|
||||
$('.select2').select2();
|
||||
handle_change_package();
|
||||
load_unities($('.unities'), $('.packages').val());
|
||||
}
|
||||
|
||||
$("#append_price").appender({
|
||||
rowSection: '.row-new-price',
|
||||
type: '.row-price',
|
||||
addBtn: '.add-new-price',
|
||||
appendEffect: 'slide',
|
||||
addClass: 'animated bounceInLeft',
|
||||
rowNumber: '.row-price-number',
|
||||
deleteBtn: '.delete-new-price-btn',
|
||||
callback: append_price,
|
||||
rowNumberStart: 2,
|
||||
hideSection: true
|
||||
});
|
||||
|
||||
function handle_change_package() {
|
||||
$('.packages').change( function() {
|
||||
var package_id = $(this).val();
|
||||
var $package = $(this);
|
||||
var $parent = $package.parent().parent();
|
||||
var $selector = $parent.find('.unities');
|
||||
load_unities($selector, package_id);
|
||||
});
|
||||
}
|
||||
|
||||
function init_unities() {
|
||||
$('.packages').each( function() {
|
||||
var package_id = $(this).val();
|
||||
var $package = $(this);
|
||||
var $parent = $package.parent().parent();
|
||||
var $selector = $parent.find('.unities');
|
||||
load_unities($selector, package_id);
|
||||
value_id = $selector.data('id');
|
||||
$selector.val(value_id).trigger('change');
|
||||
});
|
||||
}
|
||||
|
||||
function load_unities($selector, package_id) {
|
||||
$.ajax({
|
||||
url : "{{ route('Shop.Admin.Unities.getOptionsByPackage') }}",
|
||||
method : 'POST',
|
||||
data: { package_id: package_id },
|
||||
success : function(data) {
|
||||
setOptions($selector, data);
|
||||
// $selector.empty().select2({data: data});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function handle_delete_price() {
|
||||
$('.delete-price-btn').click(function() {
|
||||
var $selector = $(this).parents('.row-price');
|
||||
var id = $selector.find('.price_id').val();
|
||||
|
||||
confirm_delete(id, laroute.route('Shop.Admin.ArticlePrices.destroy', {id : id}), function() {
|
||||
$selector.remove();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function handle_prices() {
|
||||
$('.price-item').change(function() {
|
||||
tax_selected = $(this).parent().prev().find('select option:selected').text();
|
||||
price_taxed = $(this).val() * (1 + (tax_selected / 100));
|
||||
$(this).parent().parent().find('.price-taxed-item').val(price_taxed);
|
||||
})
|
||||
}
|
||||
|
||||
function handle_prices_taxed() {
|
||||
$('.price-taxed-item').change(function() {
|
||||
tax_selected = $(this).parent().prev().find('select option:selected').text();
|
||||
console.log($(this).parent().prev());
|
||||
price = $(this).val() / (1 + (tax_selected / 100));
|
||||
$(this).parent().parent().find('.price-item').val(price);
|
||||
})
|
||||
}
|
||||
|
||||
$(function() {
|
||||
handle_change_package();
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,5 +0,0 @@
|
||||
@if (!empty($article['product']['description']))
|
||||
@component('components.layout.box-collapse', ['id' => 'product_description', 'title' => 'Description produit'])
|
||||
{{ $article['product']['description'] }}
|
||||
@endcomponent
|
||||
@endif
|
||||
@@ -1 +0,0 @@
|
||||
@include('components.uploader.widget', ['load_url' => route('Botanic.Admin.Varieties.getImages', ['id' => $article['product_id'] ?? false, 'can_edit' => 0]), 'name' => 'product_images', 'title' => 'Photos produits', 'prefix' => 'product_', 'can_edit' => false, 'collapsed' => true ])
|
||||
@@ -1,7 +0,0 @@
|
||||
@if (!empty($article['product']['tags']))
|
||||
@component('components.layout.box-collapse', ['id' => 'product_tags', 'title' => 'Tags produit'])
|
||||
@foreach ($article['product']['tags'] as $tag)
|
||||
{{ $tag->name }}
|
||||
@endforeach
|
||||
@endcomponent
|
||||
@endif
|
||||
@@ -1,36 +0,0 @@
|
||||
@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
|
||||
@@ -1,13 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.categories.title'),
|
||||
'subtitle' => __('Shop.categories.add'),
|
||||
'breadcrumb' => [__('Shop.categories.title'), __('Shop.categories.list')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Categories.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
@include('Shop.Admin.Categories.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.categories.title'),
|
||||
'subtitle' => __('Shop.categories.edit'),
|
||||
'breadcrumb' => [__('Shop.categories.title'), __('Shop.categories.list')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Categories.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
@include('Shop.Admin.Categories.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,47 +0,0 @@
|
||||
@include('boilerplate::load.fileinput')
|
||||
@include('boilerplate::load.select2')
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
<input type="hidden" name="category_id" value="{{ $category_id }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => isset($name) ? $name : null, 'required' => true])
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
{{ Form::label('visible', 'Visible') }}<br/>
|
||||
@include('components.toggle', ['name' => 'visible', 'value' => isset($visible) ? $visible : null])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tags', 'Tags') }}
|
||||
@include('components.select', ['name' => 'tags', 'value' => isset($tags) ? $tags : null, 'class' => 'select2 form-control', 'multiple' => true])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($description) ? $description : null, 'class' => 'editor', 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{{ Form::label('photo', 'Photos') }}
|
||||
@include('components.uploader.widget', ['load_url' => route('Shop.Admin.Categories.getImages', ['id' => (isset($id)) ? $id : false]), 'delete_url' => route('Shop.Admin.Categories.deleteImage') ])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$(".select2").select2();
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,21 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.categories.title'),
|
||||
'subtitle' => __('Shop.categories.list'),
|
||||
'breadcrumb' => [__('Shop.categories.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Categories.index'), 'model' => 'categories'])
|
||||
@endcomponent
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@include('Shop.Admin.Categories.partials.tree')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">
|
||||
<i class="fas fa-sort"></i>
|
||||
Gestion du menu
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div id="tree1" data-url="{{ route('Shop.Categories.getTree') }}"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
var position = '';
|
||||
var target_node = '';
|
||||
|
||||
$(function() {
|
||||
|
||||
var $tree = $('#tree1').tree({
|
||||
dragAndDrop: true,
|
||||
onDragStop: handleMove,
|
||||
autoOpen: 0
|
||||
});
|
||||
|
||||
|
||||
$tree.on('tree.move', function(e) {
|
||||
// e.preventDefault();
|
||||
|
||||
position = e.move_info.position;
|
||||
target_node = e.move_info.target_node;
|
||||
|
||||
function getNewParentNode() {
|
||||
if (position == 'inside') {
|
||||
return target_node;
|
||||
}
|
||||
else {
|
||||
// before or after
|
||||
return target_node.parent;
|
||||
}
|
||||
}
|
||||
|
||||
var parent_node = getNewParentNode();
|
||||
console.log("Parent node", parent_node);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
function handleMove(node, e) {
|
||||
console.log(node);
|
||||
node_id = node.id;
|
||||
console.log(node_id);
|
||||
console.log(position);
|
||||
console.log(target_node);
|
||||
target_node_id = target_node.id;
|
||||
|
||||
$.ajax({
|
||||
method: "POST",
|
||||
url: "{{ route('Shop.Admin.Categories.moveTree') }}",
|
||||
data: { node_id: node.id, type: position, target_id: target_node.id }
|
||||
});
|
||||
// console.log(e);
|
||||
// console.log($('#tree1').tree('getTree'));
|
||||
}
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
@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
|
||||
@@ -1,28 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('customers.title'),
|
||||
'subtitle' => __('customers.create.title'),
|
||||
'breadcrumb' => [__('customers.title'), __('customers.create.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Customers.store', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Shop.Admin.Customers.index") }}" class="btn btn-default">
|
||||
{{ __('customers.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.button-save')
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('Shop.Admin.Customers.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,16 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Clients',
|
||||
'subtitle' => 'Edition d\'un client',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Customers.update', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $customer['id'] }}">
|
||||
@include('Shop.Admin.Customers.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,23 +0,0 @@
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
|
||||
<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('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($description) ? $description : null, 'class' => 'editor', 'required' => false])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,11 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.customers.title'),
|
||||
'subtitle' => __('Shop.customers.list'),
|
||||
'breadcrumb' => [__('Shop.customers.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Customers.index'), 'model' => 'customers'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
@@ -1,36 +0,0 @@
|
||||
@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
|
||||
@@ -1,30 +0,0 @@
|
||||
<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' => 'ion ion-bag', '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($total_invoices)) ? $total_invoices : 0, 'class' => 'bg-yellow', 'icon' => 'ion ion-stats-bars', '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>
|
||||
@@ -1,38 +0,0 @@
|
||||
<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 -->
|
||||
@@ -1,24 +0,0 @@
|
||||
<!-- 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 -->
|
||||
@@ -1,42 +0,0 @@
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">Dernières commandes</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table no-margin">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Localisation</th>
|
||||
<th>Date</th>
|
||||
<th>Montant</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="pages/examples/invoice.html">Ludovic CANDELLIER</a></td>
|
||||
<td>Amiens (80)</td>
|
||||
<td>14/05/2020</td>
|
||||
<td><span class="label label-success">300.53 €</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.table-responsive -->
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="card-header clearfix">
|
||||
<a href="javascript:void(0)" class="btn btn-sm btn-info btn-flat pull-left">Nouvelle commande</a>
|
||||
<a href="javascript:void(0)" class="btn btn-sm btn-default btn-flat pull-right">Voir toutes les commandes</a>
|
||||
</div>
|
||||
<!-- /.box-footer -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
@@ -1,66 +0,0 @@
|
||||
<!-- 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 -->
|
||||
@@ -1,54 +0,0 @@
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">Répartion par types</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="card-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> Semences</li>
|
||||
<li><i class="fa fa-circle-o text-green"></i> Plants</li>
|
||||
<li><i class="fa fa-circle-o text-yellow"></i> Plats</li>
|
||||
<li><i class="fa fa-circle-o text-aqua"></i> Outils</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="card-footer">
|
||||
<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>
|
||||
@@ -1,23 +0,0 @@
|
||||
<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.latestOrders')
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
@include('Shop.Admin.Dashboard._partials.ordersByTypes')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -1,40 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">Evolution du CA</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-tool dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-wrench"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" role="menu">
|
||||
<a href="#" class="dropdown-item">Par semaine</a>
|
||||
<a href="#" class="dropdown-item">Par mois</a>
|
||||
<a class="dropdown-divider"></a>
|
||||
<a href="#" class="dropdown-item">Autre chose</a>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-tool" data-widget="remove">
|
||||
<i class="fa fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@include('Shop.Admin.Dashboard.components.chart')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
@include('Shop.Admin.Dashboard._partials.evolutions')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,7 +0,0 @@
|
||||
@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 ])
|
||||
@@ -1,40 +0,0 @@
|
||||
<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 -->
|
||||
@@ -1,9 +0,0 @@
|
||||
<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 -->
|
||||
@@ -1,30 +0,0 @@
|
||||
<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>
|
||||
@@ -1,38 +0,0 @@
|
||||
<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 -->
|
||||
@@ -1,7 +0,0 @@
|
||||
<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>
|
||||
@@ -1,16 +0,0 @@
|
||||
<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>
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
<!-- 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 -->
|
||||
@@ -1,20 +0,0 @@
|
||||
<!-- 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
|
||||
@@ -1,47 +0,0 @@
|
||||
<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 -->
|
||||
@@ -1,17 +0,0 @@
|
||||
@extends('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
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('invoices.title'),
|
||||
'subtitle' => __('invoices.create.title'),
|
||||
'breadcrumb' => [__('invoices.title'), __('invoices.create.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Invoices.store', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
|
||||
@include('Shop.Admin.Invoices.form')
|
||||
@include('components.save')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,18 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Factures',
|
||||
'subtitle' => 'Edition d\'une facture',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Invoices.update', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $invoice['id'] }}">
|
||||
@include('Shop.Admin.Invoices.form')
|
||||
@include('components.button-save')
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,29 +0,0 @@
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
|
||||
<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('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($description) ? $description : null, 'class' => 'editor', '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>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,11 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.invoices.title'),
|
||||
'subtitle' => __('Shop.invoices.list'),
|
||||
'breadcrumb' => [__('Shop.invoices.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Invoices.index'), 'model' => 'invoices'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
@@ -1,36 +0,0 @@
|
||||
@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
|
||||
@@ -1,28 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('article_families.title'),
|
||||
'subtitle' => __('article_families.create.title'),
|
||||
'breadcrumb' => [__('article_families.title'), __('article_families.create.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.store', 'id' => 'article-family-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">
|
||||
{{ __('article_families.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.button-save')
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('Shop.Admin.ArticleFamilies.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,29 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Famille d\'articles',
|
||||
'subtitle' => 'Edition d\'une famille d\'article',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.update', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Shop.Admin.ArticleFamilies.index") }}" class="btn btn-default">
|
||||
{{ __('article_families.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.ArticleFamilies.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,29 +0,0 @@
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
|
||||
<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('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($description) ? $description : null, 'class' => 'editor', '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>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,11 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.orders.title'),
|
||||
'subtitle' => __('Shop.orders.list'),
|
||||
'breadcrumb' => [__('Shop.orders.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Orders.index'), 'model' => 'orders'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
@@ -1,36 +0,0 @@
|
||||
@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
|
||||
@@ -1,15 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('packages.title'),
|
||||
'subtitle' => __('packages.create.title'),
|
||||
'breadcrumb' => [__('packages.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Packages.store', 'id' => 'package-form', 'autocomplete' => 'off']) }}
|
||||
@include('Shop.Admin.Packages.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Package',
|
||||
'subtitle' => 'Edition d\'un package',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.Packages.store', 'id' => 'package-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $package['id'] }}">
|
||||
@include('Shop.Admin.Packages.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,18 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Famille') }}
|
||||
@include('components.select', ['name' => 'article_family_id', 'value' => $package['article_family_id'] ?? null, 'list' => $families, 'required' => false, 'with_empty' => ''])
|
||||
|
||||
{{ Form::label('name', 'Valeur') }}
|
||||
@include('components.input', ['name' => 'value', 'value' => $package['value'] ?? 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>
|
||||
@@ -1,48 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.packages.title'),
|
||||
'subtitle' => __('Shop.packages.list'),
|
||||
'breadcrumb' => [__('Shop.packages.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.select2')
|
||||
|
||||
@section('content')
|
||||
|
||||
<nav>
|
||||
<div class="nav nav-tabs">
|
||||
<a href="#families" data-toggle="tab" class="nav-item nav-link" role="tab" aria-controls="families" aria-selected="true">
|
||||
{{ __('Shop.packages.title') }}
|
||||
</a>
|
||||
<a href="#values" data-toggle="tab" class="nav-item nav-link active" role="tab" aria-controls="values" aria-selected="false">
|
||||
{{ __('Shop.packages.title') }}
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="tab-content mb-0">
|
||||
|
||||
<div class="tab-pane fade" id="families">
|
||||
@section('content')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Unities.index'), 'model' => 'ArticleAttributefamilies'])
|
||||
@endsection
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade show active" id="values">
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.ArticleAttributeValues.index'), 'model' => 'Unities'])
|
||||
@endcomponent
|
||||
|
||||
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-filters'])
|
||||
@include('Shop.Admin.Unities.partials.filters')
|
||||
@endcomponent
|
||||
@endsection
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@include('components.js.datatable', ['route' => route('Shop.Admin.Unities.index'), 'model' => 'Unities'])
|
||||
@endpush
|
||||
@@ -1,17 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.packages.title'),
|
||||
'subtitle' => __('Shop.packages.list'),
|
||||
'breadcrumb' => [__('Shop.packages.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Packages.index'), 'model' => 'packages', 'with_filters' => true])
|
||||
@endcomponent
|
||||
|
||||
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-packages-filters'])
|
||||
@include('Shop.Admin.Packages.partials.filters')
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
@@ -1,9 +0,0 @@
|
||||
<form id="filters">
|
||||
<div class="row">
|
||||
<label class="col-4">Familles d'attributs</label>
|
||||
<div class="col-8">
|
||||
@include('components.select', ['name' => 'article_attribute_family_id', 'list' => (isset($families)) ? $families : [], 'value' => (isset($filters['article_attribute_family_id'])) ? $filters['article_attribute_family_id'] : null, 'class' => 'form-control-sm select2', 'with_empty' => ' '])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -1,36 +0,0 @@
|
||||
@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
|
||||
@@ -1,13 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('price_generic_categories.title'),
|
||||
'subtitle' => __('price_generic_categories.create.title'),
|
||||
'breadcrumb' => [__('price_generic_categories.title'), __('price_generic_categories.create.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.PriceGenericCategories.store', 'id' => 'price-generic-category-form', 'autocomplete' => 'off']) }}
|
||||
@include('Shop.Admin.PriceGenericCategories.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('price_generic_categories.title'),
|
||||
'subtitle' => __('price_generic_categories.edit.title'),
|
||||
'breadcrumb' => [__('price_generic_categories.title'), __('price_generic_categories.edit.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.PriceGenericCategories.store', 'id' => 'price-generic-category-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $generic_category['id'] }}">
|
||||
@include('Shop.Admin.PriceGenericCategories.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,15 +0,0 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-6">
|
||||
{{ Form::label('name', 'Famille d\'articles') }}
|
||||
@include('components.select', ['name' => 'article_family_id', 'list' => $families,'value' => $generic_category['article_family_id'] ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-6">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => $generic_category['name'] ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
@@ -1,13 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('price_generic_categories.title'),
|
||||
'subtitle' => __('price_generic_categories.list.title'),
|
||||
'breadcrumb' => [__('price_generic_categories.title')]
|
||||
])
|
||||
@section('content')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.PriceGenericCategories.index'), 'model' => 'price_generic_categories', 'with_filters' => true])
|
||||
|
||||
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-price_generic_categories-filters'])
|
||||
@include('Shop.Admin.PriceGenericCategories.partials.filters')
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
@@ -1,8 +0,0 @@
|
||||
<form id="price_generics-filters">
|
||||
<div class="row">
|
||||
<label class="col-4">Catégories</label>
|
||||
<div class="col-8">
|
||||
@include('components.select', ['name' => 'category_id', 'list' => (isset($categories)) ? $categories : [], 'value' => (isset($filters['category_id'])) ? $filters['category_id'] : null, 'class' => 'form-control-sm select2', 'with_empty' => ' '])
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -1,36 +0,0 @@
|
||||
@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
|
||||
@@ -1,13 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('price_generics.title'),
|
||||
'subtitle' => __('price_generics.create.title'),
|
||||
'breadcrumb' => [__('price_generics.title'), __('price_generics.create.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.PriceGenerics.store', 'id' => 'price-generic-form', 'autocomplete' => 'off']) }}
|
||||
@include('Shop.Admin.PriceGenerics.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('price_generics.title'),
|
||||
'subtitle' => __('price_generics.edit.title'),
|
||||
'breadcrumb' => [__('price_generics.title'), __('price_generics.edit.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.PriceGenerics.store', 'id' => 'price-generic-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $generic['id'] }}">
|
||||
@include('Shop.Admin.PriceGenerics.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,23 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{{ Form::label('name', 'Catégorie') }}
|
||||
@include('components.select', ['name' => 'category_id', 'list' => $categories, 'value' => $generic['category_id'] ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-6">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => $generic['name'] ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('Shop.Admin.PriceGenerics.partials.prices', ['prices' => $generic['prices'] ?? null ])
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="float-right mt-3">
|
||||
@include('components.button-save')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,13 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('price_generics.title'),
|
||||
'subtitle' => __('price_generics.list.title'),
|
||||
'breadcrumb' => [__('price_generics.title')]
|
||||
])
|
||||
@section('content')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.PriceGenerics.index'), 'model' => 'price_generics', 'with_filters' => true])
|
||||
|
||||
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-price_generics-filters'])
|
||||
@include('Shop.Admin.PriceGenerics.partials.filters')
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
@@ -1,80 +0,0 @@
|
||||
<div class="col-12 row-price">
|
||||
|
||||
<input type="hidden" name="prices[{{ $key }}][id]" value="@if (isset($price['id'])){{ $price['id'] }}@endif" class="price_id">
|
||||
|
||||
<div class="card card-light">
|
||||
<div class="card-body pt-2">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-1">
|
||||
{{ Form::label('quantity', 'Qté.') }}<br/>
|
||||
@include('components.number', ['name' => "prices[$key][quantity]", 'value' => $price['quantity'] ?? 1, 'required' => true, 'class' => 'form-control-sm'])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
{{ Form::label('package_id', 'Type Package') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[$key][package_id]",
|
||||
'value' => $price['package_id'] ?? null,
|
||||
'list' => $packages ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm packages w-100',
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-1">
|
||||
{{ Form::label('package_qty', 'Pack Qté') }}<br/>
|
||||
@include('components.number', [
|
||||
'name' => "prices[$key][package_quantity]",
|
||||
'value' => $price['package_quantity'] ?? null,
|
||||
'required' => true,
|
||||
'class' => 'form-control-sm',
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
{{ Form::label('unity_id', 'Unité') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[$key][unity_id]",
|
||||
'value' => $price['unity_id'] ?? null,
|
||||
'list' => $unities ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm unities w-100',
|
||||
'with_empty' => ''
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
{{ Form::label('tax_id', 'TVA') }}<br/>
|
||||
@include('components.select', ['name' => "prices[$key][tax_id]", 'value' => $price['tax_id'] ?? null, 'list' => $taxes_options ?? null, 'required' => true, 'class' => 'form-control form-control-sm'])
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
{{ Form::label('price', 'Prix HT') }}
|
||||
@include('components.money', ['name' => "prices[$key][price]", 'value' => $price['price'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-item'])
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
{{ Form::label('price_taxed', 'Prix TTC') }}
|
||||
@include('components.money', ['name' => "prices[$key][price_taxed]", 'value' => $price['price_taxed'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-taxed-item'])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-1 text-right">
|
||||
<br/>
|
||||
<button type="button" class="btn btn-xs btn-danger delete-price-btn mt-2" data-card-widget="collapse" data-toggle="tooltip" title="supprimer">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,73 +0,0 @@
|
||||
<div class="col-12 row-new-price row-price">
|
||||
|
||||
<input type="hidden" name="prices[][id]" value="">
|
||||
|
||||
<div class="card card-light">
|
||||
<div class="card-body pt-2">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-1">
|
||||
{{ Form::label('quantity', 'Quantité') }}<br/>
|
||||
@include('components.number', ['name' => 'prices[0][quantity]', 'value' => $quantity ?? 1, 'required' => true, 'class' => 'form-control-sm'])
|
||||
</div>
|
||||
|
||||
<div class="col-3">
|
||||
{{ Form::label('package_id', 'Unité') }}<br/>
|
||||
@include('components.select', ['name' => 'prices[0][package_id]', 'value' => $package_id ?? null, 'list' => $packages ?? null, 'required' => true, 'class' => 'select2 form-control-sm w-100'])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-1">
|
||||
{{ Form::label('package_qty', 'Pack Qté') }}<br/>
|
||||
@include('components.number', [
|
||||
'name' => "prices[0][package_quantity]",
|
||||
'value' => $price['package_quantity'] ?? null,
|
||||
'required' => true,
|
||||
'class' => 'form-control-sm',
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
{{ Form::label('unity_id', 'Unité') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[0][unity_id]",
|
||||
'value' => $price['unity_id'] ?? null,
|
||||
'list' => $unities ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm unities w-100',
|
||||
'with_empty' => ''
|
||||
])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
{{ Form::label('tax_id', 'TVA') }}<br/>
|
||||
@include('components.select', ['name' => "prices[0][tax_id]", 'value' => $price['tax_id'] ?? null, 'list' => $taxes_options ?? null, 'required' => true, 'class' => 'form-control form-control-sm'])
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
{{ Form::label('price', 'Prix HT') }}
|
||||
@include('components.money', ['name' => "prices[0][price]", 'value' => $price['price'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-item'])
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
{{ Form::label('price_taxed', 'Prix TTC') }}
|
||||
@include('components.money', ['name' => "prices[0][price_taxed]", 'value' => $price['price_taxed'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-taxed-item'])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-1 text-right">
|
||||
<br/>
|
||||
<button type="button" class="btn btn-xs btn-danger delete-new-price-btn mt-2" data-card-widget="collapse" data-toggle="tooltip" title="supprimer">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,8 +0,0 @@
|
||||
<form id="price_generics-filters">
|
||||
<div class="row">
|
||||
<label class="col-4">Catégories</label>
|
||||
<div class="col-8">
|
||||
@include('components.select', ['name' => 'category_id', 'list' => (isset($categories)) ? $categories : [], 'value' => (isset($filters['category_id'])) ? $filters['category_id'] : null, 'class' => 'form-control-sm select2', 'with_empty' => ' '])
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -1,16 +0,0 @@
|
||||
@if (isset($prices) && (count($prices)))
|
||||
@for ($i = 0; $i < count($prices); $i++)
|
||||
@include('Shop.Admin.PriceGenerics.partials.block_price', ['key' => $i, 'price' => $prices[$i]])
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function () {
|
||||
handle_delete_price();
|
||||
handle_prices();
|
||||
handle_prices_taxed();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
@include('Shop.Admin.PriceGenerics.partials.block_price_new')
|
||||
|
||||
<div id="append_price" class="row">
|
||||
@include('Shop.Admin.PriceGenerics.partials.list-prices')
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-primary add-new-price">Ajouter un tarif <i class="fa fa-plus"></i></button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
function append_price() {
|
||||
handle_prices();
|
||||
handle_prices_taxed();
|
||||
handle_change_package();
|
||||
// handle_append_attribute();
|
||||
// $('.select2').select2();
|
||||
}
|
||||
|
||||
$("#append_price").appender({
|
||||
rowSection: '.row-new-price',
|
||||
type: '.row-price',
|
||||
addBtn: '.add-new-price',
|
||||
appendEffect: 'slide',
|
||||
addClass: 'animated bounceInLeft',
|
||||
rowNumber: '.row-price-number',
|
||||
deleteBtn: '.delete-new-price-btn',
|
||||
callback: append_price,
|
||||
rowNumberStart: 2,
|
||||
hideSection: true
|
||||
});
|
||||
|
||||
|
||||
function handle_delete_price() {
|
||||
$('.delete-price-btn').click(function() {
|
||||
var $selector = $(this).parents('.row-price');
|
||||
var id = $selector.find('.price_id').val();
|
||||
|
||||
confirm_delete(id, laroute.route('Shop.Admin.PriceGenericValues.destroy', {id : id}), function() {
|
||||
$selector.remove();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function handle_prices() {
|
||||
$('.price-item').change(function() {
|
||||
$col_tax = $(this).parent().prev();
|
||||
tax_selected = $col_tax.find('select option:selected').text();
|
||||
price_taxed = $(this).val() * (1 + (tax_selected / 100));
|
||||
price_taxed = price_taxed.toFixed(2);
|
||||
$(this).parent().parent().find('.price-taxed-item').val(price_taxed);
|
||||
})
|
||||
}
|
||||
|
||||
function handle_prices_taxed() {
|
||||
$('.price-taxed-item').change(function() {
|
||||
$col_tax = $(this).parent().prev().prev();
|
||||
tax_selected = $col_tax.find('select option:selected').text();
|
||||
price = $(this).val() / (1 + (tax_selected / 100));
|
||||
price = price.toFixed(2);
|
||||
$(this).parent().parent().find('.price-item').val(price);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
function handle_change_package() {
|
||||
$('.packages').change( function() {
|
||||
var package_id = $(this).val();
|
||||
var $package = $(this);
|
||||
var $parent = $package.parent().parent();
|
||||
var $selector = $parent.find('.unities');
|
||||
load_unities($selector, package_id);
|
||||
});
|
||||
}
|
||||
|
||||
function init_unities() {
|
||||
$('.packages').each( function() {
|
||||
var package_id = $(this).val();
|
||||
var $package = $(this);
|
||||
var $parent = $package.parent().parent();
|
||||
var $selector = $parent.find('.unities');
|
||||
load_unities($selector, package_id);
|
||||
value_id = $selector.data('id');
|
||||
$selector.val(value_id).trigger('change');
|
||||
});
|
||||
}
|
||||
|
||||
function load_unities($selector, package_id) {
|
||||
$.ajax({
|
||||
url : "{{ route('Shop.Admin.Unities.getOptionsByPackage') }}",
|
||||
method : 'POST',
|
||||
data: { package_id: package_id },
|
||||
success : function(data) {
|
||||
setOptions($selector, data);
|
||||
// $selector.empty().select2({data: data});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,29 +0,0 @@
|
||||
@if (count($generic['prices'] ?? []))
|
||||
<table class="table table-bordered table-hover table-striped w-100 mb-0 dataTable">
|
||||
<input type="hidden" name="price_generics[0]" value="{{ $generic['id'] }}">
|
||||
<thead>
|
||||
<th>
|
||||
<button type="button" class="btn btn-xs btn-danger delete-generic-price-btn mt-2" data-card-widget="collapse" data-toggle="tooltip" title="supprimer" data-id="{{ $generic['id'] }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
|
||||
{{ $generic['category']['name'] ?? null }}
|
||||
</th>
|
||||
@foreach ($generic['prices'] as $price)
|
||||
<th>
|
||||
{{ $price['quantity'] ?? null }} {{ $price['unity_id'] ?? null }}
|
||||
</th>
|
||||
@endforeach
|
||||
</thead>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $generic['name'] ?? null }}
|
||||
</td>
|
||||
@foreach ($generic['prices'] as $price)
|
||||
<td>
|
||||
{{ $price['price_taxed'] ?? null }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
@@ -1,36 +0,0 @@
|
||||
@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
|
||||
@@ -1,15 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('tag_groups.title'),
|
||||
'subtitle' => __('tag_groups.create.title'),
|
||||
'breadcrumb' => [__('tag_groups.title'), __('tag_groups.create.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.TagGroups.store', 'id' => 'tag-group-form', 'autocomplete' => 'off']) }}
|
||||
@include('Shop.Admin.TagGroups.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('tag_groups.title'),
|
||||
'subtitle' => __('tag_groups.edit.title'),
|
||||
'breadcrumb' => [__('tag_groups.title'), __('tag_groups.edit.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.TagGroups.update', 'id' => 'tag-group-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
@include('Shop.Admin.TagGroups.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,15 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{{ Form::label('name', 'Famille d\'articles') }}
|
||||
@include('components.select', ['name' => 'article_family_id', 'value' => $article_family_id ?? null, 'list' => $article_families ?? [], 'required' => true, 'with_empty' => ''])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-3">
|
||||
<div class="col-md-6">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => isset($name) ? $name : null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
@@ -1,9 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.tag_families.title'),
|
||||
'subtitle' => __('Shop.tag_families.list'),
|
||||
'breadcrumb' => [__('Shop.tag_families.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.TagGroups.index'), 'model' => 'tag_groups'])
|
||||
@endsection
|
||||
@@ -1,36 +0,0 @@
|
||||
@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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user