<form class="row g-3 auto-width edit_task_teams" id="edit_task_teams_form" enctype='multipart/form-data' action="{{route('task-teams-account-update' , $task_teams->id) }}">
    @csrf
    @method('POST')
    <div class="col-md-6">
        <label for="task_id" class="form-label">Task Title</label>
        <select class="form-control" name="task_id" id="task_id" required>
        <option value="">Select Task Title</option>
            @foreach($tasks as $task)
                <option value="{{ $task->id }}" @if($task->id == $task_teams->task_id) selected @endif>
                    {{ $task->title }}
                </option>
            @endforeach
    </select>
    </div>

    <div class="col-md-6">
        <label for="user_id" class="form-label">Users</label>
        <select class="form-control" name="user_id" id="user_id" required>
            <option value="">Select Users</option>
            <option value="{{ $task_teams->user_id }}"  @if($task_teams->user_id) selected @endif>
               {{ $task_teams->user_id }} </option>
            <option value="1">Ahsan</option>
            <option value="2">Mateen</option>
            <option value="3">Sir Ali Paras</option>
        </select>
    </div>

    <div class="col-md-6">
        <div>
            <label for="role" class="form-label">Role <span class="text-danger"><b>*</b></span></label>
            <input type="text" class="form-control" id="role" name="role" value="{{$task_teams->role}}">
        </div>
    </div>

    <div class="col-md-6">
        <div>
            <label for="responsibility" class="form-label">Responsibility <span class="text-danger"><b>*</b></span></label>
            <input type="text" class="form-control" id="responsibility" name="responsibility" value="{{$task_teams->responsibility}}">
        </div>
    </div>

    <div class="col-md-6">
        <div>
            <label for="reject_reason" class="form-label">Reject Reason <span class="text-danger"><b>*</b></span></label>
            <input type="text" class="form-control" id="reject_reason" name="reject_reason" value="{{$task_teams->reject_reason}}">
        </div>
    </div>
</form>

<script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/12.1.10/js/intlTelInput.js"></script>
<script type="text/javascript" src="{{ asset('admin/plugins/datepicker/js/bootstrap-datepicker.js') }}"></script>
<script src="{!! asset('admin/js/accounts.js') !!}"></script>
