23.11 Upload to live
This commit is contained in:
parent
8cae2f92a4
commit
8ebdacec98
80 changed files with 7320 additions and 3937 deletions
45
resources/views/admin/category/edit.blade.php
Executable file
45
resources/views/admin/category/edit.blade.php
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
@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 Kategorien') }}
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('admin_product_category_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
|
||||
|
||||
<input type="hidden" name="id" id="id" value="@if($category->id>0){{$category->id}}@else new @endif">
|
||||
|
||||
<div class="text-left mt-0 mb-2">
|
||||
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
||||
<a href="{{ route('admin_product_categories') }}" class="btn btn-default">{{ __('back') }}</a>
|
||||
</div>
|
||||
|
||||
@include('admin.category.form')
|
||||
|
||||
<div class="text-left mt-0 mb-2">
|
||||
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
||||
<a href="{{ route('admin_product_categories') }}" class="btn btn-default">{{ __('back') }}</a>
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
@include('admin.category.images')
|
||||
|
||||
|
||||
@endsection
|
||||
67
resources/views/admin/category/form.blade.php
Executable file
67
resources/views/admin/category/form.blade.php
Executable file
|
|
@ -0,0 +1,67 @@
|
|||
|
||||
<div class="card mb-2">
|
||||
|
||||
<h5 class="card-header">
|
||||
{{ __('Kategorie') }}
|
||||
|
||||
</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, $category->active, ['class'=>'custom-control-input']) !!}
|
||||
<span class="custom-control-label">{{__('aktiv')}}</span>
|
||||
</label>
|
||||
<label class="form-label" for="name">{{ __('Name') }}*</label>
|
||||
{{ Form::text('name', $category->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">{{ __('Headline') }}*</label>
|
||||
{{ Form::text('headline', $category->headline, array('placeholder'=>__('Produktwelt'), 'class'=>'form-control', 'id'=>'name', 'required')) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-8">
|
||||
<label for="parent_id" class="form-label">{{__('Hauptkategorie')}}</label>
|
||||
<select class="selectpicker" data-style="btn-default" name="">
|
||||
{!! HTMLHelper::getCategoriesWithoutParents($category->parent_id) !!}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="pos">{{ __('pos') }}</label>
|
||||
{{ Form::text('pos', $category->pos, array('placeholder'=>__('pos'), 'class'=>'form-control', 'id'=>'pos')) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card mb-2">
|
||||
<h5 class="card-header">
|
||||
{{ __('Übersetzungen') }}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
@foreach($trans as $lang)
|
||||
@if($lang != 'de')
|
||||
<div class="form-row">
|
||||
<div class="form-group col-6">
|
||||
<label for="trans_name_{{$lang}}" class="form-label">{{__('Name')}} <strong style="text-transform: uppercase">{{$lang}}</strong></label>
|
||||
{{ Form::text('trans_name['.$lang.']', $category->getTrans('name', $lang), array('class'=>'form-control', 'id'=>'trans_name_'.$lang)) }}
|
||||
</div>
|
||||
<div class="form-group col-6">
|
||||
<label for="trans_headline_{{$lang}}" class="form-label">{{__('Headline')}} <strong style="text-transform: uppercase">{{$lang}}</strong></label>
|
||||
{{ Form::text('trans_headline['.$lang.']', $category->getTrans('headline', $lang), array('class'=>'form-control', 'id'=>'trans_headline_'.$lang)) }}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
93
resources/views/admin/category/images.blade.php
Executable file
93
resources/views/admin/category/images.blade.php
Executable file
|
|
@ -0,0 +1,93 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<div class="card mb-2">
|
||||
|
||||
<h5 class="card-header">
|
||||
{{ __('Headline Bild') }}
|
||||
|
||||
</h5>
|
||||
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
@if($category->id>0)
|
||||
<style>
|
||||
.dz-message {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
.default-style .dz-message {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
<div class="col-md-8 col-sm-6">
|
||||
|
||||
<div class="row">
|
||||
@if($category->headline_image_id)
|
||||
<div class="col-6 col-md-4 text-center" style="border: 1px solid #eee;">
|
||||
<img class="" height="60" alt="" src="{{ route('iq_image', [$category->iq_image->slug]) }}">
|
||||
<br>
|
||||
<a href="{{ route('admin_product_category_image_delete', [$category->iq_image->id, $category->id]) }}" class="btn btn-sm btn-primary mt-2 mb-2" onclick="return confirm('Bild wirklich löschen?');">Bild löschen</a>
|
||||
@if($category->iq_image->active)
|
||||
<a href="{{ route('admin_product_category_image_attribute', [$category->iq_image->id, 'active', 0]) }}" class="btn btn-sm btn-default mt-2 mb-2"><span class="badge badge-pill badge-success"><i class="far fa-check"></i></span> <i class="far fa-sync"></i></a>
|
||||
@else
|
||||
<a href="{{ route('admin_product_category_image_attribute', [$category->iq_image->id, 'active', 1]) }}" class="btn btn-sm btn-default mt-2 mb-2"><span class="badge badge-pill badge-danger"><i class="far fa-times"></i></span> <i class="far fa-sync"></i></a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-sm-6">
|
||||
|
||||
@if(!$category->headline_image_id)
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('admin_product_category_image_upload') }}" accept-charset="UTF-8" class="avatar" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<input type="hidden" name="category_id" value="{{$category->id}}">
|
||||
<div class="slim_holder text-center">
|
||||
<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-min-size="100,100"
|
||||
data-max-file-size="10"
|
||||
data-status-image-too-small="Bild zu klein<br>min. $0 Pixel"
|
||||
data-status-file-type="Ungültige Datei<br>bitte nur: $0"
|
||||
data-status-file-size="Die Datei ist zu groß<br>max. $0 MB"
|
||||
data-button-confirm-label="bestätigen"
|
||||
data-button-cancel-label="abbrechen"
|
||||
data-button-confirm-title="bestätigen"
|
||||
data-button-cancel-title="abbrechen"
|
||||
data-button-rotate-title="drehen"
|
||||
data-ratio="">
|
||||
<input type="file" name="images[]" required />
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<button class="btn btn-primary" type="submit">Bild speichern</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<p> Nur ein Bild möglich, vor neuem Upload Bild löschen </p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<p>Kategorie erst anlegen</p>
|
||||
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
<th style="max-width: 60px;"> </th>
|
||||
<th>{{__('Pos')}}</th>
|
||||
<th>{{__('Hauptkategorie')}}</th>
|
||||
<th>{{__('Unterkategorie')}}</th>
|
||||
<th>{{__('Headline')}}</th>
|
||||
<th>{{__('Translate') }}</th>
|
||||
<th>{{__('Status')}}</th>
|
||||
<th></th>
|
||||
|
|
@ -22,20 +22,15 @@
|
|||
@foreach($values as $value)
|
||||
<tr>
|
||||
<td>
|
||||
<button type="button" class="btn icon-btn btn-sm btn-primary" data-toggle="modal" data-target="#modals-default"
|
||||
data-id="{{ $value->id }}"
|
||||
data-pos="{{ $value->pos }}"
|
||||
data-parent_id="{{ $value->parent_id }}"
|
||||
data-name="{{ $value->name }}"
|
||||
data-trans_name="{{ json_encode($value->trans_name) }}"
|
||||
data-active="{{ $value->active }}">
|
||||
<a href="{{route('admin_product_category_edit', [$value->id])}}" class="btn icon-btn btn-sm btn-primary">
|
||||
<span class="far fa-edit"></span>
|
||||
</button>
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ $value->pos }}</td>
|
||||
<td>@if($value->parent) {{ $value->parent->name }} @else {{ $value->name }} @endif</td>
|
||||
<td>@if($value->parent) {{ $value->name }} @else - @endif</td>
|
||||
<td>{{ $value->getTranNames() }}</td>
|
||||
<td>{{ $value->headline }}</td>
|
||||
<!-- <td>{{ $value->getTranNames() }}</td> -->
|
||||
<td data-sort="{{ $value->active }}">@if($value->active) <span class="badge badge-pill badge-success"><i class="far fa-check"></i></span>@else<span class="badge badge-pill badge-danger"><i class="far fa-times"></i></span>@endif</td>
|
||||
<td><a class="text-danger" href="{{ route('admin_product_category_delete', [$value->id]) }}" onclick="return confirm('{{__('Really delete entry?')}}');"><i class="far fa-trash-alt"></i></a></td>
|
||||
|
||||
|
|
@ -44,102 +39,22 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<div class="mt-4 ml-4">
|
||||
<button type="button" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#modals-default"
|
||||
data-id="new"
|
||||
data-pos=""
|
||||
data-name=""
|
||||
data-parent_id=""
|
||||
data-active="1"
|
||||
|
||||
>{{__('Neue Kategorie erstellen')}}</button>
|
||||
<a href="{{route('admin_product_category_edit', ['new'])}}" class="btn btn-sm btn-primary">
|
||||
{{__('Neue Kategorie erstellen')}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Modal template -->
|
||||
<div class="modal fade" id="modals-default">
|
||||
<div class="modal-dialog">
|
||||
<form class="modal-content" action="{{ route('admin_product_category_store') }}" method="post">
|
||||
@csrf
|
||||
<input type="hidden" class="form-control" name="id">
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"> {{__('Kategorie')}} <span class="font-weight-light">{{__('create/edit')}}</span></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-row">
|
||||
<div class="form-group col">
|
||||
<label for="parent_id" class="form-label">{{__('Main Attribute')}}</label>
|
||||
<select class="selectpicker" data-style="btn-default" name="parent_id">
|
||||
{!! HTMLHelper::getCategoriesWithoutParents() !!}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col">
|
||||
<label for="name" class="form-label">{{__('Name')}}</label>
|
||||
<input type="text" class="form-control" name="name" placeholder="{{__('Bezeichnung')}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-6">
|
||||
<label class="custom-control custom-checkbox m-2">
|
||||
<input type="checkbox" class="custom-control-input" name="active" checked>
|
||||
<span class="custom-control-label">{{__('active')}}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group col-6">
|
||||
<input type="text" class="form-control" name="pos" placeholder="{{__('Number to move the position if necessary')}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
@foreach($trans as $tran)
|
||||
@if($tran != 'de')
|
||||
<div class="form-row">
|
||||
<div class="form-group col">
|
||||
<label for="name" class="form-label">{{__('Translate')}} <strong style="text-transform: uppercase">{{$tran}}</strong></label>
|
||||
<input type="text" class="form-control" name="trans[{{$tran}}]" id="trans_{{$tran}}" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{__('close')}}</button>
|
||||
<button type="submit" class="btn btn-primary">{{__('save')}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
$('#modals-default').on('show.bs.modal', function (event) {
|
||||
var button = $(event.relatedTarget);
|
||||
$(this).find(".modal-content input[name='id']").val(button.data('id'));
|
||||
$(this).find(".modal-body input[name='name']").val(button.data('name'));
|
||||
$(this).find(".modal-body input[name='pos']").val(button.data('pos'));
|
||||
$(this).find(".modal-body select[name='parent_id']").val(button.data('parent_id'));
|
||||
$('.selectpicker').selectpicker('refresh');
|
||||
$(this).find(".modal-body input[name='active']").prop( "checked", button.data('active'));
|
||||
|
||||
$.each(button.data('trans_name'), function (i, item) {
|
||||
var name = '#trans_'+i;
|
||||
$(name).val(item);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
$('.datatables-style').dataTable({
|
||||
"bLengthChange": false,
|
||||
"iDisplayLength": 50,
|
||||
"order": [[ 1, "asc" ]],
|
||||
"aoColumns": [
|
||||
{ "sWidth": "8%" },
|
||||
{ "sWidth": "8%" },
|
||||
|
|
|
|||
|
|
@ -64,29 +64,29 @@
|
|||
<div class="card-body">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="price">{{ __('price') }}</label>
|
||||
<label class="form-label" for="price">{{ __('Preis VK') }}</label>
|
||||
{{ Form::text('price', $product->getFormattedPrice(), array('placeholder'=>__('price'), 'class'=>'form-control', 'id'=>'price')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="price_ek">{{ __('price_ek') }}</label>
|
||||
<label class="form-label" for="price_ek">{{ __('Preis EK') }}</label>
|
||||
{{ Form::text('price_ek', $product->getFormattedPriceEk(), array('placeholder'=>__('price_ek'), 'class'=>'form-control', 'id'=>'price_ek')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="tax">{{ __('tax') }}</label>
|
||||
<label class="form-label" for="tax">{{ __('MwSt') }}</label>
|
||||
{{ Form::text('tax', $product->getFormattedTax(), array('placeholder'=>__('tax'), 'class'=>'form-control', 'id'=>'tax')) }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="price_old">{{ __('price_old') }}</label>
|
||||
<label class="form-label" for="price_old">{{ __('Streichpreis (wenn > 0)') }}</label>
|
||||
{{ Form::text('price_old', $product->getFormattedPriceOld(), array('placeholder'=>__('price_old'), 'class'=>'form-control', 'id'=>'price_old')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="amount">{{ __('amount') }}</label>
|
||||
<label class="form-label" for="amount">{{ __('Anzahl') }}</label>
|
||||
{{ Form::text('amount', $product->amount, array('placeholder'=>__('amount'), 'class'=>'form-control', 'id'=>'amount')) }}
|
||||
|
||||
</div>
|
||||
|
|
@ -106,17 +106,17 @@
|
|||
</h5>
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="contents">{{ __('contents') }}</label>
|
||||
<label class="form-label" for="contents">{{ __('Menge Inhalt (ml / g)') }}</label>
|
||||
{{ Form::text('contents', $product->contents, array('placeholder'=>__('contents'), 'class'=>'form-control', 'id'=>'contents')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="number">{{ __('number') }}</label>
|
||||
<label class="form-label" for="number">{{ __('Artikelnummer') }}</label>
|
||||
{{ Form::text('number', $product->number, array('placeholder'=>__('number'), 'class'=>'form-control', 'id'=>'number')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="icons">{{ __('icons') }}</label>
|
||||
<label class="form-label" for="icons">{{ __('Icons') }}</label>
|
||||
{{ Form::text('icons', $product->icons, array('placeholder'=>__('icons'), 'class'=>'form-control', 'id'=>'icons')) }}
|
||||
|
||||
</div>
|
||||
|
|
@ -129,15 +129,15 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="description">{{ __('description') }}</label>
|
||||
<label class="form-label" for="description">{{ __('Beschreibung') }}</label>
|
||||
{{ Form::textarea('description', $product->description , array('placeholder'=>__('description'), 'class'=>'form-control summernote', 'id'=>'description')) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="usage">{{ __('usage') }}</label>
|
||||
<label class="form-label" for="usage">{{ __('Anwendung') }}</label>
|
||||
{{ 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">{{ __('ingredients') }}</label>
|
||||
<label class="form-label" for="ingredients">{{ __('Inhaltsstoffe') }}</label>
|
||||
{{ Form::textarea('ingredients', $product->ingredients , array('placeholder'=>__('ingredients'), 'class'=>'form-control summernote', 'id'=>'ingredients')) }}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,23 @@
|
|||
<div class="col-6 col-md-4 text-center" style="border: 1px solid #eee;">
|
||||
<img class="img-fluid" alt="" src="{{ route('product_image', [$image->slug]) }}">
|
||||
<br>
|
||||
<a href="{{ route('admin_product_delete_image', [$image->id, $product->id]) }}" class="btn btn-sm btn-primary mt-2 mb-2" onclick="return confirm('Bild wirklich löschen?');">Bild löschen</a>
|
||||
<a href="{{ route('admin_product_image_delete', [$image->id, $product->id]) }}" class="btn btn-sm btn-primary mt-2 mb-2" onclick="return confirm('Bild wirklich löschen?');">Bild löschen</a>
|
||||
@if($image->active)
|
||||
<a href="{{ route('admin_product_image_attribute', [$image->id, 'active', 0]) }}" class="btn btn-sm btn-default mt-2 mb-2"><span class="badge badge-pill badge-success"><i class="far fa-check"></i></span> <i class="far fa-sync"></i></a>
|
||||
@else
|
||||
<a href="{{ route('admin_product_image_attribute', [$image->id, 'active', 1]) }}" class="btn btn-sm btn-default mt-2 mb-2"><span class="badge badge-pill badge-danger"><i class="far fa-times"></i></span> <i class="far fa-sync"></i></a>
|
||||
@endif
|
||||
<br>
|
||||
<div class="input-group input-group-sm">
|
||||
<div class="input-group-prepend">
|
||||
<a href="{{ route('admin_product_image_attribute', [$image->id, 'pos', $image->pos - 1]) }}" class="btn btn-default"><i class="fas fa-chevron-left"></i></a>
|
||||
</div>
|
||||
<input type="text" class="form-control text-center" value="{{$image->pos}}">
|
||||
<div class="input-group-append">
|
||||
<a href="{{ route('admin_product_image_attribute', [$image->id, 'pos', $image->pos + 1]) }}" class="btn btn-default"><i class="fas fa-chevron-right"></i></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
|
@ -39,7 +55,7 @@
|
|||
<div class="col-md-4 col-sm-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('admin_product_upload_image') }}" accept-charset="UTF-8" class="avatar" enctype="multipart/form-data">
|
||||
<form method="POST" action="{{ route('admin_product_image_upload') }}" accept-charset="UTF-8" class="avatar" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<input type="hidden" name="product_id" value="{{$product->id}}">
|
||||
<div class="slim_holder text-center">
|
||||
|
|
|
|||
41
resources/views/admin/site/edit.blade.php
Executable file
41
resources/views/admin/site/edit.blade.php
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
@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">
|
||||
{{ __('Edit Startseite') }}
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('admin_sites_store', [$site]), 'class' => 'form-horizontal', 'id'=>'']) !!}
|
||||
|
||||
<div class="text-left mt-0 mb-2">
|
||||
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
||||
</div>
|
||||
|
||||
@include('admin.site.form')
|
||||
|
||||
<div class="text-left mt-0 mb-2">
|
||||
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
@include('admin.site.images')
|
||||
|
||||
|
||||
@endsection
|
||||
46
resources/views/admin/site/form.blade.php
Executable file
46
resources/views/admin/site/form.blade.php
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
|
||||
<div class="card mb-2">
|
||||
|
||||
<h5 class="card-header">
|
||||
{{ __('Inhalte') }}
|
||||
|
||||
</h5>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col">
|
||||
<label class="form-label" for="headline">{{ __('Headline') }}*</label>
|
||||
{{ Form::text('headline', $value->headline, array('placeholder'=>__('Headline'), 'class'=>'form-control', 'id'=>'headline', 'required')) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col">
|
||||
<label class="form-label" for="copy">{{ __('Copy') }}*</label>
|
||||
{{ Form::textarea('copy', $value->copy , array('placeholder'=>__('Copy'), 'class'=>'form-control', 'id'=>'copy', 'rows'=>6)) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Anzeige Produkte auf der Startseite</h3>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-6">
|
||||
<label for="products" class="form-label">{{__('Produkte')}}</label>
|
||||
<select class="selectpicker" name="products[]" id="products" data-style="btn-light" data-live-search="true" multiple>
|
||||
{!! HTMLHelper::getProductsOptions($value->products) !!}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-6">
|
||||
<label for="set_products" class="form-label">{{__('Produktsets')}}</label>
|
||||
<select class="selectpicker" name="set_products[]" id="set_products" data-style="btn-light" data-live-search="true" multiple>
|
||||
{!! HTMLHelper::getProductsOptions($value->set_products) !!}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
93
resources/views/admin/site/images.blade.php
Executable file
93
resources/views/admin/site/images.blade.php
Executable file
|
|
@ -0,0 +1,93 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<div class="card mb-2">
|
||||
|
||||
<h5 class="card-header">
|
||||
{{ __('Headline Bild') }}
|
||||
|
||||
</h5>
|
||||
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
@if($value->id>0)
|
||||
<style>
|
||||
.dz-message {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
.default-style .dz-message {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
|
||||
<div class="row">
|
||||
@if($value->iq_image_id)
|
||||
<div class="col-12 text-center" style="border: 1px solid #eee;">
|
||||
<img class="" alt="" src="{{ route('iq_image', [$value->iq_image->slug]) }}">
|
||||
<br>
|
||||
<a href="{{ route('admin_sites_image_delete', [$value->slug, $value->iq_image->id]) }}" class="btn btn-sm btn-primary mt-2 mb-2" onclick="return confirm('Bild wirklich löschen?');">Bild löschen</a>
|
||||
@if($value->iq_image->active)
|
||||
<a href="{{ route('admin_sites_image_attribute', [$value->slug, $value->iq_image->id, 'active', 0]) }}" class="btn btn-sm btn-default mt-2 mb-2"><span class="badge badge-pill badge-success"><i class="far fa-check"></i></span> <i class="far fa-sync"></i></a>
|
||||
@else
|
||||
<a href="{{ route('admin_sites_image_attribute', [$value->slug, $value->iq_image->id, 'active', 1]) }}" class="btn btn-sm btn-default mt-2 mb-2"><span class="badge badge-pill badge-danger"><i class="far fa-times"></i></span> <i class="far fa-sync"></i></a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<hr>
|
||||
|
||||
@if(!$value->iq_image_id)
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('admin_sites_image_upload', [$value->slug]) }}" accept-charset="UTF-8" class="avatar" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<input type="hidden" name="value_id" value="{{$value->id}}">
|
||||
<div class="slim_holder text-center">
|
||||
<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-min-size="100,100"
|
||||
data-max-file-size="10"
|
||||
data-status-image-too-small="Bild zu klein<br>min. $0 Pixel"
|
||||
data-status-file-type="Ungültige Datei<br>bitte nur: $0"
|
||||
data-status-file-size="Die Datei ist zu groß<br>max. $0 MB"
|
||||
data-button-confirm-label="bestätigen"
|
||||
data-button-cancel-label="abbrechen"
|
||||
data-button-confirm-title="bestätigen"
|
||||
data-button-cancel-title="abbrechen"
|
||||
data-button-rotate-title="drehen"
|
||||
data-ratio="">
|
||||
<input type="file" name="images[]" required />
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<button class="btn btn-primary" type="submit">Bild speichern</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<p> Nur ein Bild möglich, vor neuem Upload Bild löschen </p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<p>Kategorie erst anlegen</p>
|
||||
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -7,7 +7,6 @@
|
|||
<title>mivita.care</title>
|
||||
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Roboto);
|
||||
img {
|
||||
max-width: 600px;
|
||||
outline: none;
|
||||
|
|
@ -29,7 +28,7 @@
|
|||
}
|
||||
|
||||
td, h1, h2, h3 {
|
||||
font-family: "Roboto", Helvetica, Arial, sans-serif;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
|
@ -68,7 +67,7 @@
|
|||
@media screen {
|
||||
/*Thanks Outlook 2013! http://goo.gl/XLxpyl*/
|
||||
td, h1, h2, h3 {
|
||||
font-family: 'Roboto', 'Helvetica Neue', 'Arial', 'sans-serif' !important;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
<title>mivita.care</title>
|
||||
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Roboto);
|
||||
img {
|
||||
max-width: 600px;
|
||||
outline: none;
|
||||
|
|
@ -29,7 +28,7 @@
|
|||
}
|
||||
|
||||
td, h1, h2, h3 {
|
||||
font-family: "Roboto", Helvetica, Arial, sans-serif;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
|
@ -77,7 +76,7 @@
|
|||
@media screen {
|
||||
/*Thanks Outlook 2013! http://goo.gl/XLxpyl*/
|
||||
td, h1, h2, h3 {
|
||||
font-family: 'Roboto', 'Helvetica Neue', 'Arial', 'sans-serif' !important;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
<title>mivita.care</title>
|
||||
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Roboto);
|
||||
img {
|
||||
max-width: 600px;
|
||||
outline: none;
|
||||
|
|
@ -29,7 +28,7 @@
|
|||
}
|
||||
|
||||
td, h1, h2, h3 {
|
||||
font-family: "Roboto", Helvetica, Arial, sans-serif;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
|
@ -77,7 +76,7 @@
|
|||
@media screen {
|
||||
/*Thanks Outlook 2013! http://goo.gl/XLxpyl*/
|
||||
td, h1, h2, h3 {
|
||||
font-family: 'Roboto', 'Helvetica Neue', 'Arial', 'sans-serif' !important;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
<title>mivita.care</title>
|
||||
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Roboto);
|
||||
img {
|
||||
max-width: 600px;
|
||||
outline: none;
|
||||
|
|
@ -29,7 +28,7 @@
|
|||
}
|
||||
|
||||
td, h1, h2, h3 {
|
||||
font-family: "Roboto", Helvetica, Arial, sans-serif;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
|
@ -68,7 +67,7 @@
|
|||
@media screen {
|
||||
/*Thanks Outlook 2013! http://goo.gl/XLxpyl*/
|
||||
td, h1, h2, h3 {
|
||||
font-family: 'Roboto', 'Helvetica Neue', 'Arial', 'sans-serif' !important;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -22,11 +22,23 @@
|
|||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->isAdmin())
|
||||
@if(Auth::user()->isAdmin())
|
||||
<li class="sidenav-divider mb-1"></li>
|
||||
<li class="sidenav-header small font-weight-semibold">ADMIN</li>
|
||||
|
||||
|
||||
<li class="sidenav-item @if(Request::is('admin/sites/*')) open @endif">
|
||||
<a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
|
||||
<i class="sidenav-icon ion ion-md-albums"></i>
|
||||
<div>{{ __('Seiten') }}</div>
|
||||
</a>
|
||||
<ul class="sidenav-menu">
|
||||
<li class="sidenav-item{{ Request::is('admin/sites/start') ? ' active' : '' }}">
|
||||
<a href="{{route('admin_sites', ['start'])}}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-document"></i><div>{{ __('Startseite') }}</div></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="sidenav-item @if(Request::is('admin/product/*')) open @endif">
|
||||
<a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
|
||||
<i class="sidenav-icon ion ion-md-cube"></i>
|
||||
|
|
@ -68,24 +80,36 @@
|
|||
</li>
|
||||
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
@endif
|
||||
@if(Auth::user()->isSuperAdmin())
|
||||
<li class="sidenav-divider mb-1"></li>
|
||||
<li class="sidenav-header small font-weight-semibold">SUPERADMIN</li>
|
||||
|
||||
<li class="sidenav-divider mb-1"></li>
|
||||
<li class="sidenav-header small font-weight-semibold">SUPERADMIN</li>
|
||||
|
||||
<li class="sidenav-item{{ Request::is('admin/users') ? ' active' : '' }} {{ Request::is('admin/user/edit/*') ? ' active' : '' }}">
|
||||
<a href="{{ route('admin_users') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-ribbon"></i><div>{{ __('User Rechte') }}</div></a>
|
||||
</li>
|
||||
<li class="sidenav-item{{ Request::is('admin/users') ? ' active' : '' }} {{ Request::is('admin/user/edit/*') ? ' active' : '' }}">
|
||||
<a href="{{ route('admin_users') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-ribbon"></i><div>{{ __('User Rechte') }}</div></a>
|
||||
</li>
|
||||
|
||||
<li class="sidenav-item{{ Request::is('admin/shippings') ? ' active' : '' }} {{ Request::is('admin/shipping/edit/*') ? ' active' : '' }}">
|
||||
<a href="{{ route('admin_shippings') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-gift"></i><div>{{ __('Versandkosten') }}</div></a>
|
||||
</li>
|
||||
|
||||
@endif
|
||||
@if(Auth::user()->isSySAdmin())
|
||||
<li class="sidenav-divider mb-1"></li>
|
||||
<li class="sidenav-header small font-weight-semibold">SYSADMIN</li>
|
||||
|
||||
<li class="sidenav-item{{ Request::is('sysadmin/tools/*') ? ' open' : '' }}">
|
||||
<a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
|
||||
<i class="sidenav-icon ion ion-ios-settings"></i>
|
||||
<div>{{ __('Tools') }}</div>
|
||||
</a>
|
||||
<ul class="sidenav-menu">
|
||||
<li class="sidenav-item{{ Request::is('sysadmin/tools/domainssl/*') ? ' active' : '' }}">
|
||||
<a href="{{ route('sysadmin_tools_domainssl') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-browsers"></i><div>{{ __('Domain SSL') }}</div></a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
<li class="sidenav-divider mb-1"></li>
|
||||
|
||||
|
|
|
|||
50
resources/views/sys/admin/index.blade.php
Normal file
50
resources/views/sys/admin/index.blade.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
@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 mb-4">
|
||||
Content Tools: Links
|
||||
</h4>
|
||||
|
||||
|
||||
<div class="card mb-4">
|
||||
|
||||
<div class="card-body">
|
||||
<!-- Controls -->
|
||||
{!! Form::open(['url' => url()->current(), 'class' => '']) !!}
|
||||
<div class="form-group mb-1">
|
||||
<label class="form-label" for="description">Description</label>
|
||||
{{ Form::textarea('text', $text, array('class'=>'form-control', 'rows'=>20)) }}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary"><i class="ion"></i> action</button>
|
||||
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
@if(count($values)>0)
|
||||
<div class="card-body">
|
||||
<!-- Controls -->
|
||||
@foreach($values as $value)
|
||||
<pre>{{$value}}</pre>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
|
|
@ -72,16 +72,23 @@
|
|||
@endif
|
||||
|
||||
@if($user->shop->getSubdomainAvailable())
|
||||
<span class="badge badge-pill badge-success"><i class="far fa-check"> {{ __('available') }} </i> HTTP</span>
|
||||
<span class="badge badge-pill badge-success"><i class="far fa-check"> {{ __('available') }} </i>
|
||||
@if($user->shop->getSubdomainSslSin()) HTTPS @else HTTP @endif
|
||||
</span>
|
||||
@else
|
||||
<span class="badge badge-pill badge-danger"><i class="far fa-times"> {{ __('not available') }} </i> HTTP</span>
|
||||
<span class="badge badge-pill badge-danger"><i class="far fa-times"> {{ __('not available') }} </i> HTTP </span>
|
||||
@endif
|
||||
|
||||
|
||||
@if($user->shop->getSubdomainSslSinActive())
|
||||
<span class="badge badge-pill badge-success"><i class="far fa-check"> {{ __('available') }} </i> SSL
|
||||
</span>
|
||||
@else
|
||||
<span class="badge badge-pill badge-danger"><i class="far fa-times"> {{ __('not available') }} </i> SSL </span>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
</li>
|
||||
@if(!$user->shop->getSubdomainStatus() || !$user->shop->getSubdomainAvailable())
|
||||
@if(!$user->shop->getSubdomainStatus() || !$user->shop->getSubdomainAvailable() || !$user->shop->getSubdomainSslSinActive())
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<p class="text-danger">{{ __('not available copy') }}
|
||||
<a href="" class="btn icon-btn btn-xs btn-outline-primary">
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<link href="{{ asset('/assets/plugins/slider.revolution/css/extralayers.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/assets/plugins/slider.revolution/css/settings.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/assets/css/mystyle.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/assets/css/custom-style.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/assets/css/custom-style.css?v1') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('assets/css/custom-forms-v2.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('/css/cookieconsent.min.css') }}" />
|
||||
<script src="{{ asset('/js/cookieconsent.min.js') }}"></script>
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
|
||||
<div class="side-nav margin-bottom-60">
|
||||
|
||||
<div class="side-nav margin-bottom-20">
|
||||
<div class="side-nav-head">
|
||||
<button class="fa fa-bars"></button>
|
||||
<h4>Kategorien</h4>
|
||||
</div>
|
||||
|
||||
|
||||
<ul class="list-group list-group-bordered list-group-noicon">
|
||||
|
||||
@foreach($categories as $category)
|
||||
<li class="list-group-item {{ Request::is('produkte/'.$category->slug.'*') ? ' active' : '' }}">
|
||||
<a href="{{ url('/produkte/'.$category->slug) }}">
|
||||
|
|
@ -17,9 +13,6 @@
|
|||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@
|
|||
.cartContent .yard .total_price {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
}
|
||||
@media only screen and (min-width: 992px) {
|
||||
.cartContent .yard .total_price {
|
||||
|
|
@ -119,7 +120,7 @@
|
|||
|
||||
@if(Yard::instance('shopping')->content()->count())
|
||||
<!-- CART -->
|
||||
{!! Form::open(['url' => route(Util::getPostRoute().'card_update', Util::addRoute()), 'class' => 'cartContent clearfix', 'id'=>'']) !!}
|
||||
{!! Form::open(['url' => url(Util::getPostRoute().'card/update'), 'class' => 'cartContent clearfix', 'id'=>'']) !!}
|
||||
|
||||
<!-- cart content -->
|
||||
<div id="cartContent">
|
||||
|
|
@ -148,7 +149,7 @@
|
|||
<span>{{ $row->name }}</span>
|
||||
<small>Lieferzeit: 1-3 Werktage</small>
|
||||
</a>
|
||||
<a href="{{ route(Util::getPostRoute().'card_remove', Util::addRoute([$row->rowId])) }}" class="remove_item"><i class="fa fa-times"></i></a>
|
||||
<a href="{{ url(Util::getPostRoute().'card/remove', $row->rowId) }}" class="remove_item"><i class="fa fa-times"></i></a>
|
||||
|
||||
<div class="total_price"><span>{{ $row->subtotal() }} </span> €</div>
|
||||
<div class="qty"><input type="number" value="{{ $row->qty }}" name="quantity[{{$row->rowId}}]" maxlength="3" max="999" min="1" /> × {{ $row->price() }} € </div>
|
||||
|
|
@ -157,8 +158,8 @@
|
|||
|
||||
@endforeach
|
||||
</div>
|
||||
<a href="{{route(Util::getPostRoute().'card_delete', Util::addRoute())}}" class="btn btn-default btn-sm margin-top-20 margin-right-10 pull-left"><i class="glyphicon glyphicon-remove"></i> Warenkorb löschen</a>
|
||||
<button type="submit" class="btn btn-sm btn-default margin-top-20 pull-right"><i class="glyphicon glyphicon-refresh"></i> Warenkorb aktualisieren</button>
|
||||
<a href="{{url(Util::getPostRoute().'card/delete')}}" class="btn btn-default btn-sm margin-top-20 margin-right-10 pull-left"><i class="glyphicon glyphicon-remove"></i> Warenkorb löschen</a>
|
||||
<button type="submit" class="btn btn-sm btn-default margin-top-20 margin-left-0 pull-right pull-left-xs"><i class="glyphicon glyphicon-refresh"></i> Warenkorb aktualisieren</button>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
|
|
@ -199,7 +200,7 @@
|
|||
<div class="clearfix mb-2">
|
||||
<div class=" small">Versandland:</div>
|
||||
<div class="small">
|
||||
<form action="{{ route(Util::getPostRoute().'card_show', Util::addRoute()) }}" method="GET" style="margin-bottom: 0;">
|
||||
<form action="{{ url(Util::getPostRoute().'card/show') }}" method="GET" style="margin-bottom: 0;">
|
||||
<select name="selected_country" class="select2" onchange="this.form.submit()">
|
||||
{!! HTMLHelper::getCountriesForShipping(Yard::instance('shopping')->getShippingCountryId()) !!}
|
||||
</select>
|
||||
|
|
@ -225,7 +226,7 @@
|
|||
<span class="pull-right size-20"><strong>{{ Yard::instance('shopping')->totalWithShipping() }} €</strong></span>
|
||||
<strong class="pull-left">Gesamtsumme:</strong>
|
||||
</span>
|
||||
<a href="{{ route(Util::getPostRoute().'card_checkout_server', Util::addRoute()) }}" class="btn btn-primary btn-lg btn-block mt-4 btn-text-500 faa-parent animated-hover"><i class="fa fa-mail-forward faa-horizontal"></i> zur Kasse</a>
|
||||
<a href="{{ url(Util::getPostRoute().'card/checkout/server') }}" class="btn btn-primary btn-lg btn-block mt-4 btn-text-500 faa-parent animated-hover"><i class="fa fa-mail-forward faa-horizontal"></i> zur Kasse</a>
|
||||
<hr>
|
||||
<p class="text-center" style="line-height: 1.2em;"><em class="small text-center"> <i class="fa fa-lock"></i> Sie werden auf unseren checkout Server weitergeletet, die Verbindung ist mit SSL verschlüsselt.</em></p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
|
||||
|
||||
<style>
|
||||
.product_headline2 {
|
||||
height: 4em;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
<div class="shop-item">
|
||||
|
||||
<div class="thumbnail">
|
||||
|
|
@ -7,20 +13,22 @@
|
|||
<a class="shop-item-image"
|
||||
href="{{ url('/produkte/'.$subsite.'/'.$product->slug) }}">
|
||||
@php ($set = 'first')
|
||||
@foreach($product->images as $image)
|
||||
@if($image->slug)
|
||||
@if($set == 'hover')
|
||||
<img class="img-responsive"
|
||||
src="{{ route('shop_product_image', [$image->slug]) }}"
|
||||
alt="{{ $product->getLang('name') }}"/>
|
||||
@php($set = 'done')
|
||||
@endif
|
||||
@foreach($product->imagesActive as $image)
|
||||
@if($image->active)
|
||||
@if($image->slug)
|
||||
@if($set == 'hover')
|
||||
<img class="img-responsive hidden-xs"
|
||||
src="{{ route('shop_product_image', [$image->slug]) }}"
|
||||
alt="{{ $product->getLang('name') }}"/>
|
||||
@php($set = 'done')
|
||||
@endif
|
||||
|
||||
@if($set == 'first')
|
||||
<img class="img-responsive"
|
||||
src="{{ route('shop_product_image', [$image->slug]) }}"
|
||||
alt="{{ $product->getLang('name') }}"/>
|
||||
@php($set = 'hover')
|
||||
@if($set == 'first')
|
||||
<img class="img-responsive"
|
||||
src="{{ route('shop_product_image', [$image->slug]) }}"
|
||||
alt="{{ $product->getLang('name') }}"/>
|
||||
@php($set = 'hover')
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
|
|
@ -30,26 +38,30 @@
|
|||
|
||||
@if($user_shop)
|
||||
<div class="shop-item-summary text-center ">
|
||||
<h2 class=""><a href="{{ url('/produkte/'.$subsite.'/'.$product->slug) }}">{{ $product->getLang('name') }}</a></h2>
|
||||
|
||||
<h2 class="product_headline2"><a href="{{ url('/produkte/'.$subsite.'/'.$product->slug) }}">{{ $product->getLang('name') }}</a></h2>
|
||||
<!-- rating -->
|
||||
<div class="shop-item-rating-line">
|
||||
<div class="rating rating-5 size-13"><!-- rating-0 ... rating-5 --></div>
|
||||
</div>
|
||||
<!-- /rating -->
|
||||
|
||||
@if($product->price_old > 0)
|
||||
<div class="shop-item-price d-block text-danger mt-2">
|
||||
<del class="text-muted" style="font-size: 0.85em"> {{ $product->getFormattedPriceOld() }} €</del>
|
||||
{{ $product->getFormattedPrice() }} €
|
||||
</div>
|
||||
@else
|
||||
<div class="shop-item-price d-block mt-2 text-muted">
|
||||
{{ $product->getFormattedPrice() }} €
|
||||
</div>
|
||||
@endif
|
||||
<!-- price -->
|
||||
<div class="shop-item-price">
|
||||
{{ $product->getFormattedPrice() }} €
|
||||
</div>
|
||||
|
||||
<!-- /price -->
|
||||
</div>
|
||||
<!-- buttons -->
|
||||
<div class="shop-item-buttons text-left">
|
||||
|
||||
<div class="hidden visible-xs visible-sm visible-md clearfix text-center">
|
||||
|
||||
<a href="{{ route(Util::getPostRoute().'card_add_get', Util::addRoute([$product->id, 1, $product->slug])) }}"
|
||||
<a href="{{ url(Util::getPostRoute().'card/add/'.$product->id.'/1/'.$product->slug) }}"
|
||||
data-quantity="1" data-product_id="{{ $product->id }}"
|
||||
aria-label="{{ $product->getLang('name') }} zu deinem Warenkorb hinzufügen"
|
||||
class="btn btn-primary btn-xs btn-text-500 faa-parent animated-hover" rel="nofollow">
|
||||
|
|
@ -61,7 +73,7 @@
|
|||
</a>
|
||||
</div>
|
||||
<div class="hidden visible-lg text-left">
|
||||
<a href="{{ route(Util::getPostRoute().'card_add_get', Util::addRoute([$product->id, 1, $product->slug])) }}"
|
||||
<a href="{{ url(Util::getPostRoute().'card/add/'.$product->id.'/1/'.$product->slug) }}"
|
||||
data-quantity="1" data-product_id="{{ $product->id }}"
|
||||
aria-label="{{ $product->getLang('name') }} zu deinem Warenkorb hinzufügen"
|
||||
class="btn btn-primary btn-xs btn-text-500 faa-parent animated-hover" rel="nofollow">
|
||||
|
|
@ -72,11 +84,20 @@
|
|||
<i class="fa fa-list faa-horizonta"></i> Details
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@else
|
||||
<div class="shop-item-summary text-center ">
|
||||
<h2 class=""><a href="{{ url('/produkte/'.$subsite.'/'.$product->slug) }}">{{ $product->getLang('name') }}</a></h2>
|
||||
|
||||
<!-- rating -->
|
||||
<div class="shop-item-rating-line">
|
||||
<div class="rating rating-5 size-13"><!-- rating-0 ... rating-5 --></div>
|
||||
</div>
|
||||
<!-- /rating -->
|
||||
</div>
|
||||
|
||||
<div class="shop-item-buttons text-center">
|
||||
<a class="btn btn-primary btn-sm btn-text-500 faa-parent animated-hover" href="{{ url('/produkte/'.$subsite.'/'.$product->slug) }}">{{ $product->getLang('name') }} <i class="fa fa-lg fa-chevron-circle-right faa-horizontal"></i> </a>
|
||||
<a class="btn btn-primary btn-sm btn-text-500 faa-parent animated-hover" href="{{ url('/produkte/'.$subsite.'/'.$product->slug) }}">zum Produkt <i class="fa fa-lg fa-chevron-circle-right faa-horizontal"></i> </a>
|
||||
</div>
|
||||
@endif
|
||||
<!-- /buttons -->
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
<section class="page-header page-header-xlg parallax parallax-3"
|
||||
<section class="page-header page-header-xlg parallax parallax-3 hidden-xs"
|
||||
style="background-image:url('/assets/images/vision-min.jpg')">
|
||||
<div class="overlay dark-1"><!-- dark overlay [1 to 9 opacity] --></div>
|
||||
<div class="container">
|
||||
|
|
@ -37,30 +37,31 @@
|
|||
<!-- -->
|
||||
<section>
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!-- LEFT COLUMNS -->
|
||||
<div class="col-md-9 col-sm-9 col-md-push-3 col-sm-push-3">
|
||||
<div class="col-md-3 col-sm-3">
|
||||
@include('web.templates._categories')
|
||||
</div>
|
||||
|
||||
<div class="col-md-9 col-sm-9">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!-- IMAGE -->
|
||||
<div class="col-lg-6 col-sm-6">
|
||||
@if($product->images->count())
|
||||
|
||||
<div class="thumbnail relative margin-bottom-3">
|
||||
@if($product->imagesActive->count())
|
||||
<div class="thumbnail relative margin-bottom-3 hidden-xs">
|
||||
<!-- IMAGE ZOOM data-mode="mouseover|grab|click|toggle" -->
|
||||
<figure id="zoom-primary" class="zoom" data-mode="mouseover">
|
||||
<!-- zoom buttton positions available: .bottom-right .bottom-left .top-right .top-left -->
|
||||
<a class="lightbox bottom-right"
|
||||
href="{{ route('product_image', [$product->images->first()->slug]) }}"
|
||||
href="{{ route('product_image', [$product->imagesActive->first()->slug]) }}"
|
||||
data-plugin-options='{"type":"image"}'><i
|
||||
class="glyphicon glyphicon-search"></i></a>
|
||||
|
||||
<!-- image Extra: add .image-bw class to force black and white! -->
|
||||
<img class="img-responsive"
|
||||
src="{{ route('product_image', [$product->images->first()->slug]) }}"
|
||||
src="{{ route('product_image', [$product->imagesActive->first()->slug]) }}"
|
||||
width="1000" height="1500" alt="{{ $product->getLang('name') }}">
|
||||
</figure>
|
||||
|
||||
|
|
@ -69,7 +70,7 @@
|
|||
<div data-for="zoom-primary" class="zoom-more owl-carousel owl-padding-3 featured"
|
||||
data-plugin-options='{"singleItem": false, "autoPlay": false, "navigation": true, "pagination": false}'>
|
||||
@php ($activ = 'active')
|
||||
@foreach($product->images as $image)
|
||||
@foreach($product->imagesActive as $image)
|
||||
<a class="thumbnail {{ $activ }}"
|
||||
href="{{ route('product_image', [$image->slug]) }}">
|
||||
<img src="{{ route('product_image', [$image->slug]) }}"
|
||||
|
|
@ -90,17 +91,21 @@
|
|||
{!! $product->getLang('copy') !!}
|
||||
<hr/>
|
||||
|
||||
|
||||
|
||||
@if($user_shop)
|
||||
<div class="shop-item-price text-right">
|
||||
{{ $product->getFormattedPrice() }} €<br>
|
||||
@if($product->price_old > 0)
|
||||
<div class="shop-item-price text-danger text-right">
|
||||
<del class="text-muted" style="font-size: 0.85em"> {{ $product->getFormattedPriceOld() }} €</del>
|
||||
{{ $product->getFormattedPrice() }} €
|
||||
@else
|
||||
<div class="shop-item-price text-right text-muted">
|
||||
{{ $product->getFormattedPrice() }} €
|
||||
@endif<br>
|
||||
<span style="font-size: 0.7em; color:#999; font-weight: 400;"><em>inkl. 19% MwSt. zzgl. Versandkosten</em></span>
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<div class="shop-item-price text-right">
|
||||
{!! Form::open(['url' => route(Util::getPostRoute().'card_add_post', Util::addRoute([$product->id])), 'class' => 'mb-0', 'id'=>'']) !!}
|
||||
{!! Form::open(['url' => url(Util::getPostRoute().'card/add/'.$product->id), 'class' => 'mb-0', 'id'=>'']) !!}
|
||||
<div class="qty float-left">
|
||||
<input type="number" value="1" name="quantity" maxlength="3" max="999" min="1"><br>
|
||||
</div>
|
||||
|
|
@ -134,7 +139,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<div class="clearfix hidden-xs"></div>
|
||||
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<ul id="myTab" class="nav nav-tabs nav-top-border margin-top-40" role="tablist">
|
||||
|
|
@ -162,20 +167,13 @@
|
|||
{!! $product->getLang('ingredients') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="margin-top-60 margin-bottom-60"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /LEFT COLUMNS -->
|
||||
|
||||
<!-- RIGHT COLUMNS -->
|
||||
<div class="col-md-3 col-sm-3 col-md-pull-9 col-sm-pull-9">
|
||||
@include('web.templates._categories')
|
||||
</div>
|
||||
<!-- /RIGHT COLUMNS -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<section class="page-header page-header-xlg parallax parallax-3"
|
||||
<section class="page-header page-header-xlg parallax parallax-3 hidden-xs"
|
||||
style="background-image:url('/assets/images/vision-min.jpg')">
|
||||
<div class="overlay dark-1"><!-- dark overlay [1 to 9 opacity] --></div>
|
||||
|
||||
|
|
@ -46,10 +46,12 @@
|
|||
|
||||
<div class="row">
|
||||
|
||||
<!-- LEFT COLUMNS -->
|
||||
<div class="col-md-9 col-sm-9 col-md-push-3 col-sm-push-3">
|
||||
<h1>Produktwelt</h1>
|
||||
<div class="col-md-3 col-sm-3">
|
||||
@include('web.templates._categories')
|
||||
</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>
|
||||
<ul class="shop-item-list row list-inline nomargin">
|
||||
@foreach($products as $product)
|
||||
<!-- ITEM -->
|
||||
|
|
@ -59,18 +61,8 @@
|
|||
<!-- /ITEM -->
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<!-- /LEFT COLUMNS -->
|
||||
|
||||
<!-- RIGHT COLUMNS -->
|
||||
<div class="col-md-3 col-sm-3 col-md-pull-9 col-sm-pull-9">
|
||||
@include('web.templates._categories')
|
||||
</div>
|
||||
<!-- /RIGHT COLUMNS -->
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- / -->
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<link href="{{ asset('/assets/plugins/slider.revolution/css/extralayers.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/assets/plugins/slider.revolution/css/settings.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/assets/css/mystyle.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/assets/css/custom-style.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/assets/css/custom-style.css?v1') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('assets/css/custom-forms-v2.css') }}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('/css/cookieconsent.min.css') }}" />
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@
|
|||
<br>
|
||||
<em style="font-size: 0.9em">inkl. MwSt. zzgl. Versandkosten</em>
|
||||
</div>
|
||||
<a href="{{ route(Util::getPostRoute().'card_show', Util::addRoute()) }}" class="btn btn-primary btn-text-500 btn-block mt-3 faa-parent animated-hover">zum Warenkorb <i class="fa fa-shopping-cart faa-horizontal"></i></a>
|
||||
<a href="{{ url(Util::getPostRoute().'card/show') }}" class="btn btn-primary btn-text-500 btn-block mt-3 faa-parent animated-hover">zum Warenkorb <i class="fa fa-shopping-cart faa-horizontal"></i></a>
|
||||
|
||||
<a href="#" class="btn btn-sm btn-default mt-3 quick-cart-box-close">schließen</a>
|
||||
|
||||
|
|
|
|||
|
|
@ -102,14 +102,15 @@
|
|||
<div class="row">
|
||||
|
||||
<div class="col-md-9">
|
||||
<h1>Produktwelt</h1>
|
||||
<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>
|
||||
<h1>{{$site->headline}}</h1>
|
||||
<p class="margin-bottom-20">{{$site->copy}}</p>
|
||||
|
||||
@if($site->hasImage())
|
||||
<img class="img-responsive margin-bottom-20" src="{{ route('iq_image', [$site->iq_image->slug]) }}" alt="">
|
||||
@endif
|
||||
|
||||
<ul class="shop-item-list row list-inline nomargin">
|
||||
@foreach($products as $product)
|
||||
@foreach($site->getProductModels() as $product)
|
||||
<!-- ITEM -->
|
||||
<li class="col-lg-4 col-sm-4">
|
||||
@include('web.templates.produkte-item', ['subsite' => 'alle-produkte'])
|
||||
|
|
@ -126,7 +127,7 @@
|
|||
|
||||
<h1>Sparen Sie mit Sets</h1>
|
||||
<ul class="shop-item-list row list-inline nomargin">
|
||||
@foreach($set_products as $product)
|
||||
@foreach($site->getProductSetModels() as $product)
|
||||
<!-- ITEM -->
|
||||
<li class="col-lg-4 col-sm-4">
|
||||
@include('web.templates.produkte-item', ['subsite' => 'alle-produkte'])
|
||||
|
|
@ -194,8 +195,6 @@
|
|||
<p class="text-center">Wir waren für Dich vor Ort auf der Aloe Vera Farm auf Mallorca, denn Transparenz ist uns wichtig. So weißt Du genau, wo Deine Produkte herkommen und wie sie produziert werden. Echte Qualität eben.</p>
|
||||
<div class="clearfix lightbox" data-img-big="1" data-plugin-options='{"delegate": "a", "gallery": {"enabled": true}}'>
|
||||
|
||||
|
||||
|
||||
@foreach($user_shop->on_sites as $image)
|
||||
|
||||
<div class="col-xs-6 col-sm-4 col-md-6" style="padding: 2px;">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue