@extends('layout.app')

@section('left-menu')
    @parent
    <ul>
        <a href="/pojazdy"><li>Przeglądaj<img src="/img/left_menu_icon/more.png"></li></a>
    </ul>
@stop

@section('center-area')
    @parent
    <form method="POST" action="/pojazdy">
        {{ csrf_field() }}
        <div class="form-group">
            <label for="vehicleName">Nazwa:</label>
            <input type="text" class="form-control" id="vehicleName" name="vehicleName" value="{{ old('vehicleName') }} ">
        </div>

        <div class="form-group">
            <label for="codename">Kryptonim:</label>
            <input type="text" class="form-control" id="codename" name="codename" value="{{ old('codename') }}">
        </div>

        <div class="form-group">
            <label for="brand">Marka:</label>
            <input type="text" class="form-control" id="brand" name="brand" value="{{ old('brand') }}">
        </div>

        <div class="form-group">
            <label for="registrationNumber">Numer rejestracyjny:</label>
            <input type="text" class="form-control" id="registrationNumber" name="registrationNumber" value="{{ old('registrationNumber') }}">
        </div>

        <div class="form-group">
            <label for="productionYear">Rok produkcji:</label>
            <input type="text" class="form-control" id="productionYear" name="productionYear" value="{{ old('productionYear') }}">
        </div>

        <div class="form-group">
            <label for="examExpirationDate">Data ważności przeglądu:</label>
            <input type="date" class="form-control" id="examExpirationDate" name="examExpirationDate" value="{{ old('examExpirationDate') }}">
        </div>

        <div class="form-group">
            <label for="insuranceExpirationDate">Termin ważności ubezpieczenia OC:</label>
            <input type="date" class="form-control" id="insuranceExpirationDate" name="insuranceExpirationDate" value="{{ old('insuranceExpirationDate') }}">
        </div>

        <div class="form-group">
            <label for="driveType">Układ napędowy:</label>
            <input type="text" class="form-control" id="driveType" name="driveType" value="{{ old('driveType') }}">
        </div>

        <div class="form-group">
            <label for="chassisType">Typ podwozia:</label>
            <input type="text" class="form-control" id="chassisType" name="chassisType" value="{{ old('chassisType') }}">
        </div>

        <div class="form-group">
            <label for="bodyProducer">Producent nadwozia:</label>
            <input type="text" class="form-control" id="bodyProducer" name="bodyProducer" value="{{ old('bodyProducer') }}">
        </div>

        <div class="form-group">
            <label for="crewNumber">Ilość osób w załodze:</label>
            <input type="text" class="form-control" id="crewNumber" name="crewNumber" value="{{ old('crewNumber') }}">
        </div>

        <div class="form-group">
            <label for="foamAgent">Ilość środka pianotwórczego w litrach:</label>
            <input type="text" class="form-control" id="foamAgent" name="foamAgent" value="{{ old('foamAgent') }}">
        </div>

        <div class="form-group">
            <label for="enginePower">Moc silnika w kW:</label>
            <input type="text" class="form-control" id="enginePower" name="enginePower" value="{{ old('enginePower') }}">
        </div>

        <div class="form-group">
            <label for="mass">Masa całkowita pojazdu:</label>
            <input type="text" class="form-control" id="mass" name="mass" value="{{ old('mass') }}">
        </div>

        <div class="form-group">
            <label for="chassisNumber">Numer podwozia:</label>
            <input type="text" class="form-control" id="chassisNumber" name="chassisNumber" value="{{ old('chassisNumber') }}">
        </div>

        <div class="form-group">
            <label for="engineNumber">Numer silnika:</label>
            <input type="text" class="form-control" id="engineNumber" name="engineNumber" value="{{ old('engineNumber') }}">
        </div>

        <div class="form-group">
            <label for="fuelType">Rodzaj paliwa:</label>
            <input type="text" class="form-control" id="fuelType" name="fuelType" value="{{ old('fuelType') }}">
        </div>

        <div class="form-group">
            <label for="chassisPoductionYear">Rok produkcji podwozia:</label>
            <input type="text" class="form-control" id="chassisPoductionYear" name="chassisPoductionYear" value="{{ old('chassisPoductionYear') }}">
        </div>

        <div class="form-group">
            <label for="entryIntoServiceDate">Data wprowadzenia do eksploatacji:</label>
            <input type="text" class="form-control" id="entryIntoServiceDate" name="entryIntoServiceDate" value="{{ old('entryIntoServiceDate') }}">
        </div>

        <div class="form-group">
            <label for="fireEnginePumpDescription">Opis autopompy:</label>
            <input type="text" class="form-control" id="fireEnginePumpDescription" name="fireEnginePumpDescription" value="{{ old('fireEnginePumpDescription') }}">
        </div>

        <div class="form-group">
            <label for="status">Stan:</label>
            <select name="status" class="form-control">
            <option value="1" selected='selected'>Aktywny</option>
            <option value="0">Zawieszony</option>
            </select>
        </div>

		<div class="form-group">
            <button style="cursor:pointer" type="submit" class="btn btn-primary">Utwórz</button>
        </div>
        @include('inc.formerrors')
    </form>
@stop