commit 08-2025
This commit is contained in:
parent
9ae662f63e
commit
480fdc65ed
404 changed files with 65310 additions and 2600431 deletions
|
|
@ -23,7 +23,7 @@
|
|||
{{__('team.export')}}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
{!! Form::open(['url' => route('user_team_export_download'), 'class' => '']) !!}
|
||||
{!! Form::open(['action' => route('user_team_export_download'), 'class' => '']) !!}
|
||||
{!! Form::hidden('key', 'value') !!}
|
||||
<button type="submit" name="action" value="export" class="btn btn-md btn-primary mb-2"><i class="ion ion-md-download"></i> {{ __('team.export_as_xls') }}</button>
|
||||
{!! Form::close() !!}
|
||||
|
|
|
|||
308
resources/views/user/team/marketingplan.blade.php
Normal file
308
resources/views/user/team/marketingplan.blade.php
Normal file
|
|
@ -0,0 +1,308 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
@if(isset($error))
|
||||
<div class="alert alert-danger">
|
||||
<i class="fas fa-exclamation-triangle"></i> {{ $error }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Header Section -->
|
||||
<div class="row mb-4">
|
||||
<div class="col-12">
|
||||
<div class="card bg-primary text-white">
|
||||
<div class="card-body text-center py-3">
|
||||
<h1 class="card-title mb-3">
|
||||
<i class="fas fa-chart-line mr-3"></i>
|
||||
{{ __('marketingplan.title') }}
|
||||
</h1>
|
||||
<p class="card-text lead mb-0">
|
||||
{{ __('marketingplan.subtitle') }}
|
||||
</p>
|
||||
@if($currentUser && $currentLevel)
|
||||
<div class="mt-3">
|
||||
<span class="badge badge-light badge-lg">
|
||||
<i class="fas fa-user mr-2"></i>
|
||||
{{ __('marketingplan.current_level') }} {{ $currentLevel->name }}
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($userLevels->count() > 0)
|
||||
<!-- Marketing Plan Levels -->
|
||||
<div class="row">
|
||||
@foreach($userLevels as $index => $level)
|
||||
<div class="col-lg-6 col-xl-4 mb-4">
|
||||
<div class="card h-100 shadow-sm
|
||||
@if($currentUser && $currentLevel && $currentLevel->id == $level->id)
|
||||
border-secondary current-level
|
||||
@elseif($currentUser && $currentLevel && $currentLevel->pos < $level->pos)
|
||||
border-primary next-level
|
||||
@else
|
||||
border-light
|
||||
@endif">
|
||||
|
||||
<!-- Level Header -->
|
||||
<div class="card-header
|
||||
@if($currentUser && $currentLevel && $currentLevel->id == $level->id)
|
||||
bg-secondary
|
||||
@elseif($currentUser && $currentLevel && $currentLevel->pos < $level->pos)
|
||||
bg-primary text-white
|
||||
@else
|
||||
bg-light
|
||||
@endif">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<h5 class="mb-0">
|
||||
<span class="badge
|
||||
@if($currentUser && $currentLevel && $currentLevel->id == $level->id)
|
||||
badge-primary text-white
|
||||
@elseif($currentUser && $currentLevel && $currentLevel->pos < $level->pos)
|
||||
badge-secondary
|
||||
@else
|
||||
badge-secondary
|
||||
@endif mr-2">{{ $level->pos }}</span>
|
||||
{{ $level->name }}
|
||||
</h5>
|
||||
@if($currentUser && $currentLevel && $currentLevel->id == $level->id)
|
||||
<i class="fas fa-star text-warning-dark"></i>
|
||||
@elseif($currentUser && $currentLevel && $level->pos == $currentLevel->pos + 1)
|
||||
<i class="fas fa-arrow-up text-warning-dark"></i>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Level Details -->
|
||||
<div class="card-body">
|
||||
<!-- Qualifikation Section -->
|
||||
<div class="mb-3">
|
||||
<h6 class="text-muted mb-2">
|
||||
<i class="fas fa-certificate mr-2"></i>{{ __('marketingplan.qualification') }}
|
||||
</h6>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="text-center p-2 bg-light rounded">
|
||||
<div class="font-weight-bold text-primary">{{ formatNumber($level->qual_kp, 0) }}</div>
|
||||
<small class="text-muted">{{ __('marketingplan.kp_points') }}</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="text-center p-2 bg-light rounded">
|
||||
<div class="font-weight-bold text-info">{{ formatNumber($level->qual_pp, 0) }}</div>
|
||||
<small class="text-muted">{{ __('marketingplan.tp_points') }}</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Provision Section -->
|
||||
<div class="mb-3">
|
||||
<h6 class="text-muted mb-2">
|
||||
<i class="fas fa-percentage mr-2"></i>{{ __('marketingplan.provisions') }}
|
||||
</h6>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="text-center p-2 bg-light rounded">
|
||||
<div class="font-weight-bold text-success">{{ $level->margin }}%</div>
|
||||
<small class="text-muted">{{ __('marketingplan.standard') }}</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="text-center p-2 bg-light rounded">
|
||||
<div class="font-weight-bold text-success">{{ $level->margin_shop }}%</div>
|
||||
<small class="text-muted">{{ __('marketingplan.shop') }}</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Paylines Section -->
|
||||
@if($level->paylines > 0)
|
||||
<div class="mb-3">
|
||||
<h6 class="text-muted mb-2">
|
||||
<i class="fas fa-sitemap mr-2"></i>{{ __('marketingplan.team_provisions') }}
|
||||
</h6>
|
||||
<div class="row">
|
||||
@for($i = 1; $i <= min($level->paylines, 4); $i++)
|
||||
@php $lineValue = $level->{'pr_line_' . $i}; @endphp
|
||||
@if($lineValue > 0)
|
||||
<div class="col-3">
|
||||
<div class="text-center p-1 bg-light rounded">
|
||||
<div class="font-weight-bold text-warning-dark">{{ $lineValue }}%</div>
|
||||
<small class="text-muted">L{{ $i }}</small>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endfor
|
||||
</div>
|
||||
@if($level->paylines > 4)
|
||||
<div class="row mt-2">
|
||||
@for($i = 5; $i <= min($level->paylines, 8); $i++)
|
||||
@php $lineValue = $level->{'pr_line_' . $i}; @endphp
|
||||
@if($lineValue > 0)
|
||||
<div class="col-3">
|
||||
<div class="text-center p-1 bg-light rounded">
|
||||
<div class="font-weight-bold text-warning-dark">{{ $lineValue }}%</div>
|
||||
<small class="text-muted">L{{ $i }}</small>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endfor
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Wachstumsbonus -->
|
||||
@if($level->getFormattedGrowthBonus())
|
||||
<div class="mb-3">
|
||||
<h6 class="text-muted mb-2">
|
||||
<i class="fas fa-trophy mr-2"></i>{{ __('marketingplan.growth_bonus') }}
|
||||
</h6>
|
||||
<div class="text-center p-2 bg-light rounded">
|
||||
<div class="font-weight-bold text-warning-dark">{{ $level->getFormattedGrowthBonus() }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Next Level Info -->
|
||||
@if($level->next_user_level)
|
||||
<div class="border-top pt-3 mt-3">
|
||||
<small class="text-muted">
|
||||
<i class="fas fa-arrow-right mr-1"></i>
|
||||
{{ __('marketingplan.next_level') }}
|
||||
<strong>{{ $level->next_user_level->name }}</strong>
|
||||
</small>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<!-- Card Footer for Current Level -->
|
||||
@if($currentUser && $currentLevel && $currentLevel->id == $level->id)
|
||||
<div class="card-footer bg-secondary text-center">
|
||||
<small>
|
||||
<i class="fas fa-check-circle mr-1"></i>
|
||||
{{ __('marketingplan.your_current_level') }}
|
||||
</small>
|
||||
</div>
|
||||
@elseif($currentUser && $currentLevel && $level->pos == $currentLevel->pos + 1)
|
||||
<div class="card-footer bg-primary text-white">
|
||||
<small>
|
||||
<i class="fas fa-arrow-right mr-1"></i>
|
||||
{{ __('marketingplan.your_next_goal') }}
|
||||
</small>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<!-- Info Section -->
|
||||
<div class="row mt-4">
|
||||
<div class="col-12">
|
||||
<div class="card border-info">
|
||||
<div class="card-header bg-info text-white">
|
||||
<h5 class="mb-0">
|
||||
<i class="fas fa-info-circle mr-2"></i>
|
||||
{{ __('marketingplan.legend') }}
|
||||
</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<ul class="list-unstyled">
|
||||
<li class="mb-2">
|
||||
<span class="badge badge-primary mr-2">KU</span>
|
||||
{{ __('marketingplan.customer_points_full') }}
|
||||
</li>
|
||||
<li class="mb-2">
|
||||
<span class="badge badge-info mr-2">TP</span>
|
||||
{{ __('marketingplan.team_points_full') }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<ul class="list-unstyled">
|
||||
<li class="mb-2">
|
||||
<span class="badge badge-warning mr-2">L1-L8</span>
|
||||
{{ __('marketingplan.team_provisions_by_lines') }}
|
||||
</li>
|
||||
<li class="mb-2">
|
||||
<span class="badge badge-success mr-2">%</span>
|
||||
{{ __('marketingplan.provision_rates') }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@else
|
||||
<!-- No Levels Available -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body text-center py-5">
|
||||
<i class="fas fa-exclamation-circle fa-3x text-muted mb-3"></i>
|
||||
<h4 class="text-muted">{{ __('marketingplan.no_levels_available') }}</h4>
|
||||
<p class="text-muted">{{ __('marketingplan.no_levels_configured') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(isset($performance))
|
||||
<!-- Performance Info (nur im Debug-Modus anzeigen) -->
|
||||
@if(config('app.debug'))
|
||||
<div class="row mt-3">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<small>
|
||||
<i class="fas fa-clock mr-1"></i>
|
||||
{{ __('marketingplan.loading_time') }} {{ $performance['execution_time'] }}ms
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.current-level {
|
||||
box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3) !important;
|
||||
}
|
||||
|
||||
.next-level {
|
||||
box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3) !important;
|
||||
}
|
||||
|
||||
.card {
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.bg-gradient-primary {
|
||||
background: linear-gradient(45deg, #007bff, #0056b3);
|
||||
}
|
||||
|
||||
.badge-lg {
|
||||
font-size: 1rem;
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
.text-warning-dark {
|
||||
color: #bf9500 !important;
|
||||
}
|
||||
</style>
|
||||
@endsection
|
||||
|
|
@ -15,11 +15,43 @@
|
|||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Error Message Display -->
|
||||
@if(isset($error))
|
||||
<div class="alert alert-warning">
|
||||
<i class="fa fa-exclamation-triangle mr-2"></i>
|
||||
{{ $error }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('navigation.my_team') }}
|
||||
</h4>
|
||||
<div class="card">
|
||||
<h5 class="card-header">{{ __('team.register_new_consultant') }}</h5>
|
||||
<h5 class="card-header">
|
||||
{{ __('team.register_new_consultant') }}
|
||||
@if(isset($optimized) && $optimized)
|
||||
<span class="badge badge-success ml-2">{{ __('team.optimized') }}</span>
|
||||
@endif
|
||||
</h5>
|
||||
<!-- Performance Metrics Display -->
|
||||
@if(isset($performance))
|
||||
<div class="card-body border-bottom">
|
||||
<div class="alert alert-info mb-0">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<i class="fa fa-clock mr-1"></i>
|
||||
<strong>{{ __('team.loading_time') }}</strong> {{ $performance['execution_time'] }}ms
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<i class="fa fa-user mr-1"></i>
|
||||
<strong>{{ __('team.user_id') }}</strong> {{ $performance['user_id'] }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row no-gutters row-bordered">
|
||||
<div class="col-md-12 p-4">
|
||||
<h6 class="mb-4">{{ __('team.link_for_consultant_registration') }}</h6>
|
||||
|
|
@ -32,9 +64,61 @@
|
|||
</div>
|
||||
</div>
|
||||
<p>{{ __('team.new_consultant_copy1') }}</p>
|
||||
|
||||
<!-- Zusätzliche Optimierungs-Info -->
|
||||
@if(isset($optimized) && $optimized)
|
||||
<div class="mt-3">
|
||||
<small class="text-muted">
|
||||
<i class="fa fa-info-circle mr-1"></i>
|
||||
{{ __('team.optimized_performance_features') }}
|
||||
@if(isset($performance))
|
||||
<a href="#" onclick="showPerformanceDetails()" class="ml-2">{{ __('team.show_details') }}</a>
|
||||
@endif
|
||||
</small>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- Target -->
|
||||
|
||||
<!-- Performance Details Modal -->
|
||||
@if(isset($performance))
|
||||
<div class="modal fade" id="performanceModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">{{ __('team.performance_metrics_team_overview') }}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal">
|
||||
<span>×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table class="table table-sm">
|
||||
<tr>
|
||||
<td><strong>{{ __('team.execution_time') }}</strong></td>
|
||||
<td>{{ $performance['execution_time'] }}ms</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>User ID:</strong></td>
|
||||
<td>{{ $performance['user_id'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Optimierungen:</strong></td>
|
||||
<td>
|
||||
<span class="badge badge-success">{{ __('team.performance_monitoring') }}</span>
|
||||
<span class="badge badge-success">Error Handling</span>
|
||||
<span class="badge badge-success">{{ __('team.fallback_support') }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ __('team.close') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
var clipboardDemos = new ClipboardJS('[data-clipboard-demo]');
|
||||
|
|
@ -51,5 +135,11 @@
|
|||
$(this).tooltip('disable');
|
||||
})
|
||||
});
|
||||
|
||||
@if(isset($performance))
|
||||
function showPerformanceDetails() {
|
||||
$('#performanceModal').modal('show');
|
||||
}
|
||||
@endif
|
||||
</script>
|
||||
@endsection
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
{{ __('team.points') }}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
{!! Form::open(['url' => route('user_team_points'), 'class' => 'form-horizontal', 'id'=>'form_filter_user_points']) !!}
|
||||
{!! Form::open(['action' => route('user_team_points'), 'class' => 'form-horizontal', 'id'=>'form_filter_user_points']) !!}
|
||||
|
||||
<div class="form-row align-items-center px-0 pb-2 pt-0">
|
||||
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
|
|
|
|||
416
resources/views/user/team/show.blade.php
Normal file
416
resources/views/user/team/show.blade.php
Normal file
|
|
@ -0,0 +1,416 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Error Message Display -->
|
||||
@if(isset($error))
|
||||
<div class="alert alert-warning">
|
||||
<i class="fa fa-exclamation-triangle mr-2"></i>
|
||||
{{ $error }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('navigation.my_team') }}
|
||||
</h4>
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
{{__('team.business')}} {{__('navigation.overview')}}
|
||||
@if(isset($performance) && isset($performance['version']))
|
||||
@if($performance['version'] === 'Optimized')
|
||||
<span class="badge badge-success ml-2">{{ __('team.optimized') }}</span>
|
||||
@elseif($performance['version'] === 'Standard')
|
||||
<span class="badge badge-info ml-2">{{ __('team.standard_monitoring') }}</span>
|
||||
@elseif($performance['version'] === 'Fallback')
|
||||
<span class="badge badge-warning ml-2">{{ __('team.fallback') }}</span>
|
||||
@endif
|
||||
@endif
|
||||
</h5>
|
||||
|
||||
<!-- Performance Metrics Display -->
|
||||
@if(isset($performance) && config('app.debug'))
|
||||
<div class="card-body border-bottom">
|
||||
<div class="alert alert-info mb-0">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<i class="fa fa-clock mr-1"></i>
|
||||
<strong>{{ __('team.loading_time') }}</strong> {{ $performance['execution_time'] }}ms
|
||||
</div>
|
||||
@if(isset($performance['memory_used']))
|
||||
<div class="col-md-3">
|
||||
<i class="fa fa-memory mr-1"></i>
|
||||
<strong>{{ __('team.memory') }}</strong> {{ $performance['memory_used'] }}
|
||||
</div>
|
||||
@endif
|
||||
@if(isset($performance['user_count']))
|
||||
<div class="col-md-3">
|
||||
<i class="fa fa-users mr-1"></i>
|
||||
<strong>{{ __('team.team_size') }}</strong> {{ $performance['user_count'] }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-md-3">
|
||||
<i class="fa fa-cog mr-1"></i>
|
||||
<strong>{{ $performance['version'] }}</strong>
|
||||
@if(isset($performance['calculation_type']))
|
||||
<span class="badge badge-sm {{ $performance['calculation_type'] === 'Live' ? 'badge-warning' : 'badge-success' }}">
|
||||
{{ $performance['calculation_type'] }}
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="card-body p-0">
|
||||
{!! Form::open(['action' => route('user_team_members_show'), 'class' => 'form-horizontal', 'id'=>'form_filter_team_user']) !!}
|
||||
|
||||
<div class="form-row align-items-center px-4 pb-2 pt-3">
|
||||
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
|
||||
<select class="custom-select on_change_team" name="team_user_filter_month">
|
||||
@foreach($filter_months as $key=>$value)
|
||||
<option value="{{$key}}" @if(session('team_user_filter_month') == $key) selected @endif>{{$value}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
|
||||
<select class="custom-select on_change_team" name="team_user_filter_year">
|
||||
@foreach($filter_years as $key=>$value)
|
||||
<option value="{{$value}}" @if(session('team_user_filter_year') == $value) selected @endif>{{$value}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
|
||||
<select class="custom-select on_change_team" name="team_user_filter_active">
|
||||
@foreach($filter_active as $key=>$value)
|
||||
<option value="{{$key}}" @if(session('team_user_filter_active') == $key) selected @endif>{{$value}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
|
||||
<select class="custom-select on_change_team" name="team_user_filter_level">
|
||||
@foreach($filter_levels as $key=>$value)
|
||||
<option value="{{$key}}" @if(session('team_user_filter_level') == $key) selected @endif>{{$value}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row align-items-center px-4 pb-3">
|
||||
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
|
||||
<select class="custom-select on_change_team" name="team_user_filter_next_level">
|
||||
@foreach($filter_next_level as $key=>$value)
|
||||
<option value="{{$key}}" @if(session('team_user_filter_next_level') == $key) selected @endif>{{$value}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
|
||||
<!-- Platz für weitere Filter falls nötig -->
|
||||
</div>
|
||||
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
|
||||
<!-- Platz für weitere Filter falls nötig -->
|
||||
</div>
|
||||
<div class="col-6 col-sm-6 col-md-3 col-lg-3 mb-1">
|
||||
<!-- Platz für weitere Filter falls nötig -->
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
<!-- Zusätzliche Controls -->
|
||||
@if(isset($performance) && config('app.debug'))
|
||||
<div class="px-4 pb-2">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" class="btn btn-info btn-sm" onclick="showPerformanceDetails()">
|
||||
<i class="fa fa-chart-line"></i> {{ __('team.performance_details') }}
|
||||
</button>
|
||||
<a href="{{ route('user_team_structure') }}" class="btn btn-outline-secondary btn-sm">
|
||||
<i class="fa fa-sitemap"></i> {{ __('team.team_structure') }}
|
||||
</a>
|
||||
<a href="{{ route('user_team_add_member') }}" class="btn btn-outline-primary btn-sm">
|
||||
<i class="fa fa-user-plus"></i> {{ __('team.new_member') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 text-right">
|
||||
<div class="btn-group" role="group">
|
||||
@if(isset($optimized) && $optimized)
|
||||
<button type="button" class="btn btn-sm btn-success" onclick="toggleDataTableMode('optimized')" id="btn-optimized">
|
||||
<i class="fa fa-rocket"></i> {{ __('team.optimized_action') }}
|
||||
</button>
|
||||
@endif
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="toggleDataTableMode('standard')" id="btn-standard">
|
||||
<i class="fa fa-table"></i> {{ __('team.standard_action') }}
|
||||
</button>
|
||||
@if(isset($forceLiveCalculation) && !$forceLiveCalculation)
|
||||
<button type="button" class="btn btn-sm btn-outline-warning" onclick="enableLiveCalculation()" id="btn-live">
|
||||
<i class="fa fa-sync"></i> Live
|
||||
</button>
|
||||
@else
|
||||
<button type="button" class="btn btn-sm btn-warning" onclick="disableLiveCalculation()" id="btn-live">
|
||||
<i class="fa fa-sync fa-spin"></i> Live
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="card-datatable table-responsive pt-0">
|
||||
<table class="datatables-style table table-striped table-bordered" id="datatable-team-users">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('team.ID') }}</th>
|
||||
<th>{{__('team.Ebene') }}</th>
|
||||
<th>{{ __('team.Level') }}</th>
|
||||
<th>{{ __('team.KD') }}</th>
|
||||
<th>{{__('team.KU')}}</th>
|
||||
<th>{{__('team.TP')}}</th>
|
||||
<th>{{__('E-Mail')}}</th>
|
||||
<th>{{__('First name')}}</th>
|
||||
<th>{{__('Last name')}}</th>
|
||||
<th>{{__('team.next_level')}}</th>
|
||||
<th>{{__('tables.account')}}</th>
|
||||
<th>{{__('team.bis')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Performance Details Modal -->
|
||||
@if(isset($performance) && config('app.debug'))
|
||||
<div class="modal fade" id="performanceModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">{{ __('team.performance_metrics_team_overview') }}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal">
|
||||
<span>×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table class="table table-sm">
|
||||
<tr>
|
||||
<td><strong>{{ __('team.execution_time') }}</strong></td>
|
||||
<td>{{ $performance['execution_time'] }}ms</td>
|
||||
</tr>
|
||||
@if(isset($performance['memory_used']))
|
||||
<tr>
|
||||
<td><strong>{{ __('team.memory_usage') }}</strong></td>
|
||||
<td>{{ $performance['memory_used'] }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if(isset($performance['user_count']))
|
||||
<tr>
|
||||
<td><strong>{{ __('team.team_size') }}</strong></td>
|
||||
<td>{{ $performance['user_count'] }} User</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td><strong>User ID:</strong></td>
|
||||
<td>{{ $performance['user_id'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Version:</strong></td>
|
||||
<td>{{ $performance['version'] ?? 'Standard' }}</td>
|
||||
</tr>
|
||||
@if(isset($performance['calculation_type']))
|
||||
<tr>
|
||||
<td><strong>Berechnungstyp:</strong></td>
|
||||
<td>
|
||||
<span class="badge {{ $performance['calculation_type'] === 'Live' ? 'badge-warning' : 'badge-success' }}">
|
||||
{{ $performance['calculation_type'] }}
|
||||
</span>
|
||||
@if($performance['calculation_type'] === 'Live')
|
||||
<small class="text-muted ml-2">Echtzeitberechnung ohne Cache</small>
|
||||
@else
|
||||
<small class="text-muted ml-2">{{ __('team.optimized_with_cache') }}</small>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td><strong>Features:</strong></td>
|
||||
<td>
|
||||
<span class="badge badge-success">TreeCalcBotOptimized</span>
|
||||
<span class="badge badge-success">{{ __('team.performance_monitoring') }}</span>
|
||||
<span class="badge badge-success">Live Calculation</span>
|
||||
<span class="badge badge-success">Memory Optimization</span>
|
||||
<span class="badge badge-success">Error Handling</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ __('team.close') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<script>
|
||||
// Global Variables
|
||||
var oTable;
|
||||
|
||||
$( document ).ready(function() {
|
||||
oTable = $('#datatable-team-users').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"stateSave": true,
|
||||
"searching": true,
|
||||
ajax: {
|
||||
url: getDataTableUrl(),
|
||||
data: function(d) {
|
||||
d.team_user_filter_name = $('input[name=team_user_filter_name]').val();
|
||||
d.team_user_filter_month = $('select[name=team_user_filter_month]').val();
|
||||
d.team_user_filter_year = $('select[name=team_user_filter_year]').val();
|
||||
d.team_user_filter_active = $('select[name=team_user_filter_active]').val();
|
||||
d.team_user_filter_level = $('select[name=team_user_filter_level]').val();
|
||||
d.team_user_filter_next_level = $('select[name=team_user_filter_next_level]').val();
|
||||
d.force_live_calculation = window.liveModeEnabled || false;
|
||||
}
|
||||
},
|
||||
"columns": [
|
||||
{ data: 'id', name: 'id', searchable: false, orderable: false },
|
||||
{ data: 'deep', name: 'deep', orderable: false, searchable: false },
|
||||
{ data: 'user_level', name: 'user_level', orderable: false, searchable: false },
|
||||
{ data: 'is_qual_kp', name: 'is_qual_kp', orderable: false, searchable: false },
|
||||
{ data: 'sales_volume_KP_points', name: 'sales_volume_KP_points', orderable: false, searchable: false },
|
||||
{ data: 'sales_volume_total', name: 'sales_volume_total', orderable: false, searchable: false },
|
||||
{ data: 'email', name: 'email', orderable: false, searchable: false},
|
||||
{ data: 'first_name', name: 'first_name', orderable: false, searchable: true },
|
||||
{ data: 'last_name', name: 'last_name', orderable: false, searchable: true },
|
||||
{ data: 'next_level_qualified', name: 'next_level_qualified', orderable: false, searchable: false },
|
||||
{ data: 'active_account', name: 'active_account', orderable: false, searchable: false },
|
||||
{ data: 'payment_account_date', name: 'payment_account_date', orderable: false, searchable: false },
|
||||
|
||||
],
|
||||
"bLengthChange": false,
|
||||
"iDisplayLength": 50,
|
||||
"language": {
|
||||
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
||||
}
|
||||
});
|
||||
$('select.on_change_team').on('change', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
|
||||
$('input.on_keyup_team').on('keyup', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
|
||||
// Filter für neue Felder hinzufügen
|
||||
$('select[name=team_user_filter_level]').on('change', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
|
||||
$('select[name=team_user_filter_next_level]').on('change', function(){
|
||||
oTable.draw();
|
||||
});
|
||||
});
|
||||
|
||||
// Global Variables für DataTable-Mode
|
||||
window.dataTableMode = '{{ isset($optimized) && $optimized ? "optimized" : "standard" }}';
|
||||
window.liveModeEnabled = {{ isset($forceLiveCalculation) && $forceLiveCalculation ? 'true' : 'false' }};
|
||||
|
||||
// DataTable URL basierend auf Modus
|
||||
function getDataTableUrl() {
|
||||
if (window.dataTableMode === 'optimized') {
|
||||
return '{!! route('user_team_members_datatable_optimized') !!}';
|
||||
}
|
||||
return '{!! route('user_team_members_datatable') !!}';
|
||||
}
|
||||
|
||||
// Toggle zwischen Standard und Optimized DataTable
|
||||
function toggleDataTableMode(mode) {
|
||||
if (mode === window.dataTableMode) return; // Bereits aktiver Modus
|
||||
|
||||
window.dataTableMode = mode;
|
||||
|
||||
// Button-Status aktualisieren
|
||||
$('.btn-group button[id^="btn-"]').removeClass('btn-success btn-outline-secondary').addClass('btn-outline-secondary');
|
||||
if (mode === 'optimized') {
|
||||
$('#btn-optimized').removeClass('btn-outline-secondary').addClass('btn-success');
|
||||
} else {
|
||||
$('#btn-standard').removeClass('btn-outline-secondary').addClass('btn-success');
|
||||
}
|
||||
|
||||
// DataTable neu laden mit neuer URL
|
||||
oTable.ajax.url(getDataTableUrl()).load();
|
||||
|
||||
// Status-Message anzeigen
|
||||
showMessage('{{ __('team.datatable_mode_switched', ['mode' => '']) }}'.replace(':mode', mode === 'optimized' ? '{{ __('team.optimized_action') }}' : '{{ __('team.standard_action') }}'), 'info');
|
||||
}
|
||||
|
||||
// Live-Calculation aktivieren
|
||||
function enableLiveCalculation() {
|
||||
window.liveModeEnabled = true;
|
||||
$('#btn-live').removeClass('btn-outline-warning').addClass('btn-warning')
|
||||
.html('<i class="fa fa-sync fa-spin"></i> Live');
|
||||
|
||||
// DataTable neu laden mit Live-Parameter
|
||||
oTable.ajax.reload();
|
||||
|
||||
showMessage('Live-Berechnung aktiviert - Daten werden in Echtzeit berechnet', 'warning');
|
||||
}
|
||||
|
||||
// Live-Calculation deaktivieren
|
||||
function disableLiveCalculation() {
|
||||
window.liveModeEnabled = false;
|
||||
$('#btn-live').removeClass('btn-warning').addClass('btn-outline-warning')
|
||||
.html('<i class="fa fa-sync"></i> Live');
|
||||
|
||||
// DataTable neu laden ohne Live-Parameter
|
||||
oTable.ajax.reload();
|
||||
|
||||
showMessage('Live-Berechnung deaktiviert - Cache-Daten werden verwendet', 'success');
|
||||
}
|
||||
|
||||
// Hilfsfunktion für Status-Messages
|
||||
function showMessage(message, type) {
|
||||
var alertClass = 'alert-info';
|
||||
if (type === 'success') alertClass = 'alert-success';
|
||||
if (type === 'warning') alertClass = 'alert-warning';
|
||||
if (type === 'error') alertClass = 'alert-danger';
|
||||
|
||||
var messageHtml = '<div class="alert ' + alertClass + ' alert-dismissible fade show" role="alert">' +
|
||||
message +
|
||||
'<button type="button" class="close" data-dismiss="alert"><span>×</span></button>' +
|
||||
'</div>';
|
||||
|
||||
// Message am Anfang der Card einfügen
|
||||
$('.card-body').first().prepend(messageHtml);
|
||||
|
||||
// Nach 5 Sekunden automatisch ausblenden
|
||||
setTimeout(function() {
|
||||
$('.alert-dismissible').alert('close');
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
@if(isset($performance))
|
||||
function showPerformanceDetails() {
|
||||
$('#performanceModal').modal('show');
|
||||
}
|
||||
@endif
|
||||
</script>
|
||||
@endsection
|
||||
|
|
@ -15,15 +15,33 @@
|
|||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Error Message Display -->
|
||||
@if(isset($error))
|
||||
<div class="alert alert-warning">
|
||||
<i class="fa fa-exclamation-triangle mr-2"></i>
|
||||
{{ $error }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('navigation.my_team') }}
|
||||
</h4>
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
{{__('team.business')}} {{__('team.structure')}}
|
||||
@if(isset($performance) && isset($performance['version']))
|
||||
@if($performance['version'] === 'Optimized')
|
||||
<span class="badge badge-success ml-2">{{ __('team.optimized') }}</span>
|
||||
@elseif($performance['version'] === 'Standard')
|
||||
<span class="badge badge-info ml-2">{{ __('team.standard_monitoring') }}</span>
|
||||
@elseif($performance['version'] === 'Fallback')
|
||||
<span class="badge badge-warning ml-2">{{ __('team.fallback') }}</span>
|
||||
@endif
|
||||
@endif
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
{!! Form::open(['url' => route('user_team_structure'), 'class' => 'form-horizontal', 'id'=>'form_filter_business_user']) !!}
|
||||
{!! Form::open(['action' => route('user_team_structure'), 'class' => 'form-horizontal', 'id'=>'form_filter_business_user']) !!}
|
||||
|
||||
<div class="form-row align-items-center px-0 pb-2 pt-0">
|
||||
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
|
|
@ -43,11 +61,60 @@
|
|||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
<!-- Performance Metrics Display -->
|
||||
@if(isset($performance) && config('app.debug'))
|
||||
<div class="alert alert-info">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<i class="fa fa-clock mr-1"></i>
|
||||
<strong>{{ __('team.loading_time') }}</strong> {{ $performance['execution_time'] }}ms
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<i class="fa fa-memory mr-1"></i>
|
||||
<strong>{{ __('team.memory') }}</strong> {{ $performance['memory_used'] }}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<i class="fa fa-users mr-1"></i>
|
||||
<strong>{{ __('team.team_members') }}</strong> {{ $performance['user_count'] }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<hr class="container-m-nx border-light mt-0">
|
||||
<div>
|
||||
<div id="nestable-menu" class="mb-4">
|
||||
<button type="button" class="btn btn-default btn-sm" data-action="expand-all">{{ __('team.expand_all') }}</button>
|
||||
<button type="button" class="btn btn-default btn-sm" data-action="collapse-all">{{ __('team.collapse_all') }}</button>
|
||||
|
||||
<!-- Zusätzliche User-Controls -->
|
||||
@if(isset($performance) && config('app.debug'))
|
||||
<div class="btn-group ml-3" role="group">
|
||||
<button type="button" class="btn btn-info btn-sm" onclick="showPerformanceDetails()">
|
||||
<i class="fa fa-chart-line"></i> {{ __('team.performance_details') }}
|
||||
</button>
|
||||
@if(config('app.debug'))
|
||||
@if(isset($performance['version']) && $performance['version'] === 'Standard')
|
||||
<a href="{{ route('user_team_structure') }}?use_optimized=1" class="btn btn-outline-success btn-sm" title="Optimierte Version testen">
|
||||
<i class="fa fa-rocket"></i> {{ __('team.test_optimized') }}
|
||||
</a>
|
||||
@else
|
||||
<a href="{{ route('user_team_structure') }}" class="btn btn-outline-info btn-sm" title="Standard-Version">
|
||||
<i class="fa fa-undo"></i> {{ __('team.standard_version') }}
|
||||
</a>
|
||||
@if(isset($performance['calculation_type']) && $performance['calculation_type'] === 'Live')
|
||||
<a href="{{ route('user_team_structure') }}?use_optimized=1" class="btn btn-outline-warning btn-sm" title="Live-Berechnung aus">
|
||||
<i class="fa fa-refresh"></i> Live berechnen aus
|
||||
</a>
|
||||
@else
|
||||
<a href="{{ route('user_team_structure') }}?use_optimized=1&force_live_calculation=1" class="btn btn-outline-success btn-sm" title="Live-Berechnung erzwingen">
|
||||
<i class="fa fa-refresh"></i> Live berechnen
|
||||
</a>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
|
@ -75,6 +142,58 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Performance Details Modal -->
|
||||
@if(isset($performance))
|
||||
<div class="modal fade" id="performanceModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">{{ __('team.performance_metrics_my_team') }}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal">
|
||||
<span>×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table class="table table-sm">
|
||||
<tr>
|
||||
<td><strong>{{ __('team.execution_time') }}</strong></td>
|
||||
<td>{{ $performance['execution_time'] }}ms</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Memory-Verbrauch:</strong></td>
|
||||
<td>{{ $performance['memory_used'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{{ __('team.team_members') }}</strong></td>
|
||||
<td>{{ $performance['user_count'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Version:</strong></td>
|
||||
<td>{{ $performance['version'] ?? 'Standard' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Features:</strong></td>
|
||||
<td>
|
||||
@if(isset($performance['version']) && $performance['version'] === 'Optimized')
|
||||
<span class="badge badge-success">TreeCalcBotOptimized</span>
|
||||
@else
|
||||
<span class="badge badge-info">TreeCalcBot Standard</span>
|
||||
@endif
|
||||
<span class="badge badge-success">{{ __('team.performance_monitoring') }}</span>
|
||||
<span class="badge badge-success">Error Handling</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ __('team.close') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<link rel="stylesheet" href="/vendor/libs/nestable/nestable.css">
|
||||
<script src="/vendor/libs/nestable/jquery-nestable.js?v=1"></script>
|
||||
<script>
|
||||
|
|
@ -104,5 +223,11 @@
|
|||
$('.on_change_select_filter').on('change', function(){
|
||||
$('#form_filter_business_user').submit();
|
||||
});
|
||||
|
||||
@if(isset($performance))
|
||||
function showPerformanceDetails() {
|
||||
$('#performanceModal').modal('show');
|
||||
}
|
||||
@endif
|
||||
</script>
|
||||
@endsection
|
||||
|
|
|
|||
108
resources/views/user/team/structureOld.blade.php
Normal file
108
resources/views/user/team/structureOld.blade.php
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('navigation.my_team') }}
|
||||
</h4>
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
{{__('team.business')}} {{__('team.structure')}}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
{!! Form::open(['action' => route('user_team_structure_old'), 'class' => 'form-horizontal', 'id'=>'form_filter_business_user']) !!}
|
||||
|
||||
<div class="form-row align-items-center px-0 pb-2 pt-0">
|
||||
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
<select class="custom-select on_change_select_filter" name="team_user_filter_month">
|
||||
@foreach($filter_months as $key=>$value)
|
||||
<option value="{{$key}}" @if(session('team_user_filter_month') == $key) selected @endif>{{$value}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
<select class="custom-select on_change_select_filter" name="team_user_filter_year">
|
||||
@foreach($filter_years as $key=>$value)
|
||||
<option value="{{$value}}" @if(session('team_user_filter_year') == $value) selected @endif>{{$value}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
<hr class="container-m-nx border-light mt-0">
|
||||
<div>
|
||||
<div id="nestable-menu" class="mb-4">
|
||||
<button type="button" class="btn btn-default btn-sm" data-action="expand-all">{{ __('team.expand_all') }}</button>
|
||||
<button type="button" class="btn btn-default btn-sm" data-action="collapse-all">{{ __('team.collapse_all') }}</button>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h6 class="">
|
||||
{{ __('team.your_sponsor') }}
|
||||
</h6>
|
||||
<div class="dd" id="">
|
||||
{!! $TreeCalcBot->makeSponsorHtml() !!}
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h6 class="">
|
||||
{{ __('team.your_team') }}
|
||||
</h6>
|
||||
<div class="dd" id="nestable2">
|
||||
{!! $TreeCalcBot->makeHtmlTree() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<link rel="stylesheet" href="/vendor/libs/nestable/nestable.css">
|
||||
<script src="/vendor/libs/nestable/jquery-nestable.js?v=1"></script>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
function updateOutput(e) {
|
||||
//var list = e.length ? e : $(e.target);
|
||||
//var output = list.data('output');
|
||||
};
|
||||
|
||||
$('#nestable2').nestable().on('change', updateOutput);
|
||||
// output initial serialised data
|
||||
//updateOutput($('#nestable2').data('output', $('#nestable2-output')));
|
||||
|
||||
$('#nestable-menu').on('click', function(e) {
|
||||
var target = $(e.target);
|
||||
var action = target.data('action');
|
||||
|
||||
if (action === 'expand-all') {
|
||||
$('.dd').nestable('expandAll');
|
||||
}
|
||||
if (action === 'collapse-all') {
|
||||
$('.dd').nestable('collapseAll');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
$('.on_change_select_filter').on('change', function(){
|
||||
$('#form_filter_business_user').submit();
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue