@extends('modal')
@section('content')
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h5 class="modal-title">{{trans('application.edit_product')}}</h5>
        </div>
        {!! Form::model($product, ['route' => ['products.update', $product->uuid], 'class' => 'ajax-submit', 'method' => 'PATCH']) !!}
        <div class="modal-body">
            @if (count($errors) > 0)
            {!! form_errors($errors) !!}
            @endif
            @include('products.partials._form')
        </div>
        <div class="modal-footer">
            {!! form_buttons() !!}
        </div>
        {!! Form::close() !!}
    </div>
</div>
@endsection