@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if ($errors->has('category_id.*')) {{ $errors->first('category_id.*') }} @endif