@extends('layouts.app')
@section('title', __('productcompat::lang.editor'))

@section('content')
<section class="content-header">
    <h1>@lang('productcompat::lang.product_compatibility') <small>@lang('productcompat::lang.editor')</small></h1>
</section>

<section class="content">
    @includeIf('productcompat::partials.status')

    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">@lang('productcompat::lang.search_product')</h3>
                    <div class="box-tools pull-right">
                        <a href="{{ action('\Modules\ProductCompat\Http\Controllers\ReviewController@index') }}" class="btn btn-xs btn-default">@lang('productcompat::lang.review_queue')</a>
                        <a href="{{ action('\Modules\ProductCompat\Http\Controllers\ChangeReportController@index') }}" class="btn btn-xs btn-default">@lang('productcompat::lang.change_report')</a>
                    </div>
                </div>
                <div class="box-body">
                    <form method="POST" action="{{ action('\Modules\ProductCompat\Http\Controllers\ProductCompatController@edit') }}">
                        @csrf
                        <div class="col-md-5">
                            <div class="form-group">
                                <label>@lang('productcompat::lang.search_product')</label>
                                <input type="text" name="product_sku" class="form-control" required autofocus placeholder="e.g. SKU0245">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label>&nbsp;</label><br>
                                <button type="submit" class="btn btn-primary">@lang('productcompat::lang.get_data')</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
@endsection
