Rename Admin views directory, add some functions on models
This commit is contained in:
15
resources/views/Admin/Botanic/Families/create.blade.php
Normal file
15
resources/views/Admin/Botanic/Families/create.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('boilerplate::layout.index', [
|
||||
'title' => __('Botanic.families.title'),
|
||||
'subtitle' => __('Botanic.families.add'),
|
||||
'breadcrumb' => [__('Botanic.families.title'), __('Botanic.families.add')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Botanic.Families.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
@include('Admin.Botanic.Families.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Admin/Botanic/Families/edit.blade.php
Normal file
16
resources/views/Admin/Botanic/Families/edit.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.families.title'),
|
||||
'subtitle' => __('Botanic.families.edit'),
|
||||
'breadcrumb' => ['Familles']
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Botanic.Families.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $family['id'] }}">
|
||||
|
||||
@include('Admin.Botanic.Families.form')
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
41
resources/views/Admin/Botanic/Families/form.blade.php
Normal file
41
resources/views/Admin/Botanic/Families/form.blade.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => (isset($family['name'])) ? $family['name'] : null, 'required' => true])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('alias', 'Alias') }}
|
||||
@include('components.input', ['name' => 'alias', 'value' => (isset($family['alias'])) ? $family['alias'] : null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('latin', 'Nom latin') }}
|
||||
@include('components.input', ['name' => 'latin', 'value' => (isset($family['latin'])) ? $family['latin'] : null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => isset($family['description']) ? $family['description'] : null, 'class' => 'editor', 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.editor')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initEditor();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
11
resources/views/Admin/Botanic/Families/list.blade.php
Normal file
11
resources/views/Admin/Botanic/Families/list.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.families.title'),
|
||||
'subtitle' => __('Botanic.families.list'),
|
||||
'breadcrumb' => [__('Botanic.families.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Botanic.Families.index'), 'model' => 'families'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
28
resources/views/Admin/Botanic/Families/show.blade.php
Normal file
28
resources/views/Admin/Botanic/Families/show.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('families.title'),
|
||||
'subtitle' => __('families.title'),
|
||||
'breadcrumb' => [__('families.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>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
13
resources/views/Admin/Botanic/Genres/create.blade.php
Normal file
13
resources/views/Admin/Botanic/Genres/create.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.genres.title'),
|
||||
'subtitle' => __('Botanic.genres.add'),
|
||||
'breadcrumb' => [__('Botanic.genres.title'), __('Botanic.genres.add')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Botanic.Genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Botanic.Genres.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Admin/Botanic/Genres/edit.blade.php
Normal file
16
resources/views/Admin/Botanic/Genres/edit.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.genres.title'),
|
||||
'subtitle' => __('Botanic.genres.edit'),
|
||||
'breadcrumb' => ['Familles']
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Botanic.Genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $genre['id'] }}">
|
||||
|
||||
@include('Admin.Botanic.Genres.form')
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
43
resources/views/Admin/Botanic/Genres/form.blade.php
Normal file
43
resources/views/Admin/Botanic/Genres/form.blade.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => $genre['name'] ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('family', 'Famille') }}
|
||||
@include('components.select', ['name' => 'family_id', 'list' => $families, 'value' => $genre['family_id'] ?? null, 'required' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('alias', 'Alias') }}
|
||||
@include('components.input', ['name' => 'alias', 'value' => $genre['alias'] ?? null, 'required' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('latin', 'Nom latin') }}
|
||||
@include('components.input', ['name' => 'latin', 'value' => $genre['latin'] ?? null, 'required' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => $genre['description'] ?? null, 'class' => 'editor', 'required' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
12
resources/views/Admin/Botanic/Genres/list.blade.php
Normal file
12
resources/views/Admin/Botanic/Genres/list.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.genres.title'),
|
||||
'subtitle' => __('Botanic.genres.list'),
|
||||
'breadcrumb' => [__('Botanic.genres.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Botanic.Genres.index'), 'model' => 'genres'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
30
resources/views/Admin/Botanic/Genres/show.blade.php
Normal file
30
resources/views/Admin/Botanic/Genres/show.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('components.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
13
resources/views/Admin/Botanic/Species/create.blade.php
Normal file
13
resources/views/Admin/Botanic/Species/create.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.species.title'),
|
||||
'subtitle' => __('Botanic.species.add'),
|
||||
'breadcrumb' => [__('Botanic.species.title'), __('Botanic.species.add')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Botanic.Species.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
@include('Admin.Botanic.Species.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
14
resources/views/Admin/Botanic/Species/edit.blade.php
Normal file
14
resources/views/Admin/Botanic/Species/edit.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.species.title'),
|
||||
'subtitle' => __('Botanic.species.edit'),
|
||||
'breadcrumb' => [__('Botanic.species.title'), __('Botanic.species.list')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Botanic.Species.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
<input type="hidden" name="id" value="{{ $specie['id'] }}">
|
||||
@include('Admin.Botanic.Species.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
56
resources/views/Admin/Botanic/Species/form.blade.php
Normal file
56
resources/views/Admin/Botanic/Species/form.blade.php
Normal file
@@ -0,0 +1,56 @@
|
||||
@include('boilerplate::load.fileinput')
|
||||
@include('boilerplate::load.select2')
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => $specie['name'] ?? null, 'required' => true])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('latin', 'Nom latin') }}
|
||||
@include('components.input', ['name' => 'latin', 'value' => $specie['latin'] ?? null, 'required' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('genre', 'Genre') }}
|
||||
@include('components.select', ['name' => 'genre_id', 'list' => $genres, 'value' => $specie['genre_id'] ?? null, 'class' => 'select2', 'with_empty' => '', 'required' => false])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('alias', 'Alias') }}
|
||||
@include('components.input', ['name' => 'alias', 'value' => $specie['alias'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => $specie['description'] ?? null, 'class' => 'editor', 'required' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
{{ Form::label('photo', 'Photos') }}
|
||||
@include('components.file', ['name' => 'name', 'value' => $specie['name'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.upload.fileinput')
|
||||
@include('load.form.select2')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initEditor();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
12
resources/views/Admin/Botanic/Species/list.blade.php
Normal file
12
resources/views/Admin/Botanic/Species/list.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.species.title'),
|
||||
'subtitle' => __('Botanic.species.list'),
|
||||
'breadcrumb' => [__('Botanic.species.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Botanic.Species.index'), 'model' => 'species'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
30
resources/views/Admin/Botanic/Species/show.blade.php
Normal file
30
resources/views/Admin/Botanic/Species/show.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('components.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Admin/Botanic/Varieties/create.blade.php
Normal file
16
resources/views/Admin/Botanic/Varieties/create.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.varieties.title'),
|
||||
'subtitle' => __('Botanic.varieties.add'),
|
||||
'breadcrumb' => [__('Botanic.varieties.title'), __('Botanic.varieties.add')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Botanic.Varieties.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
@include('Admin.Botanic.Varieties.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
14
resources/views/Admin/Botanic/Varieties/edit.blade.php
Normal file
14
resources/views/Admin/Botanic/Varieties/edit.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.varieties.title'),
|
||||
'subtitle' => __('Botanic.varieties.edit'),
|
||||
'breadcrumb' => [__('Botanic.varieties.title'), __('Botanic.varieties.edit')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Botanic.Varieties.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
<input type="hidden" name="id" id="id" value="{{ $id }}">
|
||||
@include('Admin.Botanic.Varieties.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
55
resources/views/Admin/Botanic/Varieties/form.blade.php
Normal file
55
resources/views/Admin/Botanic/Varieties/form.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => $name ?? null, 'required' => true])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('genre', 'Espèce') }}
|
||||
@include('components.select', ['name' => 'specie_id', 'list' => $species, 'value' => $specie_id ?? null, 'class' => 'select2 form-control', 'with_empty' => '', 'required' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tags', 'Tags') }}
|
||||
@include('components.select-tree', ['name' => 'tags[]', 'list' => $tags_list, 'values' => $tags ?? null, 'class' => 'select2 form-control', 'multiple' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => $description ?? null, 'class' => 'editor', 'rows' => 5, 'required' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
@include('components.uploader.widget', ['load_url' => route('Admin.Botanic.Varieties.getImages', ['id' => $id ?? false]), 'delete_url' => route('Admin.Botanic.Varieties.deleteImage'), 'name' => 'images'])
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.appender')
|
||||
@include('load.form.editor')
|
||||
@include('load.form.save')
|
||||
@include('load.form.select2')
|
||||
@include('load.layout.chevron')
|
||||
@include('boilerplate::load.fileinput')
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initChevron();
|
||||
initEditor();
|
||||
initSaveForm();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
12
resources/views/Admin/Botanic/Varieties/list.blade.php
Normal file
12
resources/views/Admin/Botanic/Varieties/list.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Botanic.varieties.title'),
|
||||
'subtitle' => __('Botanic.varieties.list'),
|
||||
'breadcrumb' => [__('Botanic.varieties.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Botanic.Varieties.index'), 'model' => 'varieties'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
30
resources/views/Admin/Botanic/Varieties/show.blade.php
Normal file
30
resources/views/Admin/Botanic/Varieties/show.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('components.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
21
resources/views/Admin/Core/App/Application/create.blade.php
Normal file
21
resources/views/Admin/Core/App/Application/create.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('countries.title'),
|
||||
'subtitle' => __('countries.add'),
|
||||
'breadcrumb' => [
|
||||
__('Country.title') => 'Admin.Country.index'
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Country.store', 'id' => 'country-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Country.form')
|
||||
@endcomponent
|
||||
</form>
|
||||
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('DueDiligence.distributors.title'),
|
||||
'subtitle' => __('DueDiligence.distributors.list'),
|
||||
'breadcrumb' => [__('DueDiligence.distributors.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('apps.DueDiligence.admin.Distributor.partials.dashboard')
|
||||
|
||||
@endsection
|
||||
|
||||
23
resources/views/Admin/Core/App/Application/edit.blade.php
Normal file
23
resources/views/Admin/Core/App/Application/edit.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('countries.title'),
|
||||
'subtitle' => __('countries.edit'),
|
||||
'breadcrumb' => [
|
||||
__('countries.title') => 'Admin.Country.index'
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Country.store', 'id' => 'country-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $country['id'] }}">
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Country.form')
|
||||
@endcomponent
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,3 @@
|
||||
<html>
|
||||
@include('apps.DueDiligence.admin.Distributor.partials.table', ['logo2' => public_path('/storage/partner/fundglobam/images/logo.png') ])
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ App::getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
</head>
|
||||
<body>
|
||||
@include('apps.DueDiligence.admin.Distributor.partials.table', ['logo' => '/storage/partner/fundglobam/images/logo.png'])
|
||||
|
||||
<script>
|
||||
// window.print();
|
||||
// window.history.back();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
31
resources/views/Admin/Core/App/Application/form.blade.php
Normal file
31
resources/views/Admin/Core/App/Application/form.blade.php
Normal file
@@ -0,0 +1,31 @@
|
||||
@include('load.form.select2')
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', __('name')) }}
|
||||
@include('components.input-translate', ['name' => 'name', 'value' => $country['name'] ?? null, 'translations' => $country->translations['name'] ?? null, 'required' => true])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('zone', __('zone')) }}
|
||||
@include('components.select', ['name' => 'zone', 'value' => $country['zone_id'] ?? null, 'list' => $zones ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', __('region')) }}
|
||||
@include('components.select', ['name' => 'region', 'value' => $country['region'] ?? null, 'list' => $regions ?? null, 'required' => true])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('nale', __('subregion')) }}
|
||||
@include('components.select', ['name' => 'zone', 'value' => $country['subregion'] ?? null, 'list' => $subregions ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
57
resources/views/Admin/Core/App/Application/index.blade.php
Normal file
57
resources/views/Admin/Core/App/Application/index.blade.php
Normal file
@@ -0,0 +1,57 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('application.title'),
|
||||
'subtitle' => __('application.list'),
|
||||
'breadcrumb' => [
|
||||
]
|
||||
])
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.toggle')
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
<nav>
|
||||
<div class="nav nav-tabs">
|
||||
<a href="#dashboard" data-toggle="tab" class="nav-item nav-link" role="tab" aria-controls="dashboard" aria-selected="true">
|
||||
{{ __('dashboard') }}
|
||||
</a>
|
||||
<a href="#list" data-toggle="tab" class="nav-item nav-link active" role="tab" aria-controls="list" aria-selected="false">
|
||||
{{ __('list') }}
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="tab-content mb-0">
|
||||
|
||||
<div class="tab-pane fade" id="dashboard">
|
||||
@component('components.card')
|
||||
@include('admin.Core.App.Application.partials.dashboard')
|
||||
@endcomponent
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade show active" id="list">
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Core.App.Application.index'), 'model' => 'applications', 'with_filters' => true, 'with_exports' => true, 'callback' => 'handleApplication();'])
|
||||
@endcomponent
|
||||
|
||||
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-applications-filters'])
|
||||
@include('admin.Core.App.Application.partials.filters', ['model' => 'applications'])
|
||||
@endcomponent
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function handleApplication() {
|
||||
initToggle("{{ route('Admin.Core.App.Application.toggleActive') }}");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
31
resources/views/Admin/Core/App/Application/list.blade.php
Normal file
31
resources/views/Admin/Core/App/Application/list.blade.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<h3 class="text-white">{{ __('documentation_types') }}</h3>
|
||||
|
||||
@include('components.datatable', ['route' => route('Admin.DocumentationType.index'), 'model' => 'documentation_types', 'with_filters' => true, 'with_exports' => true, 'create_callback' => 'DocumentationTypeCreate();', 'edit_callback' => 'DocumentationTypeEdit(id);'])
|
||||
|
||||
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-documentation_types-filters'])
|
||||
@include('apps.admin.DocumentationType.partials.filters', ['model' => 'documentation_types'])
|
||||
@endcomponent
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
function DocumentationTypeCreate(id) {
|
||||
var distributor_id = $('#distributor_id').val();
|
||||
var url_open = "{{ route('Admin.DocumentationType.modalCreate') }}" + '/' + distributor_id;
|
||||
var url_save = "{{ route('Admin.DocumentationType.storeAjax') }}";
|
||||
openModal("{{ __('country') }}", '#country-form', url_open, url_save, "DocumentationTypeRefresh();");
|
||||
}
|
||||
|
||||
function DocumentationTypeEdit(id) {
|
||||
var url_open = "{{ route('Admin.DocumentationType.modalEdit') }}" + '/' + id;
|
||||
var url_save = "{{ route('Admin.DocumentationType.storeAjax') }}";
|
||||
openModal("{{ __('country') }}", '#country-form', url_open, url_save, "DocumentationTypeRefresh();");
|
||||
}
|
||||
|
||||
function DocumentationTypeRefresh()
|
||||
{
|
||||
reloadDatatable("documentation_types");
|
||||
}
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
76
resources/views/Admin/Core/App/Application/modal.blade.php
Normal file
76
resources/views/Admin/Core/App/Application/modal.blade.php
Normal file
@@ -0,0 +1,76 @@
|
||||
{{ Form::open(['route' => 'DueDiligence.Admin.CountryParam.store', 'id' => 'country_param-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $country_param['id'] ?? null }}">
|
||||
<input type="hidden" name="distributor_id" value="{{ $country_param['distributor_id'] ?? null }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-4">
|
||||
{{ Form::label('name', __('date')) }}<br/>
|
||||
@include('components.form.datepicker', ['name' => 'date', 'value' => $country_param['date'] ?? null])
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
{{ Form::label('name', __('ope_rrai')) }}<br/>
|
||||
@include('components.input', ['name' => 'rrai', 'value' => $country_param['rrai'] ?? null])
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
{{ Form::label('name', __('color')) }}<br/>
|
||||
@include('components.select', ['name' => 'index', 'list' => App\Repositories\DueDiligence\CountryParams::getRiskColors(), 'value' => $country_param['index'] ?? null, 'with_empty' => ''])
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
{{ Form::label('name', __('broken_arrows')) }}<br/>
|
||||
@include('components.input', ['name' => 'broken', 'value' => $country_param['broken'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('name', __('comments')) }}<br/>
|
||||
@include('components.form.editor', ['name' => 'comments', 'value' => $country_param['comments'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@include('components.widgets.pdfPreview',['container' => 'country_param-file'])
|
||||
|
||||
{{ Form::label('name', __('file')) }}<br/>
|
||||
@include('components.file', ['name' => 'file', 'value' => $country_param['file'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
initSelect2();
|
||||
var id = {{ $country_param['id'] ?? 'false' }};
|
||||
var distributor_id = {{ $country_param['distributor_id'] ?? 'false' }};
|
||||
|
||||
var path = '/DueDiligence/Admin/CountryParam';
|
||||
@if (isset($country_param['file']))
|
||||
var file = path + '/getDocument/' + distributor_id + '/' + encodeURIComponent("{{ $country_param['file'] }}");
|
||||
PDFObject.embed(file, "#country_param-file-preview");
|
||||
$('#country_param-file').removeClass('d-none');
|
||||
@endif
|
||||
|
||||
$('.file').fileinput({
|
||||
showCaption: false,
|
||||
dropZoneEnabled: false,
|
||||
showUpload: false,
|
||||
});
|
||||
|
||||
$('.datepicker').datetimepicker({
|
||||
format: 'L',
|
||||
@if (!isset($country_param['date']))
|
||||
date: new Date()
|
||||
@endif
|
||||
|
||||
});
|
||||
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,2 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
</form>
|
||||
16
resources/views/Admin/Core/App/Application/show.blade.php
Normal file
16
resources/views/Admin/Core/App/Application/show.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('DueDiligence.distributors.title'),
|
||||
'subtitle' => __('DueDiligence.distributors.show'),
|
||||
'breadcrumb' => [
|
||||
__('DueDiligence.title') => 'DueDiligence.Admin.index',
|
||||
__('DueDiligence.distributors.title') => 'DueDiligence.Admin.Distributor.index'
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@component('components.card')
|
||||
@include('apps.DueDiligence.admin.Distributor.form')
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,21 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('application_modules.title'),
|
||||
'subtitle' => __('application_modules.add'),
|
||||
'breadcrumb' => [
|
||||
__('Country.title') => 'Admin.Core.App.ApplicationModule.index'
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.App.ApplicationModule.store', 'id' => 'application_module-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.App.ApplicationModule.form')
|
||||
@endcomponent
|
||||
</form>
|
||||
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,12 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('DueDiligence.distributors.title'),
|
||||
'subtitle' => __('DueDiligence.distributors.list'),
|
||||
'breadcrumb' => [__('DueDiligence.distributors.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('apps.DueDiligence.admin.Distributor.partials.dashboard')
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('application_modules.title'),
|
||||
'subtitle' => __('application_modules.edit'),
|
||||
'breadcrumb' => [
|
||||
__('Application_Module.title') => 'Admin.Core.App.ApplicationModule.index'
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.App.ApplicationModule.store', 'id' => 'application_module-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $application_module['id'] ?? null }}">
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.App.ApplicationModule.form')
|
||||
@endcomponent
|
||||
</form>
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<html>
|
||||
@include('apps.DueDiligence.admin.Distributor.partials.table', ['logo2' => public_path('/storage/partner/fundglobam/images/logo.png') ])
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ App::getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
</head>
|
||||
<body>
|
||||
@include('apps.DueDiligence.admin.Distributor.partials.table', ['logo' => '/storage/partner/fundglobam/images/logo.png'])
|
||||
|
||||
<script>
|
||||
// window.print();
|
||||
// window.history.back();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,25 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', __('application')) }}
|
||||
@include('components.select', ['name' => 'application_id', 'value' => $application_module['application_id'] ?? null, 'list' => $applications, 'required' => true, 'with_empty' => ''])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', __('name')) }}
|
||||
@include('components.input-translate', ['name' => 'name', 'value' => $application_module['name'] ?? null, 'translations' => $application_module->translations['name'] ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initSaveForm('.save', '#application_module-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,57 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('application_module.title'),
|
||||
'subtitle' => __('application_module.list'),
|
||||
'breadcrumb' => [
|
||||
]
|
||||
])
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.toggle')
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
<nav>
|
||||
<div class="nav nav-tabs">
|
||||
<a href="#dashboard" data-toggle="tab" class="nav-item nav-link" role="tab" aria-controls="dashboard" aria-selected="true">
|
||||
{{ __('dashboard') }}
|
||||
</a>
|
||||
<a href="#list" data-toggle="tab" class="nav-item nav-link active" role="tab" aria-controls="list" aria-selected="false">
|
||||
{{ __('list') }}
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="tab-content mb-0">
|
||||
|
||||
<div class="tab-pane fade" id="dashboard">
|
||||
@component('components.card')
|
||||
@include('admin.Core.App.ApplicationModule.partials.dashboard')
|
||||
@endcomponent
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade show active" id="list">
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Core.App.ApplicationModule.index'), 'model' => 'application_modules', 'with_filters' => true, 'with_exports' => true, 'callback' => 'handleApplicationModule();'])
|
||||
@endcomponent
|
||||
|
||||
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-application_modules-filters'])
|
||||
@include('admin.Core.App.ApplicationModule.partials.filters', ['model' => 'applications'])
|
||||
@endcomponent
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function handleApplicationModule() {
|
||||
initToggle("{{ route('Admin.Core.App.ApplicationModule.toggleActive') }}");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,31 @@
|
||||
<h3 class="text-white">{{ __('documentation_types') }}</h3>
|
||||
|
||||
@include('components.datatable', ['route' => route('Admin.DocumentationType.index'), 'model' => 'documentation_types', 'with_filters' => true, 'with_exports' => true, 'create_callback' => 'DocumentationTypeCreate();', 'edit_callback' => 'DocumentationTypeEdit(id);'])
|
||||
|
||||
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-documentation_types-filters'])
|
||||
@include('apps.admin.DocumentationType.partials.filters', ['model' => 'documentation_types'])
|
||||
@endcomponent
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
function DocumentationTypeCreate(id) {
|
||||
var distributor_id = $('#distributor_id').val();
|
||||
var url_open = "{{ route('Admin.DocumentationType.modalCreate') }}" + '/' + distributor_id;
|
||||
var url_save = "{{ route('Admin.DocumentationType.storeAjax') }}";
|
||||
openModal("{{ __('country') }}", '#country-form', url_open, url_save, "DocumentationTypeRefresh();");
|
||||
}
|
||||
|
||||
function DocumentationTypeEdit(id) {
|
||||
var url_open = "{{ route('Admin.DocumentationType.modalEdit') }}" + '/' + id;
|
||||
var url_save = "{{ route('Admin.DocumentationType.storeAjax') }}";
|
||||
openModal("{{ __('country') }}", '#country-form', url_open, url_save, "DocumentationTypeRefresh();");
|
||||
}
|
||||
|
||||
function DocumentationTypeRefresh()
|
||||
{
|
||||
reloadDatatable("documentation_types");
|
||||
}
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,76 @@
|
||||
{{ Form::open(['route' => 'DueDiligence.Admin.CountryParam.store', 'id' => 'country_param-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $country_param['id'] ?? null }}">
|
||||
<input type="hidden" name="distributor_id" value="{{ $country_param['distributor_id'] ?? null }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-4">
|
||||
{{ Form::label('name', __('date')) }}<br/>
|
||||
@include('components.form.datepicker', ['name' => 'date', 'value' => $country_param['date'] ?? null])
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
{{ Form::label('name', __('ope_rrai')) }}<br/>
|
||||
@include('components.input', ['name' => 'rrai', 'value' => $country_param['rrai'] ?? null])
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
{{ Form::label('name', __('color')) }}<br/>
|
||||
@include('components.select', ['name' => 'index', 'list' => App\Repositories\DueDiligence\CountryParams::getRiskColors(), 'value' => $country_param['index'] ?? null, 'with_empty' => ''])
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
{{ Form::label('name', __('broken_arrows')) }}<br/>
|
||||
@include('components.input', ['name' => 'broken', 'value' => $country_param['broken'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('name', __('comments')) }}<br/>
|
||||
@include('components.form.editor', ['name' => 'comments', 'value' => $country_param['comments'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@include('components.widgets.pdfPreview',['container' => 'country_param-file'])
|
||||
|
||||
{{ Form::label('name', __('file')) }}<br/>
|
||||
@include('components.file', ['name' => 'file', 'value' => $country_param['file'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
initSelect2();
|
||||
var id = {{ $country_param['id'] ?? 'false' }};
|
||||
var distributor_id = {{ $country_param['distributor_id'] ?? 'false' }};
|
||||
|
||||
var path = '/DueDiligence/Admin/CountryParam';
|
||||
@if (isset($country_param['file']))
|
||||
var file = path + '/getDocument/' + distributor_id + '/' + encodeURIComponent("{{ $country_param['file'] }}");
|
||||
PDFObject.embed(file, "#country_param-file-preview");
|
||||
$('#country_param-file').removeClass('d-none');
|
||||
@endif
|
||||
|
||||
$('.file').fileinput({
|
||||
showCaption: false,
|
||||
dropZoneEnabled: false,
|
||||
showUpload: false,
|
||||
});
|
||||
|
||||
$('.datepicker').datetimepicker({
|
||||
format: 'L',
|
||||
@if (!isset($country_param['date']))
|
||||
date: new Date()
|
||||
@endif
|
||||
|
||||
});
|
||||
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,2 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
</form>
|
||||
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('DueDiligence.distributors.title'),
|
||||
'subtitle' => __('DueDiligence.distributors.show'),
|
||||
'breadcrumb' => [
|
||||
__('DueDiligence.title') => 'DueDiligence.Admin.index',
|
||||
__('DueDiligence.distributors.title') => 'DueDiligence.Admin.Distributor.index'
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@component('components.card')
|
||||
@include('apps.DueDiligence.admin.Distributor.form')
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
21
resources/views/Admin/Core/Auth/Permission/create.blade.php
Normal file
21
resources/views/Admin/Core/Auth/Permission/create.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Admin.permission.title'),
|
||||
'subtitle' => __('Admin.permission.add'),
|
||||
'breadcrumb' => [
|
||||
__('Admin.permission.title') => 'Admin.Core.Auth.Permission.index',
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.Permission.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.Auth.Permission.form')
|
||||
@endcomponent
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
23
resources/views/Admin/Core/Auth/Permission/edit.blade.php
Normal file
23
resources/views/Admin/Core/Auth/Permission/edit.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Admin.permission.title'),
|
||||
'subtitle' => __('Admin.permission.add'),
|
||||
'breadcrumb' => [
|
||||
__('Admin.permission.title') => 'Admin.Core.Auth.Permission.index',
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.Permission.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $permission['id'] }}">
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.Auth.Permission.form')
|
||||
@endcomponent
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
25
resources/views/Admin/Core/Auth/Permission/form.blade.php
Normal file
25
resources/views/Admin/Core/Auth/Permission/form.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
<label for="name">{{ __('module') }}</label>
|
||||
@include('components.select', ['name' => 'application_module_id', 'value' => $permission['application_module_id'] ?? null, 'list' => $application_modules ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
<label for="name">{{ __('name') }}</label>
|
||||
@include('components.input', ['name' => 'name', 'value' => $permission['name'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (isset($roles) && count($roles))
|
||||
@include('admin.Core.Auth.User.roles')
|
||||
@endif
|
||||
|
||||
@include('load.form.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
initSaveForm();
|
||||
</script>
|
||||
@endpush
|
||||
20
resources/views/Admin/Core/Auth/Permission/index.blade.php
Normal file
20
resources/views/Admin/Core/Auth/Permission/index.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Permission.title'),
|
||||
'subtitle' => __('Permission.list'),
|
||||
'breadcrumb' => [
|
||||
__('Permission.title') => 'Admin.Core.Auth.Permission.index',
|
||||
]
|
||||
])
|
||||
|
||||
@include('load.form.select2')
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Core.Auth.Permission.index'), 'model' => 'permissions'])
|
||||
@endcomponent
|
||||
|
||||
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-filters'])
|
||||
@include('admin.Core.Auth.Permission.partials.filters')
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
55
resources/views/Admin/Core/Auth/Permission/manage.blade.php
Normal file
55
resources/views/Admin/Core/Auth/Permission/manage.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<div class="modobox-sub-header-modify-element-name">{{ $name }}</div>
|
||||
|
||||
<div class="row margin-bottom-0">
|
||||
<div class="col-sm-12 information_messages_manage p-2">
|
||||
<div class="alert alert-info noradius mb-0">
|
||||
<div class="bg-blue alert-icon">
|
||||
<i class="glyph-icon icon-info"></i>
|
||||
</div>
|
||||
<div class="alert-content">
|
||||
<h4 class="alert-title">{{ __('informations') }}</h4>
|
||||
<p>{{ __('manage_clients_for_user') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="content-box noborder noradius mb-0" id="user_client_content_box">
|
||||
<h3 class="content-box-header noradius bg-default" id="toggle_button_user_clients">
|
||||
<span class="header-wrapper">
|
||||
<i class="glyph-icon icon-caret-right mr-1"></i>
|
||||
{{ __('clients') }}
|
||||
<span class="bs-badge badge-info {{ $label_opacity }}">
|
||||
{{ count($clients_selected) }}
|
||||
</span>
|
||||
</span>
|
||||
<div class="header-buttons-separator">
|
||||
<a href="#" id="user_clients_assoc_submit" class="assoc-submit-btn hidden icon-separator">
|
||||
<i class="glyph-icon icon-save"></i>
|
||||
</a>
|
||||
</div>
|
||||
</h3>
|
||||
<div class="content-box-wrapper noradius" style="display:none;">
|
||||
<div id="user_clients_assoc_list">
|
||||
<form class="form-horizontal form_inline" name="user_clients_assoc_form" onsubmit="return false;" method="POST">
|
||||
<div class="form-group margin-bottom-0">
|
||||
<div class="col-sm-12 padding-left-15 padding-right-15">
|
||||
<input type="hidden" name="user_id_client_assoc" id="user_id_client_assoc" value="{{ $id }}" class="form-control" />
|
||||
<select multiple class="multi-select form-no-control" name="user_clients_list" id="user_clients_list">
|
||||
@foreach ($clients as $client)
|
||||
<option value="{{ $client->id }}" {{ !($client->active) ? 'disabled' : '' }} {{ in-array($client->id, $clients_selected) ?? 'selected' : ''>
|
||||
{{ $client->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<form id="filters">
|
||||
|
||||
</form>
|
||||
28
resources/views/Admin/Core/Auth/Permission/show.blade.php
Normal file
28
resources/views/Admin/Core/Auth/Permission/show.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('families.title'),
|
||||
'subtitle' => __('families.title'),
|
||||
'breadcrumb' => [__('families.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>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
21
resources/views/Admin/Core/Auth/Role/create.blade.php
Normal file
21
resources/views/Admin/Core/Auth/Role/create.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Admin.role.title'),
|
||||
'subtitle' => __('Admin.role.add'),
|
||||
'breadcrumb' => [
|
||||
__('Admin.role.title') => 'Admin.Core.Auth.Role.index',
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.Role.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.Auth.Role.form')
|
||||
@endcomponent
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
23
resources/views/Admin/Core/Auth/Role/edit.blade.php
Normal file
23
resources/views/Admin/Core/Auth/Role/edit.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Admin.role.title'),
|
||||
'subtitle' => __('Admin.role.add'),
|
||||
'breadcrumb' => [
|
||||
__('Admin.role.title') => 'Admin.Core.Auth.Role.index',
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.Role.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $role['id'] }}">
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.Auth.Role.form')
|
||||
@endcomponent
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
20
resources/views/Admin/Core/Auth/Role/form.blade.php
Normal file
20
resources/views/Admin/Core/Auth/Role/form.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="row form-group">
|
||||
<label class="col-sm-3" for="name">{{ __('name') }} <sup>*</sup></label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" name="name" id="name" maxlength="100" required value="{{ $role['name'] }}" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="control-label light" for="translated">{{ __('permissions') }}</label>
|
||||
<div class="col-12">
|
||||
@include('admin.Core.Auth.Role.table-permission')
|
||||
</div>
|
||||
|
||||
@include('load.form.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
initSaveForm();
|
||||
initIcheck();
|
||||
</script>
|
||||
@endpush
|
||||
29
resources/views/Admin/Core/Auth/Role/index.blade.php
Normal file
29
resources/views/Admin/Core/Auth/Role/index.blade.php
Normal file
@@ -0,0 +1,29 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Role.title'),
|
||||
'subtitle' => __('Role.list'),
|
||||
'breadcrumb' => [
|
||||
__('Role.title') => 'Admin.Core.Auth.Role.index',
|
||||
]
|
||||
])
|
||||
|
||||
@include('load.form.select2')
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Core.Auth.Role.index'), 'model' => 'roles', 'callback' => 'handleRoleActive();'])
|
||||
@endcomponent
|
||||
|
||||
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-roles-filters'])
|
||||
@include('admin.Core.Auth.Role.partials.filters')
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
@include('load.form.toggle')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function handleRoleActive() {
|
||||
initToggle("{{ route('Admin.Core.Auth.Role.toggleActive') }}");
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
47
resources/views/Admin/Core/Auth/Role/manage.blade.php
Normal file
47
resources/views/Admin/Core/Auth/Role/manage.blade.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<div class="modobox-sub-header-modify-element-name">{{ $role->name }}</div>
|
||||
|
||||
<div class="row margin-bottom-0">
|
||||
<div class="col-sm-12 information_messages_manage padding-left-10 padding-right-10">
|
||||
<div class="alert alert-info noradius margin-bottom-0">
|
||||
<div class="bg-blue alert-icon">
|
||||
<i class="glyph-icon icon-info"></i>
|
||||
</div>
|
||||
<div class="alert-content">
|
||||
<h4 class="alert-title">{{ __('Gestion des droits') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div id="rights" class="col-sm-12" style="padding: 30px;">
|
||||
|
||||
<form class="form-horizontal light" name="{{ $model->name }}_manage_form" onsubmit="return false;" method="POST">
|
||||
<input type="hidden" name="role_id" value="{{ $role->id }}" class="form-control" />
|
||||
|
||||
@foreach ($permissions as $app => $modules)
|
||||
<div>
|
||||
<h3 class="brand">
|
||||
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#rights" href="#collapse_{{ $app }}" aria-expanded="true" aria-controls="collapse_{{ $app }}">
|
||||
{{ $app }}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="collapse_{{ $app }}" class="collapse content-box light p-2" role="tabpanel">
|
||||
|
||||
@foreach ($modules as $module = $actions)
|
||||
<h4 class="brand">{{ $module }}</h4>
|
||||
<div class="inline-group">
|
||||
@foreach ($actions as $permission)
|
||||
<label class="brand ml-3">{{ $permission->action }}</label>
|
||||
<input type="checkbox" name="permissions[{{ $permission->id }}]" value="1">
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,3 @@
|
||||
<form id="filters">
|
||||
|
||||
</form>
|
||||
@@ -0,0 +1,15 @@
|
||||
@if (count($module['permissions']))
|
||||
<tr>
|
||||
<td>{{ $module['name'] }}</td>
|
||||
<td class="form-group light">
|
||||
<div class="row">
|
||||
@foreach ($module['permissions'] as $permission)
|
||||
<div class="col-4 overflow-hidden">
|
||||
<input type="checkbox" name="permissions[{{ $permission['id'] }}]" class="iCheck" data-skin="square" data-color="blue" value="1" @if (in_array($permission['id'],$role['permissions'])) checked @endif>
|
||||
<label class="control-label light">{{ $permission['name'] }}</label>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
28
resources/views/Admin/Core/Auth/Role/show.blade.php
Normal file
28
resources/views/Admin/Core/Auth/Role/show.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('families.title'),
|
||||
'subtitle' => __('families.title'),
|
||||
'breadcrumb' => [__('families.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>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,13 @@
|
||||
<table id="permissions_datatable" class="table table-striped table-bordered responsive nowrap noradius light" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('module') }}</th>
|
||||
<th>{{ __('actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($modules as $module)
|
||||
@include('admin.Core.Auth.Role.row-permission')
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
21
resources/views/Admin/Core/Auth/Team/create.blade.php
Normal file
21
resources/views/Admin/Core/Auth/Team/create.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Admin.user.title'),
|
||||
'subtitle' => __('Admin.user.add'),
|
||||
'breadcrumb' => [
|
||||
__('Admin.user.title') => 'Admin.Core.Auth.User.index',
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.Auth.User.form')
|
||||
@endcomponent
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
23
resources/views/Admin/Core/Auth/Team/edit.blade.php
Normal file
23
resources/views/Admin/Core/Auth/Team/edit.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Admin.user.title'),
|
||||
'subtitle' => __('Admin.user.add'),
|
||||
'breadcrumb' => [
|
||||
__('Admin.user.title') => 'Admin.Core.Auth.User.index',
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $user['id'] }}">
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.Auth.User.form')
|
||||
@endcomponent
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
65
resources/views/Admin/Core/Auth/Team/form.blade.php
Normal file
65
resources/views/Admin/Core/Auth/Team/form.blade.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<div class="row">
|
||||
<div class="col-9">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="last_name">{{ __('name') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'last_name', 'value' => $user['last_name'] ?? ''])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="first_name">{{ __('firstname') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'first_name', 'value' => $user['first_name'] ?? ''])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="username">{{ __('login') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'username', 'value' => $user['username'] ?? ''])
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="password">{{ __('password') }} <sup>*</sup></label>
|
||||
@include('components.password', ['name' => 'password'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="email">{{ __('email') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'email', 'value' => $user['email'] ?? null])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="phone">{{ __('phone') }}</label>
|
||||
@include('components.input', ['name' => 'phone', 'value' => $user['phone'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="third_party_id">{{ __('entity') }} <sup>*</sup></label>
|
||||
@include('components.select', ['name' => 'third_party_id', 'list' => $third_parties ?? null, 'value' => $third_party_id ?? null, 'with_empty' => true ])
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="team">{{ __('team') }} <sup>*</sup></label>
|
||||
@include('components.select', ['name' => 'team_id', 'list' => $teams ?? null, 'value' => $team_id ?? null, 'with_empty' => true ])
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="status">{{ __('status') }} <sup>*</sup></label>
|
||||
@include('components.select', ['name' => 'status_id', 'list' => $statuses ?? null, 'value' => $status_id ?? null, 'with_empty' => true ])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-3">
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label class="control-label light" for="avatar">{{ __('avatar') }}</label>
|
||||
<input type="file" name="avatar" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('admin.Core.Auth.User.roles')
|
||||
|
||||
23
resources/views/Admin/Core/Auth/Team/form.twig
Normal file
23
resources/views/Admin/Core/Auth/Team/form.twig
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="modobox-sub-header-modify-element-name">{{ name }}</div>
|
||||
|
||||
<form class="form-horizontal light" name="update_form" onsubmit="return false;" method="POST">
|
||||
|
||||
<input type="hidden" name="id" id="id" value="{{ id }}" class="form-control" />
|
||||
|
||||
{{ include('Admin.elements.datatable.form-indication') }}
|
||||
|
||||
<div class="row form-group">
|
||||
<label class="col-sm-3 control-label dark" for="name">{{ translate('name') }} <sup>*</sup></label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" name="name" id="name" maxlength="100" required value="{{ name }}" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label class="col-sm-3 control-label dark" for="translated">{{ translate('english_translation') }} <sup>*</sup></label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" name="translated" id="translated" maxlength="30" required value="{{ translated }}" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
20
resources/views/Admin/Core/Auth/Team/index.blade.php
Normal file
20
resources/views/Admin/Core/Auth/Team/index.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Team.title'),
|
||||
'subtitle' => __('Team.list'),
|
||||
'breadcrumb' => [
|
||||
__('Team.title') => 'Admin.Core.Auth.Team.index',
|
||||
]
|
||||
])
|
||||
|
||||
@include('load.form.select2')
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Core.Auth.Team.index'), 'model' => 'users'])
|
||||
@endcomponent
|
||||
|
||||
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-filters'])
|
||||
@include('admin.Core.Auth.Team.partials.filters')
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
55
resources/views/Admin/Core/Auth/Team/manage.blade.php
Normal file
55
resources/views/Admin/Core/Auth/Team/manage.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<div class="modobox-sub-header-modify-element-name">{{ $name }}</div>
|
||||
|
||||
<div class="row margin-bottom-0">
|
||||
<div class="col-sm-12 information_messages_manage p-2">
|
||||
<div class="alert alert-info noradius mb-0">
|
||||
<div class="bg-blue alert-icon">
|
||||
<i class="glyph-icon icon-info"></i>
|
||||
</div>
|
||||
<div class="alert-content">
|
||||
<h4 class="alert-title">{{ __('informations') }}</h4>
|
||||
<p>{{ __('manage_clients_for_user') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="content-box noborder noradius mb-0" id="user_client_content_box">
|
||||
<h3 class="content-box-header noradius bg-default" id="toggle_button_user_clients">
|
||||
<span class="header-wrapper">
|
||||
<i class="glyph-icon icon-caret-right mr-1"></i>
|
||||
{{ __('clients') }}
|
||||
<span class="bs-badge badge-info {{ $label_opacity }}">
|
||||
{{ count($clients_selected) }}
|
||||
</span>
|
||||
</span>
|
||||
<div class="header-buttons-separator">
|
||||
<a href="#" id="user_clients_assoc_submit" class="assoc-submit-btn hidden icon-separator">
|
||||
<i class="glyph-icon icon-save"></i>
|
||||
</a>
|
||||
</div>
|
||||
</h3>
|
||||
<div class="content-box-wrapper noradius" style="display:none;">
|
||||
<div id="user_clients_assoc_list">
|
||||
<form class="form-horizontal form_inline" name="user_clients_assoc_form" onsubmit="return false;" method="POST">
|
||||
<div class="form-group margin-bottom-0">
|
||||
<div class="col-sm-12 padding-left-15 padding-right-15">
|
||||
<input type="hidden" name="user_id_client_assoc" id="user_id_client_assoc" value="{{ $id }}" class="form-control" />
|
||||
<select multiple class="multi-select form-no-control" name="user_clients_list" id="user_clients_list">
|
||||
@foreach ($clients as $client)
|
||||
<option value="{{ $client->id }}" {{ !($client->active) ? 'disabled' : '' }} {{ in-array($client->id, $clients_selected) ?? 'selected' : ''>
|
||||
{{ $client->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
82
resources/views/Admin/Core/Auth/Team/manage.twig
Normal file
82
resources/views/Admin/Core/Auth/Team/manage.twig
Normal file
@@ -0,0 +1,82 @@
|
||||
{% import "macros.forms" as forms %}
|
||||
|
||||
<div class="modobox-sub-header-modify-element-name">{{ team.name }}</div>
|
||||
|
||||
<div class="row margin-bottom-0">
|
||||
<div class="col-sm-12 information_messages_manage padding-left-10 padding-right-10">
|
||||
<div class="alert alert-info noradius margin-bottom-0">
|
||||
<div class="bg-blue alert-icon">
|
||||
<i class="glyph-icon icon-info"></i>
|
||||
</div>
|
||||
<div class="alert-content">
|
||||
<h4 class="alert-title">{{ translate('informations') }}</h4>
|
||||
<p>{{ translate('select_elements_of_your_choice_to_associate_with_the_selected_team') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="content-box noborder noradius margin-bottom-0" id="team_third_party_content_box">
|
||||
<h3 class="content-box-header noradius bg-default" id="toggle_button_team_third_parties_assoc">
|
||||
<span class="header-wrapper">
|
||||
<i class="glyph-icon icon-caret-right margin-right-5"></i>
|
||||
{{ translate('entity') }} <span class="bs-badge badge-info {{ label_opacity }}">{{ team.third_parties|length }}</span>
|
||||
</span>
|
||||
<div class="header-buttons-separator">
|
||||
<a href="#" id="teams_third_party_assoc_submit" class="assoc-submit-btn hidden icon-separator">
|
||||
<i class="glyph-icon icon-save"></i>
|
||||
</a>
|
||||
</div>
|
||||
</h3>
|
||||
<div class="content-box-wrapper noradius collapse">
|
||||
<div id="teams_third_parties_assoc_list">
|
||||
<form class="form-horizontal form_inline" name="teams_third_party_assoc_form" onsubmit="return false;" method="POST">
|
||||
<div class="form-group margin-bottom-0">
|
||||
<div class="col-sm-12 padding-left-15 padding-right-15">
|
||||
<input type="hidden" name="team_id_third_party_assoc" id="team_id_third_party_assoc" value="{{ team.id }}" class="form-control" />
|
||||
<select multiple class="multi-select form-no-control" name="team_third_parties_list" id="team_third_parties_list">
|
||||
{{ forms.options(third_parties, team.third_parties) }}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="content-box noborder noradius margin-bottom-0" id="team_user_status_content_box">
|
||||
<h3 class="content-box-header noradius bg-default" id="toggle_button_team_user_statuses_assoc">
|
||||
<span class="header-wrapper">
|
||||
<i class="glyph-icon icon-caret-right margin-right-5"></i>
|
||||
{{ translate('user_statuses') }} <span class="bs-badge badge-info {{ user_label_opacity }}"> {{ team.roles|length }} </span>
|
||||
</span>
|
||||
<div class="header-buttons-separator">
|
||||
<a href="#" id="teams_user_status_assoc_submit" class="assoc-submit-btn hidden icon-separator">
|
||||
<i class="glyph-icon icon-save"></i>
|
||||
</a>
|
||||
</div>
|
||||
</h3>
|
||||
<div class="content-box-wrapper noradius" style="display:none;">
|
||||
<div id="teams_user_statuses_assoc_list">
|
||||
<form class="form-horizontal form_inline" name="teams_user_status_assoc_form" onsubmit="return false;" method="POST">
|
||||
<div class="form-group margin-bottom-0">
|
||||
<div class="col-sm-12 padding-left-15 padding-right-15">
|
||||
<input type="hidden" name="team_id_user_status_assoc" id="team_id_user_status_assoc" value="{{ team.id }}" class="form-control" />
|
||||
<select multiple class="multi-select form-no-control" name="team_user_statuses_list" id="team_user_statuses_list">
|
||||
{{ forms.html_multioptions(roles, team.roles) }}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<form id="filters">
|
||||
|
||||
</form>
|
||||
28
resources/views/Admin/Core/Auth/Team/show.blade.php
Normal file
28
resources/views/Admin/Core/Auth/Team/show.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('families.title'),
|
||||
'subtitle' => __('families.title'),
|
||||
'breadcrumb' => [__('families.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>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
21
resources/views/Admin/Core/Auth/User/create.blade.php
Normal file
21
resources/views/Admin/Core/Auth/User/create.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Admin.user.title'),
|
||||
'subtitle' => __('Admin.user.add'),
|
||||
'breadcrumb' => [
|
||||
__('Admin.user.title') => 'Admin.Core.Auth.User.index',
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.Auth.User.form')
|
||||
@endcomponent
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
23
resources/views/Admin/Core/Auth/User/edit.blade.php
Normal file
23
resources/views/Admin/Core/Auth/User/edit.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Admin.user.title'),
|
||||
'subtitle' => __('Admin.user.add'),
|
||||
'breadcrumb' => [
|
||||
__('Admin.user.title') => 'Admin.Core.Auth.User.index',
|
||||
]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $user['id'] }}">
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@component('components.card')
|
||||
@include('admin.Core.Auth.User.form')
|
||||
@endcomponent
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
65
resources/views/Admin/Core/Auth/User/form.blade.php
Normal file
65
resources/views/Admin/Core/Auth/User/form.blade.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<div class="row">
|
||||
<div class="col-9">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="last_name">{{ __('name') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'last_name', 'value' => $user['last_name'] ?? ''])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="first_name">{{ __('firstname') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'first_name', 'value' => $user['first_name'] ?? ''])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="username">{{ __('login') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'username', 'value' => $user['username'] ?? ''])
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="password">{{ __('password') }} <sup>*</sup></label>
|
||||
@include('components.password', ['name' => 'password'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="email">{{ __('email') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'email', 'value' => $user['email'] ?? null])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="phone">{{ __('phone') }}</label>
|
||||
@include('components.input', ['name' => 'phone', 'value' => $user['phone'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="third_party_id">{{ __('entity') }} <sup>*</sup></label>
|
||||
@include('components.select', ['name' => 'third_party_id', 'list' => $third_parties ?? null, 'value' => $third_party_id ?? null, 'with_empty' => true ])
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="team">{{ __('team') }} <sup>*</sup></label>
|
||||
@include('components.select', ['name' => 'team_id', 'list' => $teams ?? null, 'value' => $team_id ?? null, 'with_empty' => true ])
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label for="status">{{ __('status') }} <sup>*</sup></label>
|
||||
@include('components.select', ['name' => 'status_id', 'list' => $statuses ?? null, 'value' => $status_id ?? null, 'with_empty' => true ])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-3">
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label class="control-label light" for="avatar">{{ __('avatar') }}</label>
|
||||
<input type="file" name="avatar" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('admin.Core.Auth.User.roles')
|
||||
|
||||
57
resources/views/Admin/Core/Auth/User/index.blade.php
Normal file
57
resources/views/Admin/Core/Auth/User/index.blade.php
Normal file
@@ -0,0 +1,57 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('User.title'),
|
||||
'subtitle' => __('User.list'),
|
||||
'breadcrumb' => [
|
||||
__('User.title') => 'Admin.Core.Auth.User.index',
|
||||
]
|
||||
])
|
||||
|
||||
@include('load.form.select2')
|
||||
|
||||
@section('content')
|
||||
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Core.Auth.User.index'), 'model' => 'users', 'callback' => 'handleUser();', 'create_callback' => 'UserCreate();', 'edit_callback' => 'UserEdit(id);', 'with_filters' => true])
|
||||
@endcomponent
|
||||
|
||||
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-users-filters'])
|
||||
@include('admin.Core.Auth.User.partials.filters', ['model' => 'users'])
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
|
||||
@include('load.layout.chevron')
|
||||
@include('load.layout.modal')
|
||||
@include('load.form.toggle')
|
||||
@include('load.form.upload.upload')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
function handleUser() {
|
||||
initToggle("{{ route('Admin.Core.Auth.User.toggleActive') }}");
|
||||
}
|
||||
|
||||
function UserCreate() {
|
||||
var url_open = "{{ route('Admin.Core.Auth.User.modalCreate') }}";
|
||||
var url_save = "{{ route('Admin.Core.Auth.User.storeAjax') }}";
|
||||
openModal("{{ __('user') }}", '#user-form', url_open, url_save, "UserRefresh();");
|
||||
}
|
||||
|
||||
function UserEdit(id) {
|
||||
var url_open = "{{ route('Admin.Core.Auth.User.modalEdit') }}/" + id;
|
||||
var url_save = "{{ route('Admin.Core.Auth.User.storeAjax') }}";
|
||||
openModal("{{ __('user') }}", '#user-form', url_open, url_save, "UserRefresh();");
|
||||
}
|
||||
|
||||
function UserRefresh() {
|
||||
reloadDatatable('users');
|
||||
handleUser();
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
initSelect2();
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
55
resources/views/Admin/Core/Auth/User/manage.blade.php
Normal file
55
resources/views/Admin/Core/Auth/User/manage.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<div class="modobox-sub-header-modify-element-name">{{ $name }}</div>
|
||||
|
||||
<div class="row margin-bottom-0">
|
||||
<div class="col-sm-12 information_messages_manage p-2">
|
||||
<div class="alert alert-info noradius mb-0">
|
||||
<div class="bg-blue alert-icon">
|
||||
<i class="glyph-icon icon-info"></i>
|
||||
</div>
|
||||
<div class="alert-content">
|
||||
<h4 class="alert-title">{{ __('informations') }}</h4>
|
||||
<p>{{ __('manage_clients_for_user') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="content-box noborder noradius mb-0" id="user_client_content_box">
|
||||
<h3 class="content-box-header noradius bg-default" id="toggle_button_user_clients">
|
||||
<span class="header-wrapper">
|
||||
<i class="glyph-icon icon-caret-right mr-1"></i>
|
||||
{{ __('clients') }}
|
||||
<span class="bs-badge badge-info {{ $label_opacity }}">
|
||||
{{ count($clients_selected) }}
|
||||
</span>
|
||||
</span>
|
||||
<div class="header-buttons-separator">
|
||||
<a href="#" id="user_clients_assoc_submit" class="assoc-submit-btn hidden icon-separator">
|
||||
<i class="glyph-icon icon-save"></i>
|
||||
</a>
|
||||
</div>
|
||||
</h3>
|
||||
<div class="content-box-wrapper noradius" style="display:none;">
|
||||
<div id="user_clients_assoc_list">
|
||||
<form class="form-horizontal form_inline" name="user_clients_assoc_form" onsubmit="return false;" method="POST">
|
||||
<div class="form-group margin-bottom-0">
|
||||
<div class="col-sm-12 padding-left-15 padding-right-15">
|
||||
<input type="hidden" name="user_id_client_assoc" id="user_id_client_assoc" value="{{ $id }}" class="form-control" />
|
||||
<select multiple class="multi-select form-no-control" name="user_clients_list" id="user_clients_list">
|
||||
@foreach ($clients as $client)
|
||||
<option value="{{ $client->id }}" {{ !($client->active) ? 'disabled' : '' }} {{ in-array($client->id, $clients_selected) ?? 'selected' : ''>
|
||||
{{ $client->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
61
resources/views/Admin/Core/Auth/User/modal.blade.php
Normal file
61
resources/views/Admin/Core/Auth/User/modal.blade.php
Normal file
@@ -0,0 +1,61 @@
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'user-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $user['id'] ?? null }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-9">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="last_name">{{ __('name') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'last_name', 'value' => $user['last_name'] ?? ''])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="first_name">{{ __('firstname') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'first_name', 'value' => $user['first_name'] ?? ''])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="username">{{ __('login') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'username', 'value' => $user['username'] ?? ''])
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="password">{{ __('password') }} <sup>*</sup></label>
|
||||
@include('components.password', ['name' => 'password'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="email">{{ __('email') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'email', 'value' => $user['email'] ?? null])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="phone">{{ __('phone') }}</label>
|
||||
@include('components.input', ['name' => 'phone', 'value' => $user['phone'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-3">
|
||||
<div class="col-12">
|
||||
<label class="control-label light" for="avatar">{{ __('avatar') }}</label>
|
||||
@include('components.file', ['name' => 'avatar'])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('admin.Core.Auth.User.roles')
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
initUpload();
|
||||
});
|
||||
</script>
|
||||
59
resources/views/Admin/Core/Auth/User/modalProfile.blade.php
Normal file
59
resources/views/Admin/Core/Auth/User/modalProfile.blade.php
Normal file
@@ -0,0 +1,59 @@
|
||||
{{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'user-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<input type="hidden" name="id" value="{{ $user['id'] ?? null }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-9">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="last_name">{{ __('name') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'last_name', 'value' => $user['last_name'] ?? ''])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="first_name">{{ __('firstname') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'first_name', 'value' => $user['first_name'] ?? ''])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="username">{{ __('login') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'username', 'value' => $user['username'] ?? ''])
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="password">{{ __('password') }} <sup>*</sup></label>
|
||||
@include('components.password', ['name' => 'password'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="email">{{ __('email') }} <sup>*</sup></label>
|
||||
@include('components.input', ['name' => 'email', 'value' => $user['email'] ?? null])
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<label for="phone">{{ __('phone') }}</label>
|
||||
@include('components.input', ['name' => 'phone', 'value' => $user['phone'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-3">
|
||||
<div class="col-12">
|
||||
<label class="control-label light" for="avatar">{{ __('avatar') }}</label>
|
||||
@include('components.file', ['name' => 'avatar'])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
initUpload();
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<form id="user-filters">
|
||||
|
||||
</form>
|
||||
@@ -0,0 +1,7 @@
|
||||
<button type="button" class="btn btn-xs btn-secondary mr-2" data-toggle="popover" title="{{ $user->email }}" data-content="{{ $user->email }}">
|
||||
<i class="fa fa-fw fa-at"></i>
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-xs btn-secondary mr-2" data-toggle="popover" title="{{ $user->phone }}" data-content="{{ $user->phone }}">
|
||||
<i class="fa fa-fw fa-phone"></i>
|
||||
</button>
|
||||
@@ -0,0 +1,3 @@
|
||||
@foreach ($roles as $role)
|
||||
{{ $role->name }}
|
||||
@endforeach
|
||||
19
resources/views/Admin/Core/Auth/User/roles.blade.php
Normal file
19
resources/views/Admin/Core/Auth/User/roles.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
@if (App\Repositories\Core\Auth\Users::hasPermission('users_crud_*'))
|
||||
|
||||
@component('components.layout.box-collapse', ['title' => __('roles'), 'id' => 'form-roles'])
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@foreach ($roles as $id => $role)
|
||||
<div class="row pt-2 ml-0">
|
||||
@if (App\Repositories\Core\Auth\Users::hasPermission('users_crud_' . $role))
|
||||
<div class="col-6">
|
||||
<input type="checkbox" name="roles[{{ $id }}]" value="1" {{ in_array($id, $user['roles']) ? 'checked' : null }} class="iCheck" data-skin="square" data-color="blue">
|
||||
<label class="light text-uppercase ml-2">{{ $role }}</label>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endcomponent
|
||||
@endif
|
||||
28
resources/views/Admin/Core/Auth/User/show.blade.php
Normal file
28
resources/views/Admin/Core/Auth/User/show.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('families.title'),
|
||||
'subtitle' => __('families.title'),
|
||||
'breadcrumb' => [__('families.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>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,11 @@
|
||||
@component('components.layout.box-collapse', ['id' => 'comments', 'title' => __('comments')])
|
||||
@if (!empty($comments))
|
||||
@foreach ($comments as $comment)
|
||||
{!! $comment !!}
|
||||
@endforeach
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary">
|
||||
Ajout note interne
|
||||
<i class="fa fa-plus"></i>
|
||||
</button>
|
||||
@endcomponent
|
||||
15
resources/views/Admin/Shop/ArticleNatures/create.blade.php
Normal file
15
resources/views/Admin/Shop/ArticleNatures/create.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('article_natures.title'),
|
||||
'subtitle' => __('article_natures.add'),
|
||||
'breadcrumb' => [__('article_natures.title'), __('article_natures.add')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.ArticleNatures.store', 'id' => 'article-nature-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
@include('Admin.Shop.ArticleNatures.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
16
resources/views/Admin/Shop/ArticleNatures/edit.blade.php
Normal file
16
resources/views/Admin/Shop/ArticleNatures/edit.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('article_natures.title'),
|
||||
'subtitle' => __('article_natures.edit'),
|
||||
'breadcrumb' => [__('article_natures.title'), __('article_natures.edit')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.ArticleNatures.update', 'id' => 'article-nature-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
<input type="hidden" name="id" value="{{ $article_nature['id'] }}">
|
||||
@include('Admin.Shop.ArticleNatures.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
22
resources/views/Admin/Shop/ArticleNatures/form.blade.php
Normal file
22
resources/views/Admin/Shop/ArticleNatures/form.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.input', ['name' => 'name', 'value' => $article_nature['name'] ?? null, 'required' => true])
|
||||
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => $article_nature['description'] ?? null, 'class' => 'editor', 'required' => false])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
9
resources/views/Admin/Shop/ArticleNatures/list.blade.php
Normal file
9
resources/views/Admin/Shop/ArticleNatures/list.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.article_natures.title'),
|
||||
'subtitle' => __('Shop.article_natures.list'),
|
||||
'breadcrumb' => [__('Shop.article_natures.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('components.datatable', ['route' => route('Admin.Shop.ArticleNatures.index'), 'model' => 'article_natures'])
|
||||
@endsection
|
||||
36
resources/views/Admin/Shop/ArticleNatures/show.blade.php
Normal file
36
resources/views/Admin/Shop/ArticleNatures/show.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('products.title'),
|
||||
'subtitle' => __('products.title'),
|
||||
'breadcrumb' => [__('products.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<form action="{{ route('Shop.Products') }}" method="GET">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<div class="col-md-6">
|
||||
<h3>{{ name }}</h3>
|
||||
<h4>
|
||||
{{ $product.section.name }}<br>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="col-md-6 text-right">
|
||||
<h2>{{ $prix_total }} €</h2>
|
||||
<h4>{{ $residence['type_produit']['name'] }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
@include('Hestimmo.modules.Lot.partials.carousel')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
13
resources/views/Admin/Shop/Articles/create.blade.php
Normal file
13
resources/views/Admin/Shop/Articles/create.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.articles.title'),
|
||||
'subtitle' => __('Shop.articles.add'),
|
||||
'breadcrumb' => [__('Shop.articles.title'), __('Shop.articles.add')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Articles.store', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
@include('Admin.Shop.Articles.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
15
resources/views/Admin/Shop/Articles/edit.blade.php
Normal file
15
resources/views/Admin/Shop/Articles/edit.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.articles.title'),
|
||||
'subtitle' => __('Shop.articles.edit'),
|
||||
'breadcrumb' => [__('Shop.articles.title'), __('Shop.articles.edit')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Articles.store', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
<input type="hidden" name="id" id="id" value="{{ $article['id'] ?? null }}">
|
||||
|
||||
@include('Admin.Shop.Articles.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
101
resources/views/Admin/Shop/Articles/form.blade.php
Normal file
101
resources/views/Admin/Shop/Articles/form.blade.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<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="#offers" class="nav-link" data-toggle="tab" aria-expanded="true">
|
||||
{{ __('Shop.offers.title') }}
|
||||
@if(isset($offers_count))<span class="badge">{{ $offers_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('Admin.Shop.Articles.partials.characteristics')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="offers">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="shipping">
|
||||
@include('Admin.Shop.Articles.partials.shipping')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="stock">
|
||||
@include('Admin.Shop.Articles.partials.stock')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="seo">
|
||||
@include('Admin.Shop.Articles.partials.seo')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.appender')
|
||||
@include('load.form.editor')
|
||||
@include('load.form.save')
|
||||
@include('load.form.select2')
|
||||
@include('load.form.set_options')
|
||||
@include('load.form.toggle')
|
||||
@include('load.form.upload.fileinput')
|
||||
@include('load.layout.chevron')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
$('.active-checkbox').bootstrapToggle();
|
||||
$('.active-checkbox').off('change').on('change', function(e) {
|
||||
var id = $('#id').val();
|
||||
// handleAdmin.toggle(id, $(this).prop('checked'));
|
||||
});
|
||||
|
||||
initChevron();
|
||||
initEditor();
|
||||
initSaveForm('#article-form');
|
||||
initSelect2();
|
||||
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
15
resources/views/Admin/Shop/Articles/list.blade.php
Normal file
15
resources/views/Admin/Shop/Articles/list.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.articles.title'),
|
||||
'subtitle' => __('Shop.articles.list'),
|
||||
'breadcrumb' => [__('Shop.articles.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('components.datatable', ['route' => route('Admin.Shop.Articles.index'), 'model' => 'articles', 'with_filters' => true])
|
||||
|
||||
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-articles-filters'])
|
||||
@include('Admin.Shop.Articles.partials.filters')
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-3">
|
||||
{{ 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'])
|
||||
</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'])
|
||||
</div>
|
||||
<div class="col-3">
|
||||
{{ Form::label('ref', 'Référence') }}<br>
|
||||
@include('components.input', ['name' => 'ref', 'value' => $article['ref'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<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('article_nature_id', __('Shop.article_natures.name')) }}<br>
|
||||
@include('components.select', ['name' => 'article_nature_id', 'list' => $natures_options, 'value' => $article['article_nature_id'] ?? null, 'class' => 'select2'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('categories', __('Shop.shelves.title')) }}<br>
|
||||
@include('components.select', ['name' => 'categories[]', 'list' => $categories_options, 'values' => $article['categories'] ?? null, 'class' => 'select2', 'multiple' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tags', 'Tags') }}<br>
|
||||
@include('components.select-tree', ['name' => 'tags[]', 'list' => $tags_list, 'values' => $article['tags'] ?? null, 'class' => 'select2', 'multiple' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
@include('Admin.Shop.Articles.partials.product.description')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.textarea', ['name' => 'description', 'value' => $article['description'] ?? null, 'class' => 'editor', 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
@include('Admin.Shop.Articles.partials.product.images')
|
||||
@include('components.uploader.widget', ['load_url' => route('Admin.Shop.Articles.getImages', ['id' => $article['id'] ?? false]), 'delete_url' => route('Admin.Shop.Articles.deleteImage'), 'title' => 'Photos', 'name' => 'images' ])
|
||||
@include('Admin.Core.Comments.partials.comments')
|
||||
</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':
|
||||
var url = '{{ route('Admin.Botanic.Species.getSelect') }}';
|
||||
break;
|
||||
case 'App\\Models\\Botanic\\Variety':
|
||||
default:
|
||||
var url = '{{ route('Admin.Botanic.Varieties.getSelect') }}';
|
||||
break;
|
||||
}
|
||||
loadProducts(url);
|
||||
});
|
||||
|
||||
function loadProducts(url) {
|
||||
$.ajax({
|
||||
url : url,
|
||||
method : 'POST',
|
||||
data: {model: $('#product_type').val()},
|
||||
success : function(data) {
|
||||
setOptions('#product_id', data);
|
||||
// $("#product_id").select2({data: data});
|
||||
// $("#product_id").trigger('change');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,8 @@
|
||||
<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>
|
||||
@@ -0,0 +1,4 @@
|
||||
<div id="attributes" class="appender" data-id="">
|
||||
@include('Admin.Shop.Articles.partials.prices.block_attribute_new')
|
||||
<div class="append_attribute"></div>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
<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>
|
||||
@@ -0,0 +1,24 @@
|
||||
<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>
|
||||
@@ -0,0 +1,8 @@
|
||||
<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('Admin.Shop.PriceGenerics.partials.table-prices', ['generic' => $generic['generic'] ?? null ])
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="col-12 row-new-generic row-generic">
|
||||
|
||||
@include('Admin.Shop.PriceGenerics.partials.table-prices', ['generic' => $generic['generic'] ?? null ])
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,51 @@
|
||||
<div id="append_generic_price" class="row">
|
||||
@include('Admin.Shop.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('Admin.Shop.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('Admin.Shop.GenericPrices.destroy') }}", function() {
|
||||
$selector.remove();
|
||||
});
|
||||
*/
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
append_generic_price();
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,14 @@
|
||||
@if (isset($generics) && (count($generics)))
|
||||
@foreach ($generics as $generic)
|
||||
@include('Admin.Shop.Articles.partials.generic_prices.block_generic_price')
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function () {
|
||||
handleDeleteGenericPrice();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user