{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_124/pulls/comments/58327804","id":58327804,"diff_hunk":"@@ -0,0 +1,53 @@\n+@extends('admin.layouts.app')\n+\n+@section('action', 'Category Index')\n+\n+@section('content')\n+<div class=\"dataTable_wrapper\">\n+    <table class=\"table table-striped table-bordered table-hover\" id=\"dataTables-example\">\n+        <thead>\n+            <tr>\n+                <th>ID</th>\n+                <th>Name</th>\n+                <th>Total Word</th>\n+                <th>Image</th>\n+                <th>Edit</th>\n+                <th>Delete</th>\n+            </tr>\n+        </thead>\n+        <tbody>\n+\n+            @if (count($categories) > 0)\n+                @foreach ($categories as $key => $category)\n+                    <tr class=\"even gradeC\">\n+                        <td class=\"even gradeC\">{{ ++$key }}</td>\n+                        <td class=\"even gradeC\">{{ $category->name }}</td>\n+                        <td class=\"even gradeC\">{{ $category->total_word }}</td>\n+                        <td class=\"even gradeC\">{{ $category->image }}</td>\n+                        <td class=\"even gradeC\">\n+                            <a class=\"btn btn-primary\" href=\"{{ URL::route('admin.category.edit', $category->id) }}\">\n+                                <i class=\"fa fa-pencil\"></i>\n+                                Edit\n+                            </a>\n+                        </td>\n+                        <td class=\"even gradeC\">\n+                            {!! Form::open(['route' => ['admin.category.destroy', $category->id], 'method' => 'delete', 'files' => true]) !!}\n+                                {{ Form::submit('Delete', ['class'=>'btn btn-danger btn-sm pull-left', 'onclick' => 'return confirm(\"Are you sure delete this catagory?\")']) }}","path":"resources/views/admin/category/index.blade.php","position":35,"original_position":35,"commit_id":"2b3ca932bcab5e06d17b831b973c424572ab0f90","original_commit_id":"b7fa43035deb15416245851e3abd27e19774244b","user":{"login":"namnv609","id":8691772,"avatar_url":"https://avatars.githubusercontent.com/u/8691772?v=3","gravatar_id":"","url":"https://api.github.com/users/namnv609","html_url":"https://github.com/namnv609","followers_url":"https://api.github.com/users/namnv609/followers","following_url":"https://api.github.com/users/namnv609/following{/other_user}","gists_url":"https://api.github.com/users/namnv609/gists{/gist_id}","starred_url":"https://api.github.com/users/namnv609/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namnv609/subscriptions","organizations_url":"https://api.github.com/users/namnv609/orgs","repos_url":"https://api.github.com/users/namnv609/repos","events_url":"https://api.github.com/users/namnv609/events{/privacy}","received_events_url":"https://api.github.com/users/namnv609/received_events","type":"User","site_admin":false},"body":"Sử dụng onSubmit của form thay vì onclick của button bạn nhé!","created_at":"2016-04-04T04:33:05Z","updated_at":"2016-04-04T04:33:05Z","html_url":"https://github.com/framgia/fels_124/pull/12#discussion_r58327804","pull_request_url":"https://api.github.com/repos/framgia/fels_124/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_124/pulls/comments/58327804"},"html":{"href":"https://github.com/framgia/fels_124/pull/12#discussion_r58327804"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_124/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_124/pulls/12","id":64905039,"html_url":"https://github.com/framgia/fels_124/pull/12","diff_url":"https://github.com/framgia/fels_124/pull/12.diff","patch_url":"https://github.com/framgia/fels_124/pull/12.patch","issue_url":"https://api.github.com/repos/framgia/fels_124/issues/12","number":12,"state":"open","locked":false,"title":"Category Admin Manager","user":{"login":"nguyenvanthucframgia2016","id":17847399,"avatar_url":"https://avatars.githubusercontent.com/u/17847399?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenvanthucframgia2016","html_url":"https://github.com/nguyenvanthucframgia2016","followers_url":"https://api.github.com/users/nguyenvanthucframgia2016/followers","following_url":"https://api.github.com/users/nguyenvanthucframgia2016/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvanthucframgia2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvanthucframgia2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvanthucframgia2016/subscriptions","organizations_url":"https://api.github.com/users/nguyenvanthucframgia2016/orgs","repos_url":"https://api.github.com/users/nguyenvanthucframgia2016/repos","events_url":"https://api.github.com/users/nguyenvanthucframgia2016/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvanthucframgia2016/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-01T07:23:38Z","updated_at":"2016-04-04T04:33:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae9f11a511138450960551ded43d13a60cf1e8dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_124/pulls/12/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_124/pulls/12/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_124/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_124/issues/12/comments","statuses_url":"https://api.github.com/repos/framgia/fels_124/statuses/2b3ca932bcab5e06d17b831b973c424572ab0f90","head":{"label":"nguyenvanthucframgia2016:categoryManagerAdmin","ref":"categoryManagerAdmin","sha":"2b3ca932bcab5e06d17b831b973c424572ab0f90","user":{"login":"nguyenvanthucframgia2016","id":17847399,"avatar_url":"https://avatars.githubusercontent.com/u/17847399?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenvanthucframgia2016","html_url":"https://github.com/nguyenvanthucframgia2016","followers_url":"https://api.github.com/users/nguyenvanthucframgia2016/followers","following_url":"https://api.github.com/users/nguyenvanthucframgia2016/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvanthucframgia2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvanthucframgia2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvanthucframgia2016/subscriptions","organizations_url":"https://api.github.com/users/nguyenvanthucframgia2016/orgs","repos_url":"https://api.github.com/users/nguyenvanthucframgia2016/repos","events_url":"https://api.github.com/users/nguyenvanthucframgia2016/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvanthucframgia2016/received_events","type":"User","site_admin":false},"repo":{"id":54865479,"name":"fels_124","full_name":"nguyenvanthucframgia2016/fels_124","owner":{"login":"nguyenvanthucframgia2016","id":17847399,"avatar_url":"https://avatars.githubusercontent.com/u/17847399?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenvanthucframgia2016","html_url":"https://github.com/nguyenvanthucframgia2016","followers_url":"https://api.github.com/users/nguyenvanthucframgia2016/followers","following_url":"https://api.github.com/users/nguyenvanthucframgia2016/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvanthucframgia2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvanthucframgia2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvanthucframgia2016/subscriptions","organizations_url":"https://api.github.com/users/nguyenvanthucframgia2016/orgs","repos_url":"https://api.github.com/users/nguyenvanthucframgia2016/repos","events_url":"https://api.github.com/users/nguyenvanthucframgia2016/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvanthucframgia2016/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenvanthucframgia2016/fels_124","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124","forks_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/forks","keys_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/teams","hooks_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/hooks","issue_events_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/events","assignees_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/tags","blobs_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/languages","stargazers_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/stargazers","contributors_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/contributors","subscribers_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/subscribers","subscription_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/subscription","commits_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/merges","archive_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/downloads","issues_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/labels{/name}","releases_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenvanthucframgia2016/fels_124/deployments","created_at":"2016-03-28T04:31:12Z","updated_at":"2016-03-25T08:21:54Z","pushed_at":"2016-04-04T04:25:44Z","git_url":"git://github.com/nguyenvanthucframgia2016/fels_124.git","ssh_url":"git@github.com:nguyenvanthucframgia2016/fels_124.git","clone_url":"https://github.com/nguyenvanthucframgia2016/fels_124.git","svn_url":"https://github.com/nguyenvanthucframgia2016/fels_124","homepage":null,"size":133,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"e5805babac86d7331c9030039f55300e1f256e77","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":54705289,"name":"fels_124","full_name":"framgia/fels_124","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_124","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_124","forks_url":"https://api.github.com/repos/framgia/fels_124/forks","keys_url":"https://api.github.com/repos/framgia/fels_124/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_124/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_124/teams","hooks_url":"https://api.github.com/repos/framgia/fels_124/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_124/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_124/events","assignees_url":"https://api.github.com/repos/framgia/fels_124/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_124/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_124/tags","blobs_url":"https://api.github.com/repos/framgia/fels_124/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_124/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_124/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_124/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_124/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_124/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_124/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_124/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_124/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_124/subscription","commits_url":"https://api.github.com/repos/framgia/fels_124/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_124/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_124/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_124/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_124/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_124/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_124/merges","archive_url":"https://api.github.com/repos/framgia/fels_124/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_124/downloads","issues_url":"https://api.github.com/repos/framgia/fels_124/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_124/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_124/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_124/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_124/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_124/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_124/deployments","created_at":"2016-03-25T08:21:54Z","updated_at":"2016-03-25T08:21:54Z","pushed_at":"2016-04-04T04:25:44Z","git_url":"git://github.com/framgia/fels_124.git","ssh_url":"git@github.com:framgia/fels_124.git","clone_url":"https://github.com/framgia/fels_124.git","svn_url":"https://github.com/framgia/fels_124","homepage":null,"size":136,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_124/pulls/12"},"html":{"href":"https://github.com/framgia/fels_124/pull/12"},"issue":{"href":"https://api.github.com/repos/framgia/fels_124/issues/12"},"comments":{"href":"https://api.github.com/repos/framgia/fels_124/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_124/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_124/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_124/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_124/statuses/2b3ca932bcab5e06d17b831b973c424572ab0f90"}}}}