<commit_before>@if (!$model->exists)
  <div class="form-group">
    <label class="col-md-3 control-label">{{ trans('acp.photos.index') }}:</label>
    <div class="col-md-6">
      <images-uploader action="{{ action("$self@store") }}" append=".js-append-formdata"></images-uploader>
    </div>
  </div>

  @if (Request::has('trip_id'))
    <input class="js-append-formdata" type="hidden" name="trip_id" value="{{ Request::input('trip_id') }}">
  @endif
@else
  <div class="mb-3">
    <img class="img-responsive img-rounded" src="{{ $model->originalUrl() }}">
  </div>

  <div class="form-group {{ $errors->has('tags') ? 'has-error' : '' }}">
    <label class="col-md-3 control-label">Тэги:</label>
    <div class="col-md-9 checkbox">
      @foreach (App\Tag::orderBy(App\Tag::titleField())->get() as $tag)
        <div>
          <label>
            <input type="checkbox" name="tags[]" value="{{ $tag->id }}" {{ in_array($tag->id, (array) old('tags', !empty($model) ? $model->tags->pluck('id')->toArray() : null)) ? 'checked' : '' }}>
            {{ $tag->title }}
          </label>
        </div>
      @endforeach
      @include('tpl.input-error', ['input' => 'tags'])
    </div>
  </div>
@endif<commit_msg>Фото во всю ширину экрана на мобилах<commit_after>@if (!$model->exists)
  <div class="form-group">
    <label class="col-md-3 control-label">{{ trans('acp.photos.index') }}:</label>
    <div class="col-md-6">
      <images-uploader action="{{ action("$self@store") }}" append=".js-append-formdata"></images-uploader>
    </div>
  </div>

  @if (Request::has('trip_id'))
    <input class="js-append-formdata" type="hidden" name="trip_id" value="{{ Request::input('trip_id') }}">
  @endif
@else
  <div class="img-container">
    <img src="{{ $model->originalUrl() }}">
  </div>

  <div class="form-group {{ $errors->has('tags') ? 'has-error' : '' }}">
    <label class="col-md-3 control-label">Тэги:</label>
    <div class="col-md-9 checkbox">
      @foreach (App\Tag::orderBy(App\Tag::titleField())->get() as $tag)
        <div>
          <label>
            <input type="checkbox" name="tags[]" value="{{ $tag->id }}" {{ in_array($tag->id, (array) old('tags', !empty($model) ? $model->tags->pluck('id')->toArray() : null)) ? 'checked' : '' }}>
            {{ $tag->title }}
          </label>
        </div>
      @endforeach
      @include('tpl.input-error', ['input' => 'tags'])
    </div>
  </div>
@endif
{'fraction_non_alphanumeric': 0.2511377741001241, 'fraction_numerical': 0.003723624327678941, 'mean_word_length': 3.3883847549909256, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5888288', 'n_tokens_mistral': 865, 'n_tokens_neox': 854, 'n_words': 149}