<form class="g-3 row auto-width" action="{{route('teams.update',$team->id)}}" method="POST" enctype='multipart/form-data'>
  <!-- For validation comment on -->
  @csrf
  @method('PUT')
  <div class="col-md-12 col-sm-12">
    <div class="g-3 row">
      <div class="col-md-12">
        <label>Name <span class="text-danger">*</span></label>
        <input type="text" class="form-control" placeholder="name" aria-label="title" name="name" value="{{$team->name}}">
      </div>
      <div class="col-md-12">
        <label>Designation <span class="text-danger">*</span></label>
        <input type="text" class="form-control" placeholder="Designation" aria-label="Designation" name="designation" value="{{$team->designation}}">
      </div>
      <div class="col-md-12">
        <label for="priority" class="form-label">Priority </label>
        <input type="number" class="form-control" name="priority" aria-describedby="inputGroupPrepend" required value="{!! $team->priority !!}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
      <div class="col-md-6">
        <label>Profile Image <span class="text-danger"></span></label>
        <input type="file" class="form-control" placeholder="icon" aria-label="icon" name="profile">
      </div>
      @if($team->profile!='')
      <div class="col-md-6">
        <label>Profile Image <span class="text-danger"></span></label>
        <img src="{{getTempUrl($team->profile)}}" width="50px" height="50px">
      </div>
      @endif
    </div>
  </div>
</form>
