<commit_before>@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="col-sm-offset-2 col-sm-8">
            <div class="panel panel-default">
                <div class="panel-heading">
                    Задача № {{ $task->id }}
                </div>

                <div class="panel-body">
                    <!-- Display Validation Errors -->
                @include('common.errors')

                    <!-- Task name -->
                    <div class="row">
                        <label for="task-name" class="col-sm-2 control-label">Название</label>
                        <div class="col-sm-6">{{ $task->name }}</div>
                    </div>

                    <!-- Task text -->
                    <div class="row">
                        <label for="task-text" class="col-sm-2 control-label">Описание</label>
                        <div class="col-sm-8" >{{ $task->text }}</div>
                    </div>

                    <!-- Task type -->
                    <div class="row">
                        <label for="task-type" class="col-sm-2 control-label">Тип</label>
                        <div class="col-sm-6">{{ $task->type->name }}</div>
                    </div>

                    <!-- Task priority -->
                    <div class="row">
                        <label for="task-priority" class="col-sm-2 control-label">Приоритет</label>
                        <div class="col-sm-6">{{ $task->priority->name }}</div>
                    </div>


                    <!-- Task state -->
                    <div class="row">
                        <label for="task-state" class="col-sm-2 control-label">Состояние</label>
                        <div class="col-sm-3">{{ $task->state->name }}</div>

                        <!-- Choose State -->
                        @if(( $request->user()->id == $task->author_id ) ||
                            ( $request->user()->isAdmin() ) ||
                            ( ($request->user()->id == $task->user_id) && ( $task->state->name == 'открыта' || $task->state->name == 'в работе' )) )
                            <form action="{{url('tasks/' . $task->id) . '/changestate'}}" method="POST" class="form-horizontal">
                                {{ csrf_field() }}
                                <div class="col-sm-4">
                                    <p><select size="6" multiple name="state_id" class="form-control">
                                            @foreach ( \App\State::all() as $state )
                                                @if(( $request->user()->id == $task->author_id ) || ( $request->user()->isAdmin() ))
                                                    @if( $state->id == $task->state_id )
                                                        <option selected value={{$state->id}}>{{$state->name}}</option>
                                                    @else
                                                        <option value={{$state->id}}>{{$state->name}}</option>
                                                    @endif
                                                @elseif($request->user()->id == $task->user_id )
                                                    @if( $state->name == 'в работе' || $state->name == 'выполнена' || $state->name == 'не выполнена')
                                                        @if( $state->id == $task->state_id )
                                                            <option selected value={{$state->id}}>{{$state->name}}</option>
                                                        @else
                                                            <option value={{$state->id}}>{{$state->name}}</option>
                                                        @endif
                                                    @endif
                                                @endif
                                            @endforeach
                                        </select></p>
                                </div>

                                <!-- Add Task Button -->
                                <div class="form-group">
                                    <div class="col-sm-1">
                                        <button type="submit" class="btn btn-default center-block">
                                            <i class="fa fa-btn fa-exchange"></i>Изменить
                                        </button>
                                    </div>
                                </div>
                            </form>
                        @endif
                    </div>

                    <!-- Task phone1 -->
                    <div class="row">
                        <label for="task-phone1" class="col-sm-2 control-label">Телефон</label>
                        <div class="col-sm-6">{{ $task->phone1 }}</div>
                    </div>

                    <!-- Task fio -->
                    <div class="row">
                        <label for="task-fio" class="col-sm-2 control-label">ФИО</label>
                        <div class="col-sm-6">{{ $task->fio }}</div>
                    </div>

                    <!-- Task address -->
                    <div class="row">
                        <label for="task-address" class="col-sm-2 control-label">Адрес</label>
                        <div class="col-sm-6"> {{ $task->address }}</div>
                    </div>

                    <!-- Task Login and UID -->
                    <div class="row">
                        <label for="task-login" class="col-sm-2 control-label">Login</label>
                        <div class="col-sm-2"><a target="_blank" href="https://bill.skyline.net.ru/admin/index.cgi?index=7&search=1&type=10&LOGIN={{$task->login}}">{{$task->login}}</a></div>

                        <label for="task-uid" class="col-sm-offset-1 col-sm-1 control-label">UID</label>
                        <div class="col-sm-2"><a target="_blank" href="https://bill.skyline.net.ru/admin/index.cgi?index=15&UID=={{$task->uid}}">{{$task->uid}}</a></div>
                    </div>

                    <!-- Task Author -->
                    <div class="row">
                        <label for="task-login" class="col-sm-2 control-label">Автор</label>
                        <div class="col-sm-2"><a href="/tasks/{{App\User::find($task->author_id)->id}}">{{App\User::find($task->author_id)->name}}</a></div>
                    </div>

                    <!-- Task USER -->
                    <div class="row">
                        <label for="task-login" class="col-sm-offset-0 col-sm-2 control-label">Исполнитель</label>
                        <div class="col-sm-2"><a href="/tasks/{{$task->user->id}}">{{$task->user->name}}</a></div>
                    </div>

                    <!-- Task Date and Update date -->
                    <div class="row"><commit_msg>fix redirect to abills by UID<commit_after>@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="col-sm-offset-2 col-sm-8">
            <div class="panel panel-default">
                <div class="panel-heading">
                    Задача № {{ $task->id }}
                </div>

                <div class="panel-body">
                    <!-- Display Validation Errors -->
                @include('common.errors')

                    <!-- Task name -->
                    <div class="row">
                        <label for="task-name" class="col-sm-2 control-label">Название</label>
                        <div class="col-sm-6">{{ $task->name }}</div>
                    </div>

                    <!-- Task text -->
                    <div class="row">
                        <label for="task-text" class="col-sm-2 control-label">Описание</label>
                        <div class="col-sm-8" >{{ $task->text }}</div>
                    </div>

                    <!-- Task type -->
                    <div class="row">
                        <label for="task-type" class="col-sm-2 control-label">Тип</label>
                        <div class="col-sm-6">{{ $task->type->name }}</div>
                    </div>

                    <!-- Task priority -->
                    <div class="row">
                        <label for="task-priority" class="col-sm-2 control-label">Приоритет</label>
                        <div class="col-sm-6">{{ $task->priority->name }}</div>
                    </div>


                    <!-- Task state -->
                    <div class="row">
                        <label for="task-state" class="col-sm-2 control-label">Состояние</label>
                        <div class="col-sm-3">{{ $task->state->name }}</div>

                        <!-- Choose State -->
                        @if(( $request->user()->id == $task->author_id ) ||
                            ( $request->user()->isAdmin() ) ||
                            ( ($request->user()->id == $task->user_id) && ( $task->state->name == 'открыта' || $task->state->name == 'в работе' )) )
                            <form action="{{url('tasks/' . $task->id) . '/changestate'}}" method="POST" class="form-horizontal">
                                {{ csrf_field() }}
                                <div class="col-sm-4">
                                    <p><select size="6" multiple name="state_id" class="form-control">
                                            @foreach ( \App\State::all() as $state )
                                                @if(( $request->user()->id == $task->author_id ) || ( $request->user()->isAdmin() ))
                                                    @if( $state->id == $task->state_id )
                                                        <option selected value={{$state->id}}>{{$state->name}}</option>
                                                    @else
                                                        <option value={{$state->id}}>{{$state->name}}</option>
                                                    @endif
                                                @elseif($request->user()->id == $task->user_id )
                                                    @if( $state->name == 'в работе' || $state->name == 'выполнена' || $state->name == 'не выполнена')
                                                        @if( $state->id == $task->state_id )
                                                            <option selected value={{$state->id}}>{{$state->name}}</option>
                                                        @else
                                                            <option value={{$state->id}}>{{$state->name}}</option>
                                                        @endif
                                                    @endif
                                                @endif
                                            @endforeach
                                        </select></p>
                                </div>

                                <!-- Add Task Button -->
                                <div class="form-group">
                                    <div class="col-sm-1">
                                        <button type="submit" class="btn btn-default center-block">
                                            <i class="fa fa-btn fa-exchange"></i>Изменить
                                        </button>
                                    </div>
                                </div>
                            </form>
                        @endif
                    </div>

                    <!-- Task phone1 -->
                    <div class="row">
                        <label for="task-phone1" class="col-sm-2 control-label">Телефон</label>
                        <div class="col-sm-6">{{ $task->phone1 }}</div>
                    </div>

                    <!-- Task fio -->
                    <div class="row">
                        <label for="task-fio" class="col-sm-2 control-label">ФИО</label>
                        <div class="col-sm-6">{{ $task->fio }}</div>
                    </div>

                    <!-- Task address -->
                    <div class="row">
                        <label for="task-address" class="col-sm-2 control-label">Адрес</label>
                        <div class="col-sm-6"> {{ $task->address }}</div>
                    </div>

                    <!-- Task Login and UID -->
                    <div class="row">
                        <label for="task-login" class="col-sm-2 control-label">Login</label>
                        <div class="col-sm-2"><a target="_blank" href="https://bill.skyline.net.ru/admin/index.cgi?index=7&search=1&type=10&LOGIN={{$task->login}}">{{$task->login}}</a></div>

                        <label for="task-uid" class="col-sm-offset-1 col-sm-1 control-label">UID</label>
                        <div class="col-sm-2"><a target="_blank" href="https://bill.skyline.net.ru/admin/index.cgi?index=15&UID={{$task->uid}}">{{$task->uid}}</a></div>
                    </div>

                    <!-- Task Author -->
                    <div class="row">
                        <label for="task-login" class="col-sm-2 control-label">Автор</label>
                        <div class="col-sm-2"><a href="/tasks/{{App\User::find($task->author_id)->id}}">{{App\User::find($task->author_id)->name}}</a></div>
                    </div>

                    <!-- Task USER -->
                    <div class="row">
                        <label for="task-login" class="col-sm-offset-0 col-sm-2 control-label">Исполнитель</label>
                        <div class="col-sm-2"><a href="/tasks/{{$task->user->id}}">{{$task->user->name}}</a></div>
                    </div>

                    <!-- Task Date and Update date -->
                    <div class="row">
{'fraction_non_alphanumeric': 0.1653385024050542, 'fraction_numerical': 0.00574341302318903, 'mean_word_length': 0.9304323725055432, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 371, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 90, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2998776', 'n_tokens_mistral': 3408, 'n_tokens_neox': 3232, 'n_words': 552}