mivita/resources/views/user/components/user_shop_edit.blade.php
2025-08-22 18:18:26 +02:00

144 lines
7.5 KiB
PHP

<div class="row">
<div class="col order-2 order-md-1">
<!-- Description -->
<div class="card mb-4">
<div class="card-body">
{!! Form::open(['action' => route('user_shop_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
<div class="form-group">
<label class="custom-control custom-checkbox float-right">
{!! Form::checkbox('active', 1, $user->shop->active, ['class'=>'custom-control-input']) !!}
<span class="custom-control-label">{{__('activ')}}</span>
</label>
<label class="form-label" for="title">{{ __('shop.shop_title') }}</label>
{{ Form::text('title', $user->shop->title, array('placeholder'=>__('shop.shop_title'), 'class'=>'form-control', 'id'=>'title')) }}
<small class="form-text text-muted">{{ __('shop.shop_title_help') }}</small>
</div>
<hr>
<div class="form-group">
<label class="form-label" for="contact">{{ __('shop.shop_contact') }} | <strong style="text-transform: uppercase"> {{ __('website.language') }} {{ \App::getLocale() }}</strong></label>
{{ Form::textarea('contact', $user->shop->getLang('contact', false) , array('placeholder'=>__('shop.shop_contact'), 'class'=>'form-control', 'id'=>'contact', 'rows'=>4)) }}
<small class="form-text text-muted">{{ __('shop.shop_contact_help') }}</small>
</div>
<div class="form-group">
<label class="form-label" for="accessibility">{{ __('shop.shop_accessibility') }} | <strong style="text-transform: uppercase"> {{ __('website.language') }} {{ \App::getLocale() }}</strong></label>
{{ Form::textarea('accessibility', $user->shop->getLang('accessibility', false), array('placeholder'=>__('shop.shop_accessibility'), 'class'=>'form-control', 'id'=>'accessibility', 'rows'=>2)) }}
<small class="form-text text-muted">{{ __('shop.shop_accessibility_help') }}</small>
</div>
<div class="form-group">
<label class="form-label" for="about">{{ __('shop.shop_about') }} | <strong style="text-transform: uppercase"> {{ __('website.language') }} {{ \App::getLocale() }}</strong></label>
{{ Form::textarea('about', $user->shop->getLang('about', false) , array('placeholder'=>'', 'class'=>'form-control', 'id'=>'about', 'rows'=>2)) }}
<small class="form-text text-muted">{{ __('shop.shop_about_help') }}</small>
</div>
<div class="text-right mt-0 mb-2">
<a href="{{ route('user_shop_translate') }}" class="btn btn-sm btn-primary">{{ __('navigation.translate') }}</a>&nbsp;
</div>
<div class="text-left mt-0 mb-2">
<button type="submit" class="btn btn-secondary">{{ __('save') }}</button>&nbsp;
</div>
{!! Form::close() !!}
</div>
</div>
<!-- / Description -->
</div>
<div class="col-md-5 col-xl-4 order-1 order-md-2">
<!-- Project details -->
<div class="card mb-4">
<h5 class="card-header">{{ __('shop.Shop details') }}</h5>
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('shop.name') }}</div>
<div>
{{ $user->shop->name }}
</div>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('shop.domain') }}</div>
<div>
<a href="{{ $user->shop->getSubdomain(false) }}" target="_blank">{{ $user->shop->getSubdomain(false) }}
</a>
</div>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('Status') }}</div>
<div class="text-right">
@if($user->shop->getSubdomainAvailable())
<span class="badge badge-pill badge-success"><i class="fa fa-check"> {{ __('shop.available') }} </i> </span>
@else
<span class="badge badge-pill badge-danger"><i class="fa fa-times"> {{ __('shop.not_available') }} </i> </span>
@endif
</div>
</li>
{{-- <li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('Status') }}</div>
<div class="text-right">
@if($user->shop->getSubdomainStatus())
<span class="badge badge-pill badge-success"><i class="fa fa-check"> {{ __('shop.available') }} </i> DNS</span><br>
@else
<span class="badge badge-pill badge-danger"><i class="fa fa-times"> {{ __('shop.not_available') }} </i> DNS</span>
@endif
@if($user->shop->getSubdomainAvailable())
<span class="badge badge-pill badge-success"><i class="fa fa-check"> {{ __('shop.available') }} </i>
@if($user->shop->getSubdomainSslSin()) HTTPS @else HTTP @endif
</span>
@else
<span class="badge badge-pill badge-danger"><i class="fa fa-times"> {{ __('shop.not_available') }} </i> HTTP </span>
@endif
@if($user->shop->getSubdomainSslSinActive())
<span class="badge badge-pill badge-success"><i class="fa fa-check"> {{ __('shop.available') }} </i> SSL
</span>
@else
<span class="badge badge-pill badge-danger"><i class="fa fa-times"> {{ __('shop.not_available') }} </i> SSL </span>
@endif
</div>
</li> --}}
<li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('shop.active_since') }}</div>
<div>
<a href="{{ route('user_shop_name_edit') }}" class="btn btn-xs btn-outline-primary"><i class="fa fa-edit"></i> Shop Name anpassen</a>
</div>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('shop.active_since') }}</div>
<div>
<strong>{{ $user->shop->getActiveDateFormat() }}</strong>
</div>
</li>
</ul>
</div>
<!-- / Project details -->
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="card mb-4">
@include('user.components.user_shop_image')
</div>
</div>
<div class="col-md-8">
<div class="card mb-4">
@include('user.components.user_shop_on_site')
</div>
</div>
</div>
<!-- / image files -->