Homparty dev
This commit is contained in:
parent
9252094a04
commit
ac0d5b781e
60 changed files with 3443 additions and 293 deletions
|
|
@ -22,6 +22,7 @@ return [
|
|||
'products'=>'Produkte',
|
||||
'overview'=>'Übersicht',
|
||||
'categories'=>'Kategorien',
|
||||
'ingredients'=>'Inhaltsstoffe',
|
||||
'attribute'=>'Attribute',
|
||||
'contents'=>'Inhalte',
|
||||
'start_site'=>'Startseite',
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<div class="row">
|
||||
|
||||
<div class="col-12">
|
||||
<p>Bild wird rechts hinter die Headline gesetzt und automatisch auf eine Höhe von 60 Pixel skaliert.</p>
|
||||
<p>Bild wird hinter oder unter die Headline gesetzt und einer Breite von 100% ausgegeben.</p>
|
||||
</div>
|
||||
<div class="col-md-8 col-sm-6">
|
||||
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
<div class="slim" style="margin:20px auto;"
|
||||
data-label='<span class="text-green">Foto-Upload</span><br>(Datei suchen oder Drag & Drop)'
|
||||
data-fetcher="fetch.php"
|
||||
data-size="600,400"
|
||||
data-size="1680,640"
|
||||
data-min-size="100,100"
|
||||
data-max-file-size="10"
|
||||
data-status-image-too-small="Bild zu klein<br>min. $0 Pixel"
|
||||
|
|
|
|||
37
resources/views/admin/ingredient/edit.blade.php
Executable file
37
resources/views/admin/ingredient/edit.blade.php
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
@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">
|
||||
{{ __('Create/Edit Inhaltsstoff') }}
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('admin_product_ingredient_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
|
||||
|
||||
<input type="hidden" name="id" id="id" value="@if($model->id>0){{$model->id}}@else new @endif">
|
||||
|
||||
|
||||
@include('admin.ingredient.form')
|
||||
|
||||
<div class="text-left mt-0 mb-2">
|
||||
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
||||
<a href="{{ route('admin_product_ingredients') }}" class="btn btn-default">{{ __('back') }}</a>
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
@endsection
|
||||
43
resources/views/admin/ingredient/form.blade.php
Executable file
43
resources/views/admin/ingredient/form.blade.php
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
|
||||
<div class="card mb-2">
|
||||
|
||||
<h5 class="card-header">
|
||||
{{ __('Inhaltsstoff') }}
|
||||
|
||||
</h5>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col">
|
||||
<label class="custom-control custom-checkbox float-right">
|
||||
{!! Form::checkbox('active', 1, $model->active, ['class'=>'custom-control-input']) !!}
|
||||
<span class="custom-control-label">{{__('aktiv')}}</span>
|
||||
</label>
|
||||
<label class="form-label" for="name">{{ __('Name') }}*</label>
|
||||
{{ Form::text('name', $model->name, array('placeholder'=>__('Name'), 'class'=>'form-control', 'id'=>'name', 'required')) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col">
|
||||
<label class="form-label" for="headline">{{ __('INCI') }}</label>
|
||||
{{ Form::textarea('inci', $model->inci, array('placeholder'=>__('INCI'), 'class'=>'form-control', 'id'=>'inci', 'rows'=>3)) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col">
|
||||
<label class="form-label" for="headline">{{ __('Wirkung') }}</label>
|
||||
{{ Form::textarea('effect', $model->effect, array('placeholder'=>__('Wirkung'), 'class'=>'form-control', 'id'=>'inci', 'rows'=>3)) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-sm-2">
|
||||
<label class="form-label" for="pos">{{ __('pos') }}</label>
|
||||
{{ Form::text('pos', $model->pos, array('placeholder'=>__('pos'), 'class'=>'form-control', 'id'=>'pos')) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
72
resources/views/admin/ingredient/index.blade.php
Executable file
72
resources/views/admin/ingredient/index.blade.php
Executable file
|
|
@ -0,0 +1,72 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
<div class="card">
|
||||
<h6 class="card-header">
|
||||
{{__('Inhaltsstoffe')}}
|
||||
</h6>
|
||||
<div class="card-datatable table-responsive">
|
||||
<table class="datatables-style table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="max-width: 60px;"> </th>
|
||||
<th>{{__('Pos')}}</th>
|
||||
<th>{{__('Name')}}</th>
|
||||
<th>{{__('INCI')}}</th>
|
||||
<th>{{__('Wirkung') }}</th>
|
||||
<th>{{__('Status')}}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($values as $value)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{route('admin_product_ingredient_edit', [$value->id])}}" class="btn icon-btn btn-sm btn-primary">
|
||||
<span class="far fa-edit"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ $value->pos }}</td>
|
||||
<td>{{ $value->name }}</td>
|
||||
<td>{{ $value->inci }}</td>
|
||||
<td>{{ $value->effect }}</td>
|
||||
<td data-sort="{{ $value->active }}">@if($value->active) <span class="badge badge-pill badge-success"><i class="fa fa-check"></i></span>@else<span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span>@endif</td>
|
||||
<td><a class="text-danger" href="{{ route('admin_product_ingredient_delete', [$value->id]) }}" onclick="return confirm('{{__('Really delete entry?')}}');"><i class="far fa-trash-alt"></i></a></td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="mt-4 ml-4">
|
||||
<a href="{{route('admin_product_ingredient_edit', ['new'])}}" class="btn btn-sm btn-primary">
|
||||
{{__('Neuen Inhaltsstoff erstellen')}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
|
||||
$('.datatables-style').dataTable({
|
||||
"bLengthChange": false,
|
||||
"iDisplayLength": 100,
|
||||
"order": [[ 1, "asc" ]],
|
||||
"aoColumns": [
|
||||
{ "sWidth": "8%" },
|
||||
{ "sWidth": "8%" },
|
||||
{ "sWidth": "19%" },
|
||||
{ "sWidth": "19%" },
|
||||
{ "sWidth": "30%" },
|
||||
{ "sWidth": "10%" },
|
||||
{ "sWidth": "8%" },
|
||||
],
|
||||
"language": {
|
||||
"url": "/js/German.json"
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
|
@ -242,10 +242,51 @@
|
|||
{{ Form::textarea('usage', $product->usage , array('placeholder'=>__('usage'), 'class'=>'form-control summernote', 'id'=>'usage')) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="ingredients">{{ __('Inhaltsstoffe') }}</label>
|
||||
<label class="form-label" for="ingredients">{{ __('Hinweise') }}</label>
|
||||
{{ Form::textarea('ingredients', $product->ingredients , array('placeholder'=>__('ingredients'), 'class'=>'form-control summernote', 'id'=>'ingredients')) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-2">
|
||||
<h5 class="card-header">
|
||||
{{ __('Inhalte') }}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
<div class="card-datatable table-responsive pt-0">
|
||||
<table class="datatables-style table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('Name')}}</th>
|
||||
<th>{{__('INCI')}}</th>
|
||||
<th>{{__('Wirkung') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($product->p_ingredients as $ingredient)
|
||||
<tr>
|
||||
<td>{{ $ingredient->name }}</td>
|
||||
<td>{{ $ingredient->inci }}</td>
|
||||
<td>{{ $ingredient->effect }}</td>
|
||||
<td><a class="text-danger" href="{{ route('admin_product_delete', [$product->id, 'ingredient', $ingredient->id]) }}" onclick="return confirm('{{__('Eintrag entfernen?')}}');"><i class="far fa-trash-alt"></i></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-sm-10">
|
||||
<label class="form-label" for="title">{{ __('Inhaltsstoffe hinzufügen (Mehrfachauswahl)') }}</label>
|
||||
<select class="selectpicker" name="product_ingredients[]" id="product_ingredients" data-style="btn-light" data-live-search="false" multiple>
|
||||
{!! HTMLHelper::getProductIngredientsOptions($product->p_ingredients()->pluck('ingredient_id')->toArray()) !!}
|
||||
</select>
|
||||
<a class="btn btn-default btn-xs mt-2" href="{{route('admin_product_ingredients')}}">Inhaltsstoffe anlegen</a>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
<button type="submit" class="btn btn-submit mt-0 mt-sm-4">{{ __('save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
<div class="slim" style="margin:20px auto;"
|
||||
data-label='<span class="text-green">Foto-Upload</span><br>(Datei suchen oder Drag & Drop)'
|
||||
data-fetcher="fetch.php"
|
||||
data-size="1920,400"
|
||||
data-size="1920,640"
|
||||
data-min-size="100,100"
|
||||
data-max-file-size="10"
|
||||
data-status-image-too-small="Bild zu klein<br>min. $0 Pixel"
|
||||
|
|
|
|||
|
|
@ -142,7 +142,6 @@
|
|||
<script src="{{ mix('/js/application.js') }}"></script>
|
||||
<script src="{{ asset('/js/custom.js') }}?v=1{{ get_file_last_time('/js/custom.js') }}"></script>
|
||||
|
||||
<script src="{{ asset('/js/iq-shopping-cart.js') }}?v=1{{ get_file_last_time('/js/iq-shopping-cart.js') }}"></script>
|
||||
|
||||
@yield('scripts')
|
||||
|
||||
|
|
|
|||
|
|
@ -143,6 +143,9 @@
|
|||
<li class="sidenav-item{{ Request::is('admin/product/categories') ? ' active' : '' }}">
|
||||
<a href="{{ route('admin_product_categories') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-list"></i><div>{{ __('navigation.categories') }}</div></a>
|
||||
</li>
|
||||
<li class="sidenav-item{{ Request::is('admin/product/ingredients') ? ' active' : '' }}">
|
||||
<a href="{{ route('admin_product_ingredients') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-ice-cream"></i><div>{{ __('navigation.ingredients') }}</div></a>
|
||||
</li>
|
||||
<li class="sidenav-item{{ Request::is('admin/product/attributes') ? ' active' : '' }}">
|
||||
<a href="{{ route('admin_product_attributes') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-apps"></i><div>{{ __('navigation.attribute') }}</div></a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
|
||||
<button type="submit" name="action" value="makePaymentMethodsDefault" class="btn btn-primary"><i class="ion"></i> make PaymentMethods Default</button>
|
||||
|
||||
<button type="submit" name="action" value="checkContractPDF" class="btn btn-primary"><i class="ion"></i> check Contract PDF</button>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
71
resources/views/user/homeparty/_address.blade.php
Normal file
71
resources/views/user/homeparty/_address.blade.php
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
@if($homeparty_user)
|
||||
@if($homeparty_user->isAddress())
|
||||
@if($homeparty_user->same_as_billing)
|
||||
<p>
|
||||
@if($homeparty_user->billing_company)
|
||||
{{ $homeparty_user->billing_company }}
|
||||
<br>
|
||||
@endif
|
||||
{{ \App\Services\HTMLHelper::getSalutationLang($homeparty_user->billing_salutation) }}
|
||||
{{ $homeparty_user->billing_firstname }}
|
||||
{{ $homeparty_user->billing_lastname }}
|
||||
<br>
|
||||
|
||||
{{ $homeparty_user->billing_address }}
|
||||
<br>
|
||||
@if($homeparty_user->billing_address_2)
|
||||
{{ $homeparty_user->billing_address_2 }}
|
||||
<br>
|
||||
@endif
|
||||
{{ $homeparty_user->billing_zipcode }}
|
||||
{{ $homeparty_user->billing_city }}
|
||||
<br>
|
||||
@if($homeparty_user->billing_country)
|
||||
{{ $homeparty_user->billing_country->getLocated() }}
|
||||
<br>
|
||||
@endif
|
||||
@if($homeparty_user->billing_email)
|
||||
E-Mail:{{ $homeparty_user->billing_email }}
|
||||
<br>
|
||||
@endif
|
||||
@if($homeparty_user->billing_phone)
|
||||
Telefon: {{ $homeparty_user->billing_phone }}
|
||||
@endif
|
||||
</p>
|
||||
@else
|
||||
<p>
|
||||
@if($homeparty_user->shipping_company)
|
||||
{{ $homeparty_user->shipping_company }}
|
||||
<br>
|
||||
@endif
|
||||
{{ \App\Services\HTMLHelper::getSalutationLang($homeparty_user->shipping_salutation) }}
|
||||
{{ $homeparty_user->shipping_firstname }}
|
||||
{{ $homeparty_user->shipping_lastname }}
|
||||
<br>
|
||||
|
||||
{{ $homeparty_user->shipping_address }}
|
||||
<br>
|
||||
@if($homeparty_user->shipping_address_2)
|
||||
{{ $homeparty_user->shipping_address_2 }}
|
||||
<br>
|
||||
@endif
|
||||
{{ $homeparty_user->shipping_zipcode }}
|
||||
{{ $homeparty_user->shipping_city }}
|
||||
<br>
|
||||
@if($homeparty_user->shipping_country)
|
||||
{{ $homeparty_user->shipping_country->getLocated() }}
|
||||
<br>
|
||||
@endif
|
||||
@if($homeparty_user->shipping_email)
|
||||
E-Mail:{{ $homeparty_user->shipping_email }}
|
||||
<br>
|
||||
@endif
|
||||
@if($homeparty_user->shipping_phone)
|
||||
Telefon: {{ $homeparty_user->shipping_phone }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
@else
|
||||
<p>Keine Adresse angelegt</p>
|
||||
@endif
|
||||
@endif
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
<a href="{{route('user_homepartys')}}" class="btn btn-sm btn-default float-right">zurück</a>
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('user_homeparty_detail', [$homeparty->id]), 'class' => 'form-horizontal', 'id'=>'homeparty-party-form-validation']) !!}
|
||||
{!! Form::open(['url' => route('user_homeparty_detail', [$homeparty->id]), 'class' => 'form-horizontal', 'id'=>'homeparty-party-form-validation']) !!}
|
||||
|
||||
<div class="card mb-4">
|
||||
<h5 class="card-header">
|
||||
|
|
@ -74,29 +74,31 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="text-left mt-3">
|
||||
<button type="submit" class="btn btn-secondary mr-2 mb-2" name="action" value="homeparty-party-store">{{ __('speichern') }}</button>
|
||||
<button type="submit" class="btn btn-secondary mr-2 mb-2" name="action" value="homeparty-party-store">
|
||||
@if($homeparty->id) {{ __('Änderungen speichern') }} @else {{ __('speichern') }} @endif</button>
|
||||
<a href="{{route('user_homepartys')}}" class="btn btn-default mb-2">zurück zur Übersicht</a>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
@if($homeparty->id)
|
||||
{!! Form::open(['url' => route('user_homeparty_detail', [$homeparty->id]), 'class' => 'form-horizontal', 'id'=>'homeparty-user-form-validation']) !!}
|
||||
<hr>
|
||||
<div class="card mb-4">
|
||||
<div class="card mb-3 mt-2">
|
||||
<div class="col-md-12 px-4 pt-4">
|
||||
<h6 class="mb-4">Lass den Gastgeber seine Daten selber ausfüllen</h6>
|
||||
<h6 class="mb-4">Lass den Gastgeber/in seine Daten selber ausfüllen</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="#homeparty_link"><i class="ion ion-ios-copy"></i> Link kopieren</button>
|
||||
</span>
|
||||
<input type="text" class="form-control" name="homeparty_link" value="{{ $homeparty->homeparty_host->getTokenLink() }}" id="homeparty_link" placeholder="">
|
||||
<input type="text" class="form-control" name="homeparty_link" value="{{ $homeparty->getTokenLink() }}" id="homeparty_link" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
<p>Teile diesen Link mit dem Gastgeber (z.B. WhatsApp oder SMS), damit gelangt er auf eine Zielseite wo er seine Daten selber ausfüllen kann. Nutze das „Kopier-Symbol“, um den Link gleich in Deine Zwischenablage zu kopieren.</p>
|
||||
<hr>
|
||||
<p>Teile diesen Link mit dem Gastgeber/in und Gästen (z.B. WhatsApp oder SMS), damit gelangt sie auf eine Zielseite wo sie ihre Daten selber ausfüllen können. Nutze das „Kopier-Symbol“, um den Link gleich in Deine Zwischenablage zu kopieren.</p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{!! Form::open(['url' => route('user_homeparty_detail', [$homeparty->id]), 'class' => 'form-horizontal', 'id'=>'homeparty-user-form-validation']) !!}
|
||||
<div class="card mb-4">
|
||||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
|
|
|
|||
|
|
@ -7,21 +7,7 @@
|
|||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('user_homeparty_guest_detail', [$homeparty->id, $homeparty_user->id]), 'class' => 'form-horizontal', 'id'=>'homeparty-user-form-validation']) !!}
|
||||
<hr>
|
||||
<div class="card mb-4">
|
||||
<div class="col-md-12 px-4 pt-4">
|
||||
<h6 class="mb-4">Lass den @if($homeparty_user->is_host) Gastgeber @else Gast @endif seine Daten selber ausfüllen</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="#homeparty_link"><i class="ion ion-ios-copy"></i> Link kopieren</button>
|
||||
</span>
|
||||
<input type="text" class="form-control" name="homeparty_link" value="{{ $homeparty_user->getTokenLink() }}" id="homeparty_link" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
<p>Teile diesen Link mit dem Gastgeber (z.B. WhatsApp oder SMS), damit gelangt er auf eine Zielseite wo er seine Daten selber ausfüllen kann. Nutze das „Kopier-Symbol“, um den Link gleich in Deine Zwischenablage zu kopieren.</p>
|
||||
<hr>
|
||||
</div>
|
||||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
{{-- <span class="badge badge-success align-text-bottom ml-1">offen ...</span> --}}
|
||||
</div>
|
||||
<div>
|
||||
<a href="{{route('user_homeparty_guest_detail', [$homeparty->id, $homeparty_user->id])}}" class="btn btn-sm btn-secondary mr-2"><i class="ion ion-ios-cog"></i> Verwalten</a>
|
||||
<a href="{{route('user_homeparty_guest_detail', [$homeparty->id, $homeparty_user->id])}}" class="btn btn-sm btn-secondary mr-2"><i class="fa fa-edit"></i> bearbeiten</a>
|
||||
<div class="btn-group project-actions">
|
||||
|
||||
<button type="button" class="btn btn-sm btn-default icon-btn borderless rounded-pill md-btn-flat dropdown-toggle hide-arrow" data-toggle="dropdown">
|
||||
|
|
@ -73,37 +73,14 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="m-0">
|
||||
<div class="card-body py-3">
|
||||
<div class="form-group mb-0">
|
||||
<div class="input-group">
|
||||
<span class="input-group-prepend">
|
||||
<button class="btn btn-sm btn-secondary" type="button" title="Kopiert!" data-clipboard-demo data-clipboard-target="#homeparty_link_{{$homeparty_user->id}}"><i class="ion ion-ios-copy"></i> Link kopieren</button>
|
||||
</span>
|
||||
<input type="text" class="form-control" name="homeparty_link_{{$homeparty_user->id}}" value="{{ $homeparty_user->getTokenLink() }}" id="homeparty_link_{{$homeparty_user->id}}" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<a href="{{route('user_homepartys')}}" class="btn btn-sm btn-default float-right">zurück zur Übersicht</a>
|
||||
<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);
|
||||
});
|
||||
<div class="text-left mt-1">
|
||||
<a href="{{route('user_homeparty_detail', [$homeparty->id])}}" class="btn btn-sm btn-secondary mr-2 mb-2"><i class="ion ion-ios-cog"></i> Homparty verwalten</a>
|
||||
<a href="{{route('user_homepartys')}}" class="btn btn-sm btn-default mb-2">zurück zur Übersicht</a>
|
||||
</div>
|
||||
|
||||
$('button[data-clipboard-demo]').on('mouseout', function () {
|
||||
$(this).tooltip('disable');
|
||||
})
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
|
@ -59,6 +59,17 @@
|
|||
</div>
|
||||
</div>
|
||||
<hr class="m-0">
|
||||
<div class="card-body py-3">
|
||||
<div class="form-group mb-0">
|
||||
<div class="input-group">
|
||||
<span class="input-group-prepend">
|
||||
<button class="btn btn-sm btn-secondary" type="button" title="Kopiert!" data-clipboard-demo data-clipboard-target="#homeparty_link_{{$homeparty->id}}"><i class="ion ion-ios-copy"></i> Link kopieren</button>
|
||||
</span>
|
||||
<input type="text" class="form-control" name="homeparty_link_{{$homeparty->id}}" value="{{ $homeparty->getTokenLink() }}" id="homeparty_link_{{$homeparty->id}}" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="m-0">
|
||||
<div class="card-body py-3">
|
||||
<div class="d-flex flex-wrap">
|
||||
<a href="{{route('user_homeparty_detail', [$homeparty->id])}}" class="btn btn-secondary mr-2 mb-2"><i class="ion ion-ios-cog"></i> Verwalten</a>
|
||||
|
|
@ -72,8 +83,19 @@
|
|||
</div>
|
||||
<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
|
||||
66
resources/views/user/homeparty/modal_show_products.blade.php
Normal file
66
resources/views/user/homeparty/modal_show_products.blade.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">
|
||||
Produkt hinzufügen /
|
||||
@if($homeparty_user->is_host)
|
||||
Gastgeber/in
|
||||
@else
|
||||
Gast
|
||||
@endif
|
||||
{{ $homeparty_user->billing_firstname }} {{ $homeparty_user->billing_lastname }}
|
||||
</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="card-datatable pt-0 table-responsive">
|
||||
<table id="datatable-homeparty" class="table table-striped table-bordered" data-homeparty-id="{{$homeparty->id}}" data-homeparty-user-id="{{$homeparty_user->id}}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{__('Bild')}}</th>
|
||||
<th>{{__('Produkt')}}</th>
|
||||
<th>{{__('Artikelnummer')}}</th>
|
||||
<th>{{__('EK-Preis brutto')}}</th>
|
||||
<th>{{__('VK-Preis brutto')}}</th>
|
||||
<th>{{__('Points')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
var oTable = $('#datatable-homeparty').DataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ajax": '{!! route('user_homeparty_datatable') !!}',
|
||||
"order": [[4, "asc" ]],
|
||||
"columns": [
|
||||
|
||||
{ data: 'add_card', name: 'add_card', searchable: false, orderable: false },
|
||||
{ data: 'picture', name: 'picture', searchable: false, width: 35 },
|
||||
{ data: 'name', name: 'name' },
|
||||
{ data: 'number', name: 'number' },
|
||||
{ data: 'price_gross', name: 'price_gross', searchable: false, orderable: false },
|
||||
{ data: 'price_vk_gross', name: 'price_vk_gross', searchable: false },
|
||||
{ data: 'points', name: 'points', searchable: false },
|
||||
|
||||
],
|
||||
"bLengthChange": false,
|
||||
"iDisplayLength": 1000,
|
||||
"paging": false,
|
||||
"language": {
|
||||
"url": "/js/German.json"
|
||||
},
|
||||
drawCallback: function (settings) {
|
||||
iqHomepartyCart.reInitModal();
|
||||
}
|
||||
});
|
||||
iqHomepartyCart.setDatabase('#datatable-homeparty');
|
||||
|
||||
});
|
||||
</script>
|
||||
235
resources/views/user/homeparty/order.blade.php
Normal file
235
resources/views/user/homeparty/order.blade.php
Normal file
|
|
@ -0,0 +1,235 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
|
||||
<style>
|
||||
.table-small {
|
||||
font-size: 0.9em;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.table-small td {
|
||||
padding: 0.225rem 1rem 0.225rem 0;
|
||||
}
|
||||
|
||||
.btn-md-extra {
|
||||
padding: 0.3rem 0.6rem;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.5;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
.md-btn-extra {
|
||||
width: calc(1.7rem + 2px) !important;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
.form-control.input-extra {
|
||||
padding: 0.28rem 0.6rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
min-height: calc(1.8rem + 2px);
|
||||
height: calc(1.8rem + 2px);
|
||||
width: 44px;
|
||||
}
|
||||
.input-group-min-w {
|
||||
min-width: 102px;
|
||||
}
|
||||
.img-extra {
|
||||
min-width:55px;
|
||||
max-height: 120px;
|
||||
}
|
||||
|
||||
.table td.border-top {
|
||||
border: none;
|
||||
border-top: 1px solid #ccccdb;
|
||||
}
|
||||
|
||||
.table td {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.table th {
|
||||
border: none;
|
||||
border-bottom: 1px solid #c3c3d2;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.default-style:not([dir=rtl]) div.card-datatable table.dataTable thead th:first-child,
|
||||
.default-style:not([dir=rtl]) div.card-datatable table.dataTable tbody td:first-child,
|
||||
.default-style:not([dir=rtl]) div.card-datatable table.dataTable tfoot th:first-child {
|
||||
padding-left: 0.6rem !important;
|
||||
|
||||
}
|
||||
.img-extra {
|
||||
min-width:35px;
|
||||
max-height: 160px;
|
||||
}
|
||||
}
|
||||
.table .foot-small td {
|
||||
padding: 0.225rem 0.625rem;
|
||||
}
|
||||
.table .text-body {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
.table .options a.auto-delete-product {
|
||||
font-size: 0.7em;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.table .min-width-80 {
|
||||
min-width: 160px;
|
||||
}
|
||||
</style>
|
||||
<h4 class="font-weight-bold py-2 mb-2 d-flex justify-content-between align-items-center w-100 ">
|
||||
<div>{{ __('navigation.my_homeparty') }} / {{ $homeparty->name }} - {{ $homeparty->date }}</div>
|
||||
<a href="{{route('user_homepartys')}}" class="btn btn-sm btn-default float-right">zurück</a>
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('user_homeparty_order', [$homeparty->id]), 'class' => 'form-horizontal', 'id'=>'homeparty-order-form']) !!}
|
||||
|
||||
<div class="card mb-4">
|
||||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="d-flex justify-content-between align-items-center w-100">
|
||||
<div>Bestellung anlegen</div>
|
||||
<div class="float-right">
|
||||
<a href="{{route('user_homeparty_detail', [$homeparty->id])}}" class="btn btn-sm btn-secondary mr-2 mb-1"><i class="ion ion-ios-cog"></i> Verwalten</a>
|
||||
<a href="{{route('user_homeparty_guests', [$homeparty->id])}}" class="btn btn-sm btn-secondary mr-2 mb-1"><i class="ion ion-md-person-add"></i> Gäste anlegen</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h6>Lieferadresse Gastgeber/in <a href="{{route('user_homeparty_guest_detail', [$homeparty->id, $homeparty->homeparty_host->id])}}"><i class="fa fa-edit"></i> </a></h6>
|
||||
@include('user.homeparty._address', ['homeparty_user' => $homeparty->homeparty_host])
|
||||
</div>
|
||||
|
||||
{{-- TODO Berechnung Bonus --}}
|
||||
<div class="col-md-6">
|
||||
<h6>Aktuelle Bonusansicht</h6>
|
||||
|
||||
<div id="insert_show_bonus">
|
||||
@include('user.homeparty.show_bonus', ['homeparty' => $homeparty])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($homeparty->homeparty_host)
|
||||
<div class="card mb-3">
|
||||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="d-flex justify-content-between align-items-center w-100">
|
||||
<div>Bestellung Gastgeber/in {{$homeparty->homeparty_host->billing_firstname}} {{$homeparty->homeparty_host->billing_lastname}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button type="button" class="btn btn-sm btn-secondary btn-block mt-2" data-toggle="modal" data-target="#modals-load-content"
|
||||
data-id="{{ $homeparty->id }}"
|
||||
data-action="homeparty-add-product"
|
||||
data-user_id="{{$homeparty->homeparty_host->id}}"
|
||||
data-route="{{ route('modal_load') }}"><i class="fa fa-plus-circle"></i> Produkt hinzufügen</button>
|
||||
</div>
|
||||
</div>
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
<div class="insert_show_products_order" id="insert_show_products_order_{{$homeparty->homeparty_host->id}}" data-homeparty-id="{{ $homeparty->id }}" data-homeparty-user-id="{{$homeparty->homeparty_host->id}}">
|
||||
@include('user.homeparty.show_products_order', ['homeparty_guest' => $homeparty->homeparty_host])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($homeparty->homeparty_guests)
|
||||
@php($g_count = 1)
|
||||
@foreach($homeparty->homeparty_guests as $homeparty_guest)
|
||||
<div class="card mb-3">
|
||||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="d-flex justify-content-between align-items-center w-100">
|
||||
<div>Bestellung {!! $g_count++ !!}. Gast {{$homeparty_guest->billing_firstname}} {{$homeparty_guest->billing_lastname}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button type="button" class="btn btn-sm btn-secondary btn-block mt-2" data-toggle="modal" data-target="#modals-load-content"
|
||||
data-id="{{ $homeparty->id }}"
|
||||
data-action="homeparty-add-product"
|
||||
data-user_id="{{$homeparty_guest->id}}"
|
||||
data-route="{{ route('modal_load') }}"><i class="fa fa-plus-circle"></i> Produkt hinzufügen</button>
|
||||
</div>
|
||||
</div>
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
<div class="insert_show_products_order" id="insert_show_products_order_{{$homeparty_guest->id}}" data-homeparty-id="{{ $homeparty->id }}" data-homeparty-user-id="{{$homeparty_guest->id}}">
|
||||
@include('user.homeparty.show_products_order', ['homeparty_guest' => $homeparty_guest])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
<hr>
|
||||
|
||||
<div class="card mb-4">
|
||||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="d-flex justify-content-between align-items-center w-100">
|
||||
<div>Gesamtübersicht</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</h5>
|
||||
|
||||
{{-- TODO Berechnung des WK --}}
|
||||
|
||||
<div class="card-body">
|
||||
<div id="insert_show_total_order">
|
||||
@include('user.homeparty.show_total_order', ['homeparty' => $homeparty])
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@if($homeparty->homeparty_host && $homeparty->homeparty_host->isAddress())
|
||||
<div class="float-right">
|
||||
<button type="submit" class="btn btn-secondary"><i class="ion ion-ios-redo"></i> bestätigen und weiter zur Kasse</button>
|
||||
</div>
|
||||
<br><br>
|
||||
<em class="small text-center"> <i class="fa fa-lock"></i> Du wirst auf unseren checkout Server weitergeletet, die Verbindung ist SSL verschlüsselt.</em>
|
||||
@else
|
||||
<div class="alert alert-warning">
|
||||
Die Bestellung kann erst abgesendet werden, wenn die Lieferadresse Gastgeber/in angelegt ist. <a href="{{route('user_homeparty_guest_detail', [$homeparty->id, $homeparty->homeparty_host->id])}}"><i class="fa fa-edit"></i> </a></h6>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-left mt-3">
|
||||
<a href="{{route('user_homeparty_detail', [$homeparty->id])}}" class="btn btn-sm btn-secondary mr-2 mb-2"><i class="ion ion-ios-cog"></i> Homparty verwalten</a>
|
||||
<a href="{{route('user_homepartys')}}" class="btn btn-sm btn-default mb-2">zurück zur Übersicht</a>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
@section('scripts')
|
||||
<script src="{{ asset('/js/iq-homeparty-cart.js') }}?v=1{{ get_file_last_time('/js/iq-homeparty-cart.js') }}"></script>
|
||||
<script type="application/javascript">
|
||||
var iqHomepartyCart = IqHomepartyCart.init();
|
||||
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
|
@ -1,21 +1,87 @@
|
|||
@extends('layouts.layout-2-without')
|
||||
|
||||
@section('content')
|
||||
<h4 class="font-weight-bold py-2 mb-2 d-flex justify-content-between align-items-center w-100 ">
|
||||
<div>Homeparty / {{ $homeparty->name }} - {{ $homeparty->date }}</div>
|
||||
<a href="{{route('user_homeparty_guests', [$homeparty->id])}}" class="btn btn-sm btn-default float-right">zurück</a>
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('homeparty', [$homeparty_user->token]), 'class' => 'form-horizontal', 'id'=>'homeparty-user-form-validation']) !!}
|
||||
<hr>
|
||||
|
||||
@if($homeparty_user === null)
|
||||
<h4 class="font-weight-bold py-2 mb-2 d-flex justify-content-between align-items-center w-100 ">
|
||||
<div>Homeparty / {{ $homeparty->name }} - {{ $homeparty->date }}</div>
|
||||
</h4>
|
||||
@if(Session::has('alert-save'))
|
||||
<div class="alert alert-dark-secondary alert-dismissible fade show">
|
||||
<div class="font-weight-bold">
|
||||
{{__('saved')}}: {{__('The changes have been saved.')}}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@php($g_count = 1)
|
||||
@foreach($homeparty->homeparty_users as $homeparty_user)
|
||||
<div class="card mb-4">
|
||||
<div class="card-body d-flex justify-content-between align-items-start pb-2">
|
||||
<div>
|
||||
<a href="{{route('homeparty', [$homeparty->token, $homeparty_user->id])}}" class="text-body text-big font-weight-semibold">
|
||||
@if($homeparty_user->is_host)
|
||||
<span class="text-muted">Gastgeber/in: </span>
|
||||
@else
|
||||
<span class="text-muted">Gast {{$g_count++}}: </span>
|
||||
@endif
|
||||
{{$homeparty_user->billing_firstname}} {{$homeparty_user->billing_lastname}}
|
||||
</a>
|
||||
{{-- <span class="badge badge-success align-text-bottom ml-1">offen ...</span> --}}
|
||||
</div>
|
||||
<div>
|
||||
<a href="{{route('homeparty', [$homeparty->token, $homeparty_user->id])}}" class="btn btn-sm btn-secondary mr-2"><i class="fa fa-edit"></i> bearbeiten</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="progress rounded-0" style="height: 2px;">
|
||||
<div class="progress-bar" style="width: 100%;"></div>
|
||||
</div>
|
||||
<div class="card-body pt-1 pb-3">
|
||||
{{$homeparty->description}}
|
||||
</div>
|
||||
<div class="card-body pt-0">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="text-muted small">Adresse</div>
|
||||
<div class="font-weight-bold">{{$homeparty_user->billing_address}}
|
||||
{{$homeparty_user->billing_zipcode}}
|
||||
{{$homeparty_user->city}}
|
||||
@if($homeparty_user->billing_country_id){{ $homeparty_user->billing_country->getLocated() }}@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="text-muted small">E-Telefon</div>
|
||||
<div class="font-weight-bold">{{$homeparty_user->billing_phone}}</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="text-muted small">E-Mail</div>
|
||||
<div class="font-weight-bold">{{$homeparty_user->billing_email}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<a href="{{route('homeparty', [$homeparty->token, 'new'])}}" class="btn btn-md btn-secondary rounded-pill"><span class="ion ion-md-add"></span> Neue Gast anlegen</a>
|
||||
|
||||
@else
|
||||
<h4 class="font-weight-bold py-2 mb-2 d-flex justify-content-between align-items-center w-100 ">
|
||||
<div>Homeparty / {{ $homeparty->name }} - {{ $homeparty->date }}</div>
|
||||
<a href="{{route('homeparty', [$homeparty->token])}}" class="btn btn-sm btn-default float-right">zurück</a>
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('homeparty', [$homeparty->token, $homeparty_user->id]), 'class' => 'form-horizontal', 'id'=>'homeparty-user-form-validation']) !!}
|
||||
@if(Session::has('alert-save'))
|
||||
|
||||
<div class="alert alert-dark-secondary alert-dismissible fade show">
|
||||
<div class="font-weight-bold">
|
||||
{{__('saved')}}: {{__('The changes have been saved.')}}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
<div class="card mb-4">
|
||||
<div class="col-md-12 px-4 pt-4">
|
||||
<h6 class="mb-4">Eingabe Deiner persönlichen Daten für die Homeparty</h6>
|
||||
|
|
@ -24,7 +90,7 @@
|
|||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
@if($homeparty_user->is_host) Gastgeber, @else Gast-, @endif Rechungsadresse
|
||||
@if($homeparty_user->is_host) Gastgeber/in, @else Gast-, @endif Rechungsadresse
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<span class="text-tiny float-right">* {{trans('register.required_fields')}}</span>
|
||||
|
|
@ -34,21 +100,21 @@
|
|||
</h5>
|
||||
@include('user.homeparty._edit')
|
||||
<hr class="mt-0">
|
||||
<div class="form-row px-4">
|
||||
<div class="form-group">
|
||||
<label class="custom-control custom-checkbox m-2 ">
|
||||
<input type="checkbox" class="custom-control-input" name="check_for_ot" id="checkbox_for_me" required>
|
||||
<span class="custom-control-label secondary">
|
||||
<span class="fa fa-angle-double-left text-primary fa-lg"></span>
|
||||
Hiermit willige ich in die im Rahmen der <button type="button" class="btn btn-outline-primary btn-xs update_modal_data_load" data-url="https://my.mivita.test/loading/modal" data-data="data_protection" data-target="#modal-loading">Datenschutzerklärung</button>
|
||||
genannte Datenverarbeitung ein. Ich wurde darüber informiert, dass ich diese Einwilligung jederzeit widerrufen kann.*
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-row px-4">
|
||||
<div class="form-group">
|
||||
<label class="custom-control custom-checkbox m-2 ">
|
||||
<input type="checkbox" class="custom-control-input" name="check_for_ot" id="checkbox_for_me" required>
|
||||
<span class="custom-control-label secondary">
|
||||
<span class="fa fa-angle-double-left text-primary fa-lg"></span>
|
||||
Hiermit willige ich in die im Rahmen der <button type="button" class="btn btn-outline-primary btn-xs update_modal_data_load" data-url="https://my.mivita.test/loading/modal" data-data="data_protection" data-target="#modal-loading">Datenschutzerklärung</button>
|
||||
genannte Datenverarbeitung ein. Ich wurde darüber informiert, dass ich diese Einwilligung jederzeit widerrufen kann.*
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-left mt-3">
|
||||
<button type="submit" class="btn btn-secondary mr-2 mb-2" name="action" value="homeparty-user-store">{{ __('Änderungen speichern') }}</button>
|
||||
<button type="submit" class="btn btn-secondary mr-2 mb-2" name="action" value="homeparty-user-store"> @if($homeparty_user->id) {{ __('Änderungen speichern') }} @else {{ __('speichern') }} @endif</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
|
@ -131,4 +197,6 @@
|
|||
|
||||
});
|
||||
</script>
|
||||
|
||||
@endif
|
||||
@endsection
|
||||
43
resources/views/user/homeparty/show_bonus.blade.php
Normal file
43
resources/views/user/homeparty/show_bonus.blade.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<table class="table table-small">
|
||||
<tr>
|
||||
<td>Zielumsatz {{\App\Services\HomepartyCart::getFormattedBonusValue()}} € Gutschein:</td>
|
||||
<td>{{\App\Services\HomepartyCart::getFormattedPrice()}} € / {{\App\Services\HomepartyCart::getFormattedBonusStart()}} €</td>
|
||||
</tr>
|
||||
|
||||
@if(!\App\Services\HomepartyCart::$is_bonus)
|
||||
<tr>
|
||||
<td>fehlen noch:</td>
|
||||
<td><span class="text-danger font-weight-bold"> {{\App\Services\HomepartyCart::getFormattedBonusDiff()}} €</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="border-top">Nächster Bonus:</td>
|
||||
<td class="border-top">- € </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="">fehlen noch:</td>
|
||||
<td class="">- €</td>
|
||||
</tr>
|
||||
|
||||
@else
|
||||
<tr>
|
||||
<td>fehlen noch:</td>
|
||||
<td>0 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="border-top">Nächster Bonus {{\App\Services\HomepartyCart::getFormattedBonusCouponNextValue()}} € ab:</td>
|
||||
<td class="border-top">{{\App\Services\HomepartyCart::getFormattedBonusCouponNextStep()}} € </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="">fehlen noch:</td>
|
||||
<td class="">{{\App\Services\HomepartyCart::getFormattedBonusCouponFault()}} €</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td>Gutschein Bonus:</td>
|
||||
<td>{{\App\Services\HomepartyCart::getFormattedBonusCoupon()}} €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="border-top"><strong>Gutschein Gesamt</strong></td>
|
||||
<td class="border-top"><strong>{{\App\Services\HomepartyCart::getFormattedBonusTotal()}} €</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
|
||||
@php($user_cart = \App\Services\HomepartyCart::getUserCartHost())
|
||||
@if(\App\Services\HomepartyCart::$is_bonus)
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Gutschrift Homeparty Gutschein</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td class="text-right">- {{ \App\Services\HomepartyCart::getFormattedBonusValue() }} €</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if(\App\Services\HomepartyCart::$is_bonus_coupon)
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Gutschrift Bonus</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td class="text-right">- {{ \App\Services\HomepartyCart::getFormattedBonusCoupon() }} €</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if(\App\Services\HomepartyCart::$is_bonus)
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Abzug Points durch Gutschein</td>
|
||||
<td class="text-right">- {{ \App\Services\HomepartyCart::getFormattedBonusPointsDiff() }} </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr class="foot-small">
|
||||
<td colspan="5" class="text-left">Versandkosten:</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td class="text-right">0 €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" class="border-top"><strong>Gesamt:</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart->getFormattedEkPrice()}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart->getFormattedPoints()}}</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart->getFormattedIncomePrice()}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart->getFormattedPrice()}} €</strong></td>
|
||||
</tr>
|
||||
100
resources/views/user/homeparty/show_products_order.blade.php
Normal file
100
resources/views/user/homeparty/show_products_order.blade.php
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
@if($homeparty_guest && $homeparty_guest->homeparty_user_order_items->count())
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{__('Bild')}}</th>
|
||||
<th>{{__('Produkt')}}</th>
|
||||
<th>{{__('Anzahl')}}</th>
|
||||
<th>{{__('Marge')}}</th>
|
||||
<th class="text-right">{{__('EK-Preis')}}</th>
|
||||
<th class="text-right">{{__('Points')}}</th>
|
||||
<th class="text-right">{{__('Verdienst')}}</th>
|
||||
<th class="text-right">{{__('VK-Preis')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($homeparty_guest->homeparty_user_order_items as $value)
|
||||
<tr>
|
||||
<td>
|
||||
@if(count($value->product->images))
|
||||
<img class="img-fluid img-extra" alt="" src="{{ route('product_image', [$value->product->images->first()->slug]) }}">
|
||||
@endif
|
||||
</td>
|
||||
<td class="min-width-80">
|
||||
<strong>{{ $value->product->name }}</strong>
|
||||
<div class="text-body">
|
||||
<div>Inhalt: {{ $value->product->contents }}</div>
|
||||
<div>Art.-Nr.: {{ $value->product->number }}</div>
|
||||
</div>
|
||||
<div class="options">
|
||||
<a href="#" class="auto-delete-product remove_item_form_cart product-tooltip" data-order-item-id="{{$value->id}}" data-product-id="{{ $value->product->id }}"><i class="fa fa-times"></i> Artikel entfernen</a>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="no-line-break input-group-min-w">
|
||||
<div class="input-group d-inline-flex w-auto">
|
||||
<span class="input-group-prepend">
|
||||
<button type="button" class="btn btn-secondary icon-btn md-btn-extra remove-from-basket" data-order-item-id="{{$value->id}}" data-product-id="{{ $value->product->id }}">-</button>
|
||||
</span>
|
||||
<input type="text" class="form-control text-center input-extra table-input-event-onchange" name="product_qty_{{$value->id}}" data-order-item-id="{{$value->id}}" data-product-id="{{ $value->product->id }}" value="{{$value->qty}}">
|
||||
<span class="input-group-append">
|
||||
<button type="button" class="btn btn-secondary icon-btn md-btn-extra add-from-basket" data-order-item-id="{{$value->id}}" data-product-id="{{ $value->product->id }}">+</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ $value->margin }}%
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalEKPrice() }} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalPoints() }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalIncomePrice() }} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $value->getFormattedTotalPrice() }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
<tfoot id="insert_show_bonus_host">
|
||||
@php($user_cart = \App\Services\HomepartyCart::getUserCart($homeparty_guest->id))
|
||||
@if(!$homeparty_guest->is_host)
|
||||
<tr class="foot-small">
|
||||
<td colspan="3" class="border-top">
|
||||
<select class="custom-select" name="filter_member_id" id="filter_member_id">
|
||||
<option value="">Lieferung an Gastgeber</option>
|
||||
<option value="">Lieferung direkt an den Gast</option>
|
||||
</select>
|
||||
</td>
|
||||
<td colspan="5" class="border-top"> </td>
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td colspan="5" class="text-left">Versandkosten</td>
|
||||
<td>12</td>
|
||||
<td> </td>
|
||||
<td>25,00 €</td>
|
||||
</tr>
|
||||
--}}
|
||||
<tr>
|
||||
<td colspan="4" class="border-top"><strong>Gesamt:</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart->getFormattedEkPrice()}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart->getFormattedPoints()}}</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart->getFormattedIncomePrice()}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{$user_cart->getFormattedPrice()}} €</strong></td>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@include('user.homeparty.show_calc_bonus_host')
|
||||
|
||||
@endif
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
103
resources/views/user/homeparty/show_total_order.blade.php
Normal file
103
resources/views/user/homeparty/show_total_order.blade.php
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th class="text-right">{{__('EK-Preis')}}</th>
|
||||
<th class="text-right">{{__('Points')}}</th>
|
||||
<th class="text-right">{{__('Verdienst')}}</th>
|
||||
<th class="text-right">{{__('VK-Preis')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if($homeparty->homeparty_host)
|
||||
@php($user_cart = \App\Services\HomepartyCart::getUserCart($homeparty->homeparty_host->id))
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Gastgeber/in {{$homeparty->homeparty_host->billing_firstname}} {{$homeparty->homeparty_host->billing_lastname}}</strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$user_cart->getFormattedEkPrice()}} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$user_cart->getFormattedPoints()}}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$user_cart->getFormattedIncomePrice()}} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$user_cart->getFormattedPrice()}} €
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($homeparty->homeparty_guests)
|
||||
@php($g_count = 1)
|
||||
@foreach($homeparty->homeparty_guests as $homeparty_guest)
|
||||
@php($user_cart = \App\Services\HomepartyCart::getUserCart($homeparty_guest->id))
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong> {!! $g_count++ !!}. Gast {{$homeparty_guest->billing_firstname}} {{$homeparty_guest->billing_lastname}}</strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$user_cart->getFormattedEkPrice()}} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$user_cart->getFormattedPoints()}}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$user_cart->getFormattedIncomePrice()}} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{$user_cart->getFormattedPrice()}} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
@if(\App\Services\HomepartyCart::$is_bonus)
|
||||
<tr class="foot-small">
|
||||
<td colspan="4" class="border-top">
|
||||
zzgl. anteiliger Bonusgutschein:
|
||||
</td>
|
||||
<td class="border-top text-right">{{ App\Services\HomepartyCart::getFormattedBonusPrice() }}€</td>
|
||||
</tr>
|
||||
|
||||
@endif
|
||||
<tr class="foot-small">
|
||||
<td colspan="1" class="border-top">
|
||||
<strong>Gesamtsummen:</strong>
|
||||
</td>
|
||||
<td class="border-top text-right"><strong>{{\App\Services\HomepartyCart::getFormattedEkPrice()}}</strong></td>
|
||||
<td class="border-top text-right"><strong>{{\App\Services\HomepartyCart::getFormattedPoints()}}</strong></td>
|
||||
<td class="border-top text-right"><strong>{{\App\Services\HomepartyCart::getFormattedIncomePrice()}} €</strong></td>
|
||||
<td class="border-top text-right"><strong>{{\App\Services\HomepartyCart::getFormattedPrice()}} €</strong></td>
|
||||
</tr>
|
||||
<tr class="foot-small">
|
||||
<td colspan="1" class="text-muted">
|
||||
Summe ohne MwSt:
|
||||
</td>
|
||||
<td class=""> </td>
|
||||
|
||||
<td class=""> </td>
|
||||
<td class=""> </td>
|
||||
<td class="text-muted text-right">{{\App\Services\HomepartyCart::getFormattedPriceNet()}} €</td>
|
||||
</tr>
|
||||
<tr class="foot-small">
|
||||
<td colspan="1" class="text-muted">
|
||||
Enthaltene MwSt:
|
||||
</td>
|
||||
<td class=""> </td>
|
||||
|
||||
<td class=""> </td>
|
||||
<td class=""> </td>
|
||||
<td class="text-muted text-right">{{\App\Services\HomepartyCart::getFormattedPriceTax()}} €</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
|
@ -187,3 +187,7 @@
|
|||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
<script src="{{ asset('/js/iq-shopping-cart.js') }}?v=1{{ get_file_last_time('/js/iq-shopping-cart.js') }}"></script>
|
||||
@endsection
|
||||
|
|
|
|||
|
|
@ -82,8 +82,6 @@
|
|||
min-width: 4em;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<div id="cartContent">
|
||||
|
||||
|
|
|
|||
|
|
@ -66,15 +66,23 @@
|
|||
<!-- -->
|
||||
<section>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<p class="">MIVITA ist ein Unternehmen mit Standort in Deutschland, das innovative und umweltfreundliche
|
||||
sowie hochwertige Produkte vertreibt. Seit seinem Markteintritt bekennt sich das MIVITA Unternehmen zu einem
|
||||
Werteverständnis, bei dem die Zufriedenheit der Kunden, wie auch die Verantwortung für die Umwelt im Fokus
|
||||
stehen.</p>
|
||||
<div class="col-md-12">
|
||||
@if($site->hasImage())
|
||||
<img class="img-responsive margin-bottom-20" src="{{ route('iq_image', [$site->iq_image->slug]) }}" alt="">
|
||||
@endif
|
||||
|
||||
<p class="">MIVITA ist ein Unternehmen mit Standort in Deutschland, das innovative und umweltfreundliche
|
||||
sowie hochwertige Produkte vertreibt. Seit seinem Markteintritt bekennt sich das MIVITA Unternehmen zu einem
|
||||
Werteverständnis, bei dem die Zufriedenheit der Kunden, wie auch die Verantwortung für die Umwelt im Fokus
|
||||
stehen.</p>
|
||||
|
||||
<div class="divider divider-center divider-color"><!-- divider -->
|
||||
<i class="fa fa-chevron-down"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- BORN TO BE A WINNER -->
|
||||
<article class="row">
|
||||
|
|
|
|||
|
|
@ -174,9 +174,9 @@
|
|||
</div>
|
||||
<div class="col-md-12" id="show_sales_partnership_message" @if(old('sales_partnership') !== 'JA') style="display: none;" @endif>
|
||||
<hr class="my-3">
|
||||
<p class="mb-3">Wahrscheinlich bist Du durch einen unserer bestehenden Vertriebspartner auf uns aufmerksam geworden. Bitte verrate uns daher, wie Du auf MIVITA gekommen bist. Es genügt ein Name oder ein Hinweis auf einen bestehenden Vertriebspartner (z. B. eine Website, ein Facebook-, Instagram-, Youtubeprofil oder ähnliches):*</p>
|
||||
<p class="mb-3">Durch wen bist Du auf uns aufmerksam geworden (Vertriebspartner, Kunde, Social Media etc.)? Bitte unbedingt einen Namen angeben - das ist wichtig für unsere interne Zuordnung:*</p>
|
||||
<div class="form-group">
|
||||
{!! Form::textarea('sales_partnership_message', null, ['class' => 'form-control '.($errors->has('sales_partnership_message') ? 'error is-invalid' : ''), 'placeholder'=>__('Wie bist du auf uns aufmerksam geworden?'), 'rows'=>4]) !!}
|
||||
{!! Form::textarea('sales_partnership_message', null, ['class' => 'form-control '.($errors->has('sales_partnership_message') ? 'error is-invalid' : ''), 'placeholder'=>__('Vor- und Name, Website, Facebook-, Instagram-, Youtubeprofil oder ähnliches'), 'rows'=>4]) !!}
|
||||
@if ($errors->has('sales_partnership_message'))
|
||||
<div class="alert alert-danger error"><!-- DANGER -->
|
||||
{{ $errors->first('sales_partnership_message') }}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-md-9 col-sm-9">
|
||||
<h1>{{$headline}} @if($headline_image) <img src="{{ route('iq_image', [$headline_image->slug]) }}" height="60" alt=""/> @endif</h1>
|
||||
<h1>{{$headline}} @if($headline_image) <img src="{{ route('iq_image', [$headline_image->slug]) }}" class="img-responsive" alt=""/> @endif</h1>
|
||||
<ul class="shop-item-list row list-inline nomargin">
|
||||
@foreach($products as $product)
|
||||
<!-- ITEM -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue