@extends('layouts.backend') @section('content-header')

Modification de produit

@endsection @section('content') {!! Form::model($product, ['route' => ['backend.products.update', $product->id], 'class' => '', 'method' => 'PUT', 'files' => true]) !!}
@include('backend.products._form')
@include('backend.products._seo')

Attributs

{{-- @foreach($attributes as $attribute) @include('shared.attributes.'. $attribute->type .'.edit', ['attribute' => $attribute, 'db_value' => $product_attributes->get($attribute->id)]) @endforeach --}} @foreach($attributes as $attribute) @if($attribute->childs->count() > 0 )
@else
@endif @include('shared.attributes.'. $attribute->type .'.edit', ['attribute' => $attribute, 'db_value' => $product_attributes->get($attribute->id)])
@foreach ($attribute->childs as $child) {{-- parent selected value --}}
get($attribute->id)) != trim($child->parent_value))style="display: none;" disabled @endif data-filter_parent_id="{{ $attribute->id }}" data-filter_parent_value="{{ $child->parent_value }}"> @include('shared.attributes.'. $child->type .'.edit', ['attribute' => $child, 'db_value' => $product_attributes->get($child->id)])
@endforeach @endforeach
{!! Form::close() !!} @endsection @section('scripts') @endsection