@extends('layouts.frontend')

@section('title')Registracija naloga @endsection
@section('description')Registracija naloga @endsection
@section('keywords')Registracija naloga @endsection
@section('h1')Registracija naloga @endsection
@section('breadcumbs') @endsection

@section('content')
    <section id="maincontent" class="">
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12">
            <h2>Registracija naloga</h2>
            <hr>
        </div>
    </div>
    <div class="row">
        <div class="col-md-3 col-lg-2  cart-side" id="leftcol">
            <a href="{{url('/contact')}}"><img class="cart-help-v" src="/assets/img/{{app()->getLocale()}}-cart-help-v.gif" alt="{{__('frontside.cart.contactus')}}"></a>
            <a href="{{url('/contact')}}"><img class="cart-help-h" src="/assets/img/{{app()->getLocale()}}-cart-help-h.gif" alt="{{__('frontside.cart.contactus')}}"></a>
        </div>
        <div class="col-md-9 col-lg-10" id="maincol">

            <form class="form-horizontal" role="form" method="POST" action="{{ locRoute('register') }}">
                {{ csrf_field() }}

                <div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
                    <label for="name" class="col-md-4 control-label">Ime</label>

                    <div class="col-md-6">
                        <input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}" required autofocus>

                        @if ($errors->has('name'))
                            <span class="help-block">
                                <strong>{{ $errors->first('name') }}</strong>
                            </span>
                        @endif
                    </div>
                </div>

                <div class="form-group{{ $errors->has('lname') ? ' has-error' : '' }}">
                    <label for="lname" class="col-md-4 control-label">Prezime</label>

                    <div class="col-md-6">
                        <input id="lname" type="text" class="form-control" name="lname" value="{{ old('lname') }}" required autofocus>

                        @if ($errors->has('lname'))
                            <span class="help-block">
                                <strong>{{ $errors->first('lname') }}</strong>
                            </span>
                        @endif
                    </div>
                </div>

                <div class="form-group{{ $errors->has('phone') ? ' has-error' : '' }}">
                    <label for="phone" class="col-md-4 control-label">Telefon</label>

                    <div class="col-md-6">
                        <input id="phone" type="text" class="form-control" name="phone" value="{{ old('phone') }}" autofocus>

                        @if ($errors->has('phone'))
                            <span class="help-block">
                                <strong>{{ $errors->first('phone') }}</strong>
                            </span>
                        @endif
                    </div>
                </div>

                <div class="form-group{{ $errors->has('address') ? ' has-error' : '' }}">
                    <label for="address" class="col-md-4 control-label">Adresa</label>

                    <div class="col-md-6">
                        <input id="address" type="text" class="form-control" name="address" value="{{ old('address') }}" required autofocus>

                        @if ($errors->has('address'))
                            <span class="help-block">
                                <strong>{{ $errors->first('address') }}</strong>
                            </span>
                        @endif
                    </div>
                </div>

                <div class="form-group{{ $errors->has('zip_city') ? ' has-error' : '' }}">
                    <label for="address" class="col-md-4 control-label">Poštanski broj i mesto</label>

                    <div class="col-md-6">
                        <input id="zip_city" type="text" class="form-control" name="zip_city" value="{{ old('zip_city') }}" required autofocus>

                        @if ($errors->has('zip_city'))
                            <span class="help-block">
                                <strong>{{ $errors->first('zip_city') }}</strong>
                            </span>
                        @endif
                    </div>
                </div>

                <div class="form-group{{ $errors->has('company') ? ' has-error' : '' }}">
                    <label for="company" class="col-md-4 control-label">Podaci o firmi</label>

                    <div class="col-md-6">
                        {{--<input id="company" type="text" class="form-control" name="company" value="" >--}}
                        <textarea id="company"  name="company" class="form-control" rows="3" autofocus>{{ old('company') }}</textarea>

                        @if ($errors->has('company'))
                            <span class="help-block">
                                <strong>{{ $errors->first('company') }}</strong>
                            </span>
                        @endif
                    </div>
                </div>

                <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                    <label for="email" class="col-md-4 control-label">E-Mail Adresa</label>

                    <div class="col-md-6">
                        <input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required>

                        @if ($errors->has('email'))
                            <span class="help-block">
                                <strong>{{ $errors->first('email') }}</strong>
                            </span>
                        @endif
                    </div>
                </div>

                <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                    <label for="password" class="col-md-4 control-label">Lozinka</label>

                    <div class="col-md-6">
                        <input id="password" type="password" class="form-control" name="password" required>

                        @if ($errors->has('password'))
                            <span class="help-block">
                                <strong>{{ $errors->first('password') }}</strong>
                            </span>
                        @endif
                    </div>
                </div>

                <div class="form-group">
                    <label for="password-confirm" class="col-md-4 control-label">Potvrdite lozinku</label>

                    <div class="col-md-6">
                        <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-6 col-md-offset-4">
                        <button type="submit" class="btn btn-primary">
                            Registrujte se
                        </button>
                    </div>
                </div>
            </form>

        </div>
    </div>
</div>
    </section>
@endsection
@push('css')
    <link rel="stylesheet" href="{{asset('assets/css/register.css')}}">
@endpush
