@if(old('color_id'))
@php $color_id = old('color_id'); @endphp
@elseif(isset($record->color_id) && $record->color_id != '')
@php $color_id = $record->color_id; @endphp
@else
@php $color_id = ''; @endphp
@endif
@error('color_id')
{{ $message }}
@enderror
@if(old('name'))
@php $name = old('name'); @endphp
@elseif(isset($record->name) && $record->name != '')
@php $name = $record->name; @endphp
@else
@php $name = ''; @endphp
@endif
@error('name')
{{ $message }}
@enderror
@if(isset($record->image) && $record->image != '')
@php $image = $record->image; @endphp
@else
@php $image = ''; @endphp
@endif
@if($image!="")
@endif
@error('image')
{{ $message }}
@enderror