@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

@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])
@endforeach

Kapcsolatok

@include('admin.includes.fields.select_multiple', ['name' => "collections[]", 'options' => \App\Collection::pluck('name', 'id'), 'value' => $model ? $model->collections()->pluck('ws_collections.id') : null, 'info' => 'A tulajdonság több kollekcióhoz is tartozhat.'])
@stop @section('custom-css') @stop @section('custom-js') @stop