55 lines
2.2 KiB
PHP
55 lines
2.2 KiB
PHP
@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.register_new_consultant') }}</h5>
|
|
<div class="row no-gutters row-bordered">
|
|
<div class="col-md-12 p-4">
|
|
<h6 class="mb-4">{{ __('team.link_for_consultant_registration') }}</h6>
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<span class="input-group-prepend">
|
|
<button class="btn btn-secondary" type="button" title="Kopiert!" data-clipboard-demo data-clipboard-target="#shop_register_link"><i class="ion ion-ios-copy"></i> {{ __('Copy link') }}</button>
|
|
</span>
|
|
<input type="text" class="form-control" name="shop_register_link" value="{{$shop_register_link}}" id="shop_register_link" placeholder="">
|
|
</div>
|
|
</div>
|
|
<p>{{ __('team.new_consultant_copy1') }}</p>
|
|
</div>
|
|
</div>
|
|
</div><!-- Target -->
|
|
<script>
|
|
$( document ).ready(function() {
|
|
var clipboardDemos = new ClipboardJS('[data-clipboard-demo]');
|
|
clipboardDemos.on('success', function (e) {
|
|
e.clearSelection();
|
|
$(e.trigger).tooltip('enable').tooltip('show');
|
|
});
|
|
clipboardDemos.on('error', function (e) {
|
|
console.error('Action:', e.action);
|
|
console.error('Trigger:', e.trigger);
|
|
});
|
|
|
|
$('button[data-clipboard-demo]').on('mouseout', function () {
|
|
$(this).tooltip('disable');
|
|
})
|
|
});
|
|
</script>
|
|
@endsection
|