<div class="row">
    <x-input col="col-md-6 col-lg-4" value="{{ isset($book) ? $book->title : old('title') }}" name="title" :label="__('lang.title')"
        :required="1" autofocus />
    <x-select col="col-md-6 col-lg-4" class="select2" name="category_id" :label="__('lang.category')" :options="App\Models\Category::all()"
        :selected="isset($book) ? $book->category_id : old('category_id')" :required="1" />
    <x-select col="col-md-6 col-lg-4" class="select2" name="location_id" :label="__('lang.location')" :options="App\Models\Location::all()"
        :selected="isset($book) ? $book->location_id : old('location_id')" :required="1" />
    <x-select col="col-md-6 col-lg-4" class="select2" name="language_id" :label="__('lang.language')" :options="App\Models\Language::all()"
        :selected="isset($book) ? $book->language_id : old('language_id')" :required="1" />
    <x-input col="col-md-6 col-lg-4" value="{{ isset($book) ? $book->author : old('author') }}" name="author" :label="__('lang.author')"
        :required="1" />
    <x-input col="col-md-6 col-lg-4" value="{{ isset($book) ? $book->translator : old('translator') }}" name="translator"
        :label="__('lang.translator')" />
    <x-input col="col-md-6 col-lg-4" value="{{ isset($book) ? $book->publisher : old('publisher') }}" name="publisher"
        :label="__('lang.publisher')" :required="1" />
    <x-input col="col-md-6 col-lg-4" value="{{ isset($book) ? $book->isbn : old('isbn') }}" name="isbn" :label="__('lang.isbn')" />
    <x-input col="col-md-6 col-lg-4" value="{{ isset($book) ? $book->volume : old('volume') }}" name="volume" :label="__('lang.volume')" />
    <x-input col="col-md-6 col-lg-4" value="{{ isset($book) ? $book->pages : old('pages') }}" name="pages" :label="__('lang.pages')" />
    <x-input col="col-md-6 col-lg-4" type="number" value="{{ isset($book) ? $book->price : old('price') }}" name="price"
        :label="__('lang.price')" min="0"/>
    <x-input col="col-md-6 col-lg-4" type="number" value="{{ isset($book) ? $book->qty : old('qty') }}" name="qty" :label="__('lang.qty')"  min="0"/>
</div>