<commit_before>@extends('layout.edit', [
    'title' => 'Edit: ' . $designer->name,
    'body_id' => 'designer-edit-page',
    'body_class' => 'designer-edit-page',
    'back_link' => url('/designer/' . $designer->id),
])

@section('edit_content')
<form class="form-horizontal" action="{{ $designer->url }}">

    <div class="form-group">
        <label for="input-name" class="col-sm-2 control-label">
            Name</label>
        <div class="col-sm-10">
            <input name="name" type="text" class="form-control" id="input-name"
                placeholder="Name of designer or design brand"
                value="{{ old('name')===null?$designer->text('name', 'en'):old('name') }}">
        </div>
    </div>

    <div class="form-group">
        <label for="input-tagline" class="col-sm-2 control-label">Tagline</label>
        <div class="col-sm-10">
            <textarea name="tagline" rows="2" required maxlength="255" class="form-control" id="input-tagline"
                placeholder="Express design philosophy in short">{{ old('tagline')===null?$designer->text('tagline', 'en'):old('tagline') }}</textarea>
            <p class="text-muted">Max. 255 characters.</p>
        </div>
    </div>

    <div class="form-group">
        <label for="input-content" class="col-sm-2 control-label">
            Story</label>
        <div class="col-sm-10">
            <textarea name="content" class="form-control" id="input-content" rows="5"
                placeholder="Introduce your unique design story...">{{ old('content')===null?$designer->text('content', 'en'):old('content') }}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">
            Main image</label>
        <div class="col-sm-10">
            @if ($image = App\Image::find($image_id = old('image')))
                @include('component.input.imageupload', [
                    'image_id' => $image_id,
                    'thumb_url' => $image->getThumbUrl(),
                ])
            @elseif ($designer->image)
                @include('component.input.imageupload', [
                    'image_id' => $designer->image_id,
                    'thumb_url' => $designer->image->getThumbUrl(),
                ])
            @else
                @include('component.input.imageupload')
            @endif
        </div>
    </div>

    <div class="form-group"><commit_msg>Change image upload view file location.<commit_after>@extends('layout.edit', [
    'title' => 'Edit: ' . $designer->name,
    'body_id' => 'designer-edit-page',
    'body_class' => 'designer-edit-page',
    'back_link' => url('/designer/' . $designer->id),
])

@section('edit_content')
<form class="form-horizontal" action="{{ $designer->url }}">

    <div class="form-group">
        <label for="input-name" class="col-sm-2 control-label">
            Name</label>
        <div class="col-sm-10">
            <input name="name" type="text" class="form-control" id="input-name"
                placeholder="Name of designer or design brand"
                value="{{ old('name')===null?$designer->text('name', 'en'):old('name') }}">
        </div>
    </div>

    <div class="form-group">
        <label for="input-tagline" class="col-sm-2 control-label">Tagline</label>
        <div class="col-sm-10">
            <textarea name="tagline" rows="2" required maxlength="255" class="form-control" id="input-tagline"
                placeholder="Express design philosophy in short">{{ old('tagline')===null?$designer->text('tagline', 'en'):old('tagline') }}</textarea>
            <p class="text-muted">Max. 255 characters.</p>
        </div>
    </div>

    <div class="form-group">
        <label for="input-content" class="col-sm-2 control-label">
            Story</label>
        <div class="col-sm-10">
            <textarea name="content" class="form-control" id="input-content" rows="5"
                placeholder="Introduce your unique design story...">{{ old('content')===null?$designer->text('content', 'en'):old('content') }}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">
            Main image</label>
        <div class="col-sm-10">
            @if ($image = App\Image::find($image_id = old('image')))
                @include('component.upload.image', [
                    'image_id' => $image_id,
                    'thumb_url' => $image->getThumbUrl(),
                ])
            @elseif ($designer->image)
                @include('component.upload.image', [
                    'image_id' => $designer->image_id,
                    'thumb_url' => $designer->image->getThumbUrl(),
                ])
            @else
                @include('component.upload.image')
            @endif
        </div>
    </div>

    <div class="form-group">
{'fraction_non_alphanumeric': 0.19250566193123328, 'fraction_numerical': 0.008235536339304097, 'mean_word_length': 2.2713804713804713, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 107, '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': '2543468', 'n_tokens_mistral': 1500, 'n_tokens_neox': 1447, 'n_words': 256}