mivita/resources/views/user/shop/translate.blade.php
2025-08-12 18:01:59 +02:00

66 lines
3.3 KiB
PHP

@extends('layouts.layout-2')
@section('content')
{{-- @if ($errors->any())
<div class="row">
<div class="col-sm-12">
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
</div>
</div>
@endif
--}}
<h4 class="font-weight-bold py-2 mb-2">
{{ __('navigation.my_shop') }} {{ __('navigation.translate') }}
</h4>
<div class="row">
<div class="col-12">
<div class="text-right mt-0 mb-2">
<a href="{{ route('user_shop') }}" class="btn btn-default">{{ __('back') }}</a>
</div>
<div class="card mb-4">
<div class="card-body">
{!! Form::open(['action' => route('user_shop_tanslate_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
@foreach($localizations as $lang)
<div class="form-group">
<label class="form-label" for="contact">{{ __('shop.shop_contact') }} | <strong style="text-transform: uppercase">{{ __('website.language') }} {{$lang}}</strong></label>
{{ Form::textarea('trans['.$lang.'][contact]', $user->shop->getTrans('contact', $lang, 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') }} {{$lang}}</strong></label>
{{ Form::textarea('trans['.$lang.'][accessibility]', $user->shop->getTrans('accessibility', $lang, 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') }} {{$lang}}</strong></label>
{{ Form::textarea('trans['.$lang.'][about]', $user->shop->getTrans('about', $lang, false) , array('placeholder'=>'', 'class'=>'form-control', 'id'=>'about', 'rows'=>2)) }}
<small class="form-text text-muted">{{ __('shop.shop_about_help') }}</small>
</div>
<hr>
@endforeach
<div class="text-left mt-0 mb-2">
<button type="submit" class="btn btn-secondary">{{ __('save') }}</button>&nbsp;
</div>
{!! Form::close() !!}
</div>
</div>
<div class="text-right mt-0 mb-2">
<a href="{{ route('user_shop') }}" class="btn btn-default">{{ __('back') }}</a>
</div>
</div>
</div>
@endsection