@extends(Theme::getThemeNamespace() . '::views.ecommerce.customers.master')
@section('content')
    {!! Form::open(['route' => 'marketplace.vendor.become-vendor', 'class' => 'ps-form--account-setting', 'method' => 'POST']) !!}
        <div class="ps-form__header">
            <h3>{{ SeoHelper::getTitle() }}</h3>
        </div>
        <div class="ps-form__content">
            <input type="hidden" name="is_vendor" value="1">
            <div class="form-group">
                <label for="shop-name" class="required">{{ __('Shop Name') }}</label>
                <input class="form-control" name="shop_name" id="shop-name" type="text" value="{{ old('shop_name') }}" placeholder="{{ __('Shop Name') }}">
                @if ($errors->has('shop_name'))
                    <span class="text-danger">{{ $errors->first('shop_name') }}</span>
                @endif
            </div>
            <div class="form-group shop-url-wrapper">
                <label for="shop-url" class="required float-left">{{ __('Shop URL') }}</label>
                <span class="d-inline-block float-right shop-url-status"></span>
                <input class="form-control" name="shop_url" id="shop-url" type="text" value="{{ old('shop_url') }}" placeholder="{{ __('Shop URL') }}" data-url="{{ route('public.ajax.check-store-url') }}">
                @if ($errors->has('shop_url'))
                    <span class="text-danger">{{ $errors->first('shop_url') }}</span>
                @endif
                <span class="d-inline-block"><small data-base-url="{{ route('public.store', '') }}">{{ route('public.store', (string)old('shop_url', '')) }}</small></span>
            </div>
            <div class="form-group">
                <label for="shop-phone" class="required">{{ __('Phone Number') }}</label>
                <input class="form-control" name="shop_phone" id="shop-phone" type="text" value="{{ old('shop_phone') }}" placeholder="{{ __('Shop phone') }}">
                @if ($errors->has('shop_phone'))
                    <span class="text-danger">{{ $errors->first('shop_phone') }}</span>
                @endif
            </div>

            <div class="form-group submit">
                <button class="ps-btn">{{ __('Register') }}</button>
            </div>
        </div>
    {!! Form::close() !!}
@endsection
