
<div class="panel panel-default">
    <div class="panel-heading">
            编辑--{{$share_book->book_name}}
    </div>
    <div class="panel-body">
                    
        <form method='POST' action="{{ route('admin_share_books.update',$share_book->id)}}" onsubmit="return true">
            {!! csrf_field() !!}
            <input type="hidden" name="_method" value="PUT">
            <input type="hidden" name="id" value={{ $share_book->id }}>
	       <div class="form-group">
	              <label>选择子分类</label>
	               <select class="form-control" name="category_id">
	                @foreach ($categorys as $key=>$category)
	                <option value="{{ $category['id'] }}" {{ @$share_book->category == $category['category_name'] ? 'selected' : ''}}>{{ $category['category_name'] }}</option>
	                @endforeach
	              </select>
	        </div>

           <div class="form-group">
                <label>书名</label>
                <input type="text" style="width: 300px;heigth:50px;" name="book_name"  value={{ $share_book->book_name }}>
            </div>
           <div class="form-group">
                <label>作者</label>
                <input type="text" name="author" value={{ $share_book->author }}>
            </div>
           <div class="form-group">
                <label>封面</label>
                <textarea type="text"  style="width: 300px;heigth:250px;" name="cover_img_url"  value={{ $share_book->cover_img_url }}>{{ $share_book->cover_img_url }}</textarea>
            </div>
            <div class="form-group">
                <label>原文地址</label>
                <textarea style="width: 300px;height: 50px;" name="first_chapter_url"  value={{ $share_book->first_chapter_url }}>{{ $share_book->first_chapter_url }}</textarea>
            </div>
           <div class="form-group">
                <label>书简介</label>
                 <textarea style="width: 300px;height: 100px;" name="book_desc"  value={{ $share_book->book_desc }}>{{ $share_book->book_desc }}</textarea>
            </div>
            <div class="form-group">
                <label>一句话简介</label>
                 <textarea style="width: 300px;height: 100px;" name="one_word_desc"  value={{ $share_book->one_word_desc }}>{{ $share_book->one_word_desc }}</textarea>
            </div>
            <div class="form-group">
                <label>是否审核(慎重：审核了就直接上线了)</label>
                <label class="radio-inline">
                    <input type="radio" name="is_check"  value="0" {{ !$share_book->is_check ? 'checked' : ''}}>不启用
                </label>
                <label class="radio-inline">
                    <input type="radio" name="is_check"  value="1" {{ $share_book->is_check==1 ? 'checked' : ''}}>启用
                </label>
            </div>
           
            <button type="submit" class="btn btn-success">提交</button>
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        </form>
    </div>
</div>
<script type="text/javascript" src="{{ asset('js/My97DatePicker/WdatePicker.js') }}"></script>
<script type="text/javascript" src="{{ asset('js/check.js') }}"></script>
