@extends('backend.layouts.master') @section('title', 'Edit Product') @section('styles') @endsection @section('scripts') @endsection @section('content')

Edit Product

{{ csrf_field() }} {!! method_field('patch') !!}
Product Details
{{ $errors->first('name') }}
{{ $errors->first('slug') }}
{{ $errors->first('category_id') }}
{{ $errors->first('description') }}
Images
@foreach($product->images->sortBy('sort_order') as $image)
{{ $image->title }}

{{ $image->title }} ({{ $image->sort_order }})

@endforeach
Attributes
@foreach($product->category->groups->sortBy('sort_order') as $group) @foreach($group->attributes->sortBy('sort_order') as $attribute) @endforeach @endforeach

{{ $group->name }}

{{ $attribute->name }} @if(!empty($attribute->description))
{{ $attribute->description }}@endif
@include("backend.product.partials.form.{$attribute->type->slug}")
@foreach($product->images->sortBy('sort_order') as $image) @endforeach @endsection