{!! Form::open(['method' => 'PUT', 'url' => '/admin/brands/' .$brand->brand_id, 'enctype' => 'multipart/form-data']) !!}
{!! Form::label('Name') !!}
{!! Form::text('brand_name', $brand->brand_name, ['class' => 'form-control', 'placeholder' => 'Name', 'id' => 'brand_name']) !!}
@if ($errors->has('brand_name'))
{!! $errors->first('brand_name') !!}@endif
{!! Form::label('Slug') !!}
{!! Form::text('brand_slug', $brand->brand_slug, ['class' => 'form-control', 'placeholder' => 'Slug', 'id' => 'brand_slug']) !!}
@if ($errors->has('brand_slug'))
{!! $errors->first('brand_slug') !!}@endif
{!! Form::label('Code') !!}
{!! Form::text('brand_code', $brand->brand_code, ['class' => 'form-control', 'placeholder' => 'Code']) !!}
@if ($errors->has('brand_code'))
{!! $errors->first('brand_code') !!}@endif
@if( $brand->brandImages )
@foreach( $brand->brandImages as $index => $brandImage )
@include('admin.brand.multi-image-edit-partial', ['image' => $brandImage, 'index' => $index+1])
@endforeach
@endif
{!! Form::label('Brand footer position') !!}
{!! Form::select('brand_footer_priority', $brand_footer_priority, $brand->brand_footer_priority, ['class' => 'form-control', 'placeholder' => 'Select brand position', 'id' => 'brand_footer_position']) !!}
@if ($errors->has('brand_footer_priority'))
{!! $errors->first('brand_footer_priority') !!}@endif
{!! Form::label('Status') !!}
{!! Form::select('brand_is_exist', [1 => 'Active', 0 => 'Inactive'], isset($brand->brand_is_exist) ? $brand->brand_is_exist : null, ['class' => 'form-control']) !!}
{!! Form::close() !!}