<div class="box">
    <div class="box-title">Edit Games</div>
    <div class="box-content">

        @if($message)
        <div class="alert alert-danger">{{$message}}</div>
        @endif

        <form class="form-horizontal" method="post" action="">
            <div class="alert alert-info">Add Your games with there full details from here</div>
            <div class="form-group">
                <label class="col-sm-3 control-label">Title</label>
                <div class="col-sm-7">
                    <input type="text" value="{{$game->title}}" class="form-control" placeholder="Category title" name="val[title]"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">About</label>
                <div class="col-sm-7">
                    <textarea class="form-control" name="val[description]">{{$game->description}}</textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">Game Category</label>
                <div class="col-sm-7">
                    <select class="form-control" name="val[category]">
                        @foreach($categories as $category)
                        <option {{($category->id == $game->category) ? 'selected' : null}} value="{{$category->id}}">{{$category->title}}</option>
                        @endforeach
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">Game Content</label>
                <div class="col-sm-7">
                    <textarea class="form-control" name="val[content]">{{$game->iframe_content}}</textarea>
                </div>
            </div>

            <!---Admin features--->
            <div class="form-group">
                <label class="col-sm-3 control-label">Verified</label>
                <div class="col-sm-7">
                    <select class="form-control" name="val[verified]">
                        <option {{($game->verified == 1) ? "selected" : null}} value="1">Yes</option>
                        <option {{($game->verified == 0)  ? "selected" : null}} value="0">No</option>
                    </select>
                </div>
            </div>



            <div class="body-header">
                <input class="btn btn-danger no-radius" type="submit" value="Add Game"/>
            </div>
        </form>
    </div>
</div>