99 lines
4.1 KiB
PHP
99 lines
4.1 KiB
PHP
{!! Form::open(['url' => $route, 'class' => 'modal-content', 'enctype' => 'multipart/form-data']) !!}
|
||
<div class="modal-header">
|
||
<h5 class="modal-title">
|
||
Business Points
|
||
<span class="font-weight-light">bearbeiten</span>
|
||
</h5>
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<input type="hidden" name="action" value="{{$data['action']}}">
|
||
<input type="hidden" name="id" value="{{$data['id']}}">
|
||
|
||
|
||
<div class="form-row">
|
||
<div class="form-group col">
|
||
<label for="change_member_key" class="form-label">{{ __('Passwort eingeben') }}*</label>
|
||
<input type="text" class="form-control" name="change_member_key" id="change_member_key"
|
||
placeholder="mivita" required>
|
||
</div>
|
||
</div>
|
||
<div class="table-responsive">
|
||
<table class="table table-bordered table-striped">
|
||
<thead>
|
||
<tr>
|
||
<th>Datum</th>
|
||
<th>Points</th>
|
||
<th>Umsatz netto</th>
|
||
<th>Status</th>
|
||
<th>Berater</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@if($userSalesVolume)
|
||
<tr>
|
||
<td>{{ $userSalesVolume->date }}</td>
|
||
<td>{{ $userSalesVolume->points }}</td>
|
||
<td>{{ formatNumber($userSalesVolume->total_net) }} €</td>
|
||
<td>{{ $userSalesVolume->getStatusType() }}</td>
|
||
<td>@if($userSalesVolume->user)
|
||
{{ $userSalesVolume->user->getFullName() }}
|
||
@else
|
||
nicht zugewiesen
|
||
@endif
|
||
</td>
|
||
</tr>
|
||
@if($userSalesVolume->message)
|
||
<tr>
|
||
<td colspan="5">{{ $userSalesVolume->message }}</td>
|
||
</tr>
|
||
@endif
|
||
@endif
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<hr>
|
||
@if($userSalesVolume->isCurrentMonthYear())
|
||
<div class="form-row">
|
||
<div class="form-group col-sm-4">
|
||
<label for="points" class="form-label">{{__('Points')}}</label>
|
||
{{ Form::text('points', $userSalesVolume->points, array('class'=>'form-control', 'id'=>'points')) }}
|
||
|
||
</div>
|
||
</div>
|
||
<div class="form-row">
|
||
<div class="form-group col-sm-4">
|
||
<label for="total_net" class="form-label">{{__('Umsatz netto')}}</label>
|
||
{{ Form::text('total_net', formatNumber($userSalesVolume->total_net), array('class'=>'form-control', 'id'=>'total_net')) }}
|
||
</div>
|
||
</div>
|
||
|
||
<label class="custom-control custom-checkbox">
|
||
{!! Form::checkbox('is_checked_action', 1, 0, ['class' => 'custom-control-input', 'id' => 'is_checked_action', 'required'=>true]) !!}
|
||
<span class="custom-control-label">Points / Umsatz ändern</span>
|
||
</label>
|
||
@else
|
||
Points können nicht mehr geändet werden werden.
|
||
@endif
|
||
<hr>
|
||
<i>Points können nur innerhalb des akutellen Monats geändert werden, da sonst die monatliche Auswertung schon berechnet ist.
|
||
Danach können Points für den akutellen Monat manuell gutgeschrieben werden.</i><br>
|
||
<a class="btn btn-sm btn-default mt-2" href="{{ route('admin_business_points') }}">Business -> Points gutschreiben</a>
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
|
||
<button type="submit" class="btn btn-primary">{{__('übernehmen')}}</button>
|
||
|
||
</div>
|
||
{!! Form::close() !!}
|
||
|
||
|
||
<script type="text/javascript">
|
||
$( document ).ready(function() {
|
||
});
|
||
</script>
|