@extends('admin.layouts.index') @section('content')
@csrf
@if($model)

Szerkesztés: {{ $model->name }}

Utoljára módosítva: {{ $model->updated_at->format('Y.m.d H:i') }}
@else

Új termék hozzáadása

A weboldalon megvásárolható termék hozzáadása.
@endif

{{--
--}} {{--
--}} {{--
--}} {{--

SEO

--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{----}} {{----}} {{--

Maximum 255 karakter engedélyezett.

--}} {{--
--}} {{--
--}} {{----}} {{----}} {{--

Maximum 255 karakter engedélyezett.

--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} @foreach(\App\Language::all() as $lang)

{{$lang->name}}

@include('admin.includes.fields.text', ['name' => "name[$lang->code]", 'value' => $model ? $model->getTranslation('name', $lang->code) : null]) @include('admin.includes.fields.summernote', ['name' => "description[$lang->code]", 'value' => $model ? $model->getTranslation('description', $lang->code) : null])
@endforeach

Kapcsolatok

@include('admin.includes.fields.select_multiple', ['name' => "products[]", 'options' => \App\Product::pluck('name', 'id'), 'value' => $model ? $model->products()->pluck('ws_products.id') : null, 'info' => 'Egy termék több kollekcióba is tartozhat.']) @include('admin.includes.fields.select_multiple', ['name' => "attributes[]", 'options' => \App\Attribute::pluck('name', 'id'), 'value' => $model ? $model->attributes()->pluck('ws_attributes.id') : null, 'info' => 'Egy tulajdonság több kollekcióhoz is tartozhat.'])
@stop @section('custom-css') @stop @section('custom-js') @stop