{"action":"created","issue":{"url":"https://api.github.com/repos/yajra/laravel-datatables/issues/466","repository_url":"https://api.github.com/repos/yajra/laravel-datatables","labels_url":"https://api.github.com/repos/yajra/laravel-datatables/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/yajra/laravel-datatables/issues/466/comments","events_url":"https://api.github.com/repos/yajra/laravel-datatables/issues/466/events","html_url":"https://github.com/yajra/laravel-datatables/issues/466","id":141618622,"number":466,"title":"@can with @endcan Blade directives are being ignored","user":{"login":"mkwsra","id":1743919,"avatar_url":"https://avatars.githubusercontent.com/u/1743919?v=3","gravatar_id":"","url":"https://api.github.com/users/mkwsra","html_url":"https://github.com/mkwsra","followers_url":"https://api.github.com/users/mkwsra/followers","following_url":"https://api.github.com/users/mkwsra/following{/other_user}","gists_url":"https://api.github.com/users/mkwsra/gists{/gist_id}","starred_url":"https://api.github.com/users/mkwsra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkwsra/subscriptions","organizations_url":"https://api.github.com/users/mkwsra/orgs","repos_url":"https://api.github.com/users/mkwsra/repos","events_url":"https://api.github.com/users/mkwsra/events{/privacy}","received_events_url":"https://api.github.com/users/mkwsra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-17T15:34:15Z","updated_at":"2016-03-17T17:23:13Z","closed_at":"2016-03-17T17:23:13Z","body":"### @can with @endcan Blade directives is being ignored\r\n\r\n<!-- Please describe your problem/feature request here. -->\r\nI've a normal `editColumn` function that I use to display a select box with old value selected by default. but one option is for admins only so therefore I'm using the `@can` directive to determine the status of this user and based on this I'm hiding/showing this option. however when I add this directive the whole option is being ignored!\r\n\r\n```php\r\n->editColumn( 'status', '\r\n// some code goes here\r\n                                    <select name=\"status\" class=\"form-control input-sm\">\r\n                                        <option disabled>Select status</option>\r\n\t\t\t\t\t  @can(\"is-admin\")\r\n                                               <option value=\"3\">Published</option>\r\n                                        @endcan\r\n                                        @if($status == 2) <option value=\"2\" selected > @else <option value=\"2\"> @endif Not published</option>\r\n                                        @if($status == 1) <option value=\"1\" selected > @else <option value=\"1\"> @endif Draft</option>\r\n                                        @if($status == 1) <option value=\"0\" selected > @else <option value=\"0\"> @endif Canceled</option>\r\n                                    </select>\r\n// some other code goes here'\r\n\t\t                 )\r\n```\r\n\r\n### System details\r\n\r\n\r\n- Operating System: Ubuntu 14.04.4 (Vagrant/Homestead)\r\n- PHP Version: 7.0.3\r\n- Laravel Version: 5.2.22\r\n- Laravel-Datatables Version: 5.7.11\r\n"},"comment":{"url":"https://api.github.com/repos/yajra/laravel-datatables/issues/comments/197985324","html_url":"https://github.com/yajra/laravel-datatables/issues/466#issuecomment-197985324","issue_url":"https://api.github.com/repos/yajra/laravel-datatables/issues/466","id":197985324,"user":{"login":"mkwsra","id":1743919,"avatar_url":"https://avatars.githubusercontent.com/u/1743919?v=3","gravatar_id":"","url":"https://api.github.com/users/mkwsra","html_url":"https://github.com/mkwsra","followers_url":"https://api.github.com/users/mkwsra/followers","following_url":"https://api.github.com/users/mkwsra/following{/other_user}","gists_url":"https://api.github.com/users/mkwsra/gists{/gist_id}","starred_url":"https://api.github.com/users/mkwsra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkwsra/subscriptions","organizations_url":"https://api.github.com/users/mkwsra/orgs","repos_url":"https://api.github.com/users/mkwsra/repos","events_url":"https://api.github.com/users/mkwsra/events{/privacy}","received_events_url":"https://api.github.com/users/mkwsra/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T17:23:13Z","updated_at":"2016-03-17T17:23:13Z","body":":+1:  It's all about an issue with my code, sorry for bothering \r\n"}}