{"action":"created","comment":{"url":"https://api.github.com/repos/PayBreak/basket/pulls/comments/81508096","pull_request_review_id":2482598,"id":81508096,"diff_hunk":"@@ -41,26 +41,26 @@\n                 </tr>\n                 {!! Form::close() !!}\n                 <tr>\n-                @foreach($settlementReport['settlements'] as $item)\n+                @foreach($aggregate_settlement_report as $item)\n                     <tr>\n-                        <td>{{ date('d/m/Y', strtotime($item['received_date'])) }}</td>\n-                        <td>{{ date('d/m/Y', strtotime($item['captured_date'])) }}</td>\n-                        <td>{{ $item['customer_name']}}</td>\n-                        <td>{{ $item['application_postcode'] }}</td>\n-                        <td>{{ $item['application'] }}</td>\n-                        <td>{{ $item['order_reference'] }}</td>\n-                        <td class=\"text-right\">{{ '&pound;' . number_format($item['order_amount']/100, 2)}}</td>\n-                        <td>{{ $item['type'] }}</td>\n-                        <td class=\"{{($item['deposit'] < 0 ? 'text-danger' : '') }} text-right\">{{'&pound;' . number_format($item['deposit']/100, 2)}}</td>\n-                        <td class=\"{{($item['loan_amount'] < 0 ? 'text-danger' : '') }} text-right\" >{{'&pound;' . number_format($item['loan_amount']/100, 2)}}</td>\n-                        <td class=\"{{($item['subsidy'] < 0 ? 'text-danger' : '') }} text-right\">{{'&pound;' . number_format($item['subsidy']/100, 2) }}</td>\n-                        <td class=\"{{($item['adjustment'] < 0 ? 'text-danger' : '') }} text-right\">{{'&pound;' . number_format($item['adjustment']/100, 2)}}</td>\n-                        <td class=\"{{($item['net'] < 0 ? 'text-danger' : '') }} text-right\">{{'&pound;' . number_format($item['net']/100, 2) }}</td>\n+                        <td>{{ date('d/m/Y', strtotime($item['Order Date'])) }}</td>\n+                        <td>{{ date('d/m/Y', strtotime($item['Notification Date'])) }}</td>","path":"resources/views/settlements/settlement_report.blade.php","position":41,"original_position":41,"commit_id":"63494ba9d9c1f1a4e1fe505a778c5fdb17895705","original_commit_id":"63494ba9d9c1f1a4e1fe505a778c5fdb17895705","user":{"login":"srleach","id":13541397,"avatar_url":"https://avatars.githubusercontent.com/u/13541397?v=3","gravatar_id":"","url":"https://api.github.com/users/srleach","html_url":"https://github.com/srleach","followers_url":"https://api.github.com/users/srleach/followers","following_url":"https://api.github.com/users/srleach/following{/other_user}","gists_url":"https://api.github.com/users/srleach/gists{/gist_id}","starred_url":"https://api.github.com/users/srleach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srleach/subscriptions","organizations_url":"https://api.github.com/users/srleach/orgs","repos_url":"https://api.github.com/users/srleach/repos","events_url":"https://api.github.com/users/srleach/events{/privacy}","received_events_url":"https://api.github.com/users/srleach/received_events","type":"User","site_admin":false},"body":"Why have we changed the standard here?","created_at":"2016-10-03T08:23:27Z","updated_at":"2016-10-03T08:23:58Z","html_url":"https://github.com/PayBreak/basket/pull/184#discussion_r81508096","pull_request_url":"https://api.github.com/repos/PayBreak/basket/pulls/184","_links":{"self":{"href":"https://api.github.com/repos/PayBreak/basket/pulls/comments/81508096"},"html":{"href":"https://github.com/PayBreak/basket/pull/184#discussion_r81508096"},"pull_request":{"href":"https://api.github.com/repos/PayBreak/basket/pulls/184"}}},"pull_request":{"url":"https://api.github.com/repos/PayBreak/basket/pulls/184","id":87349226,"html_url":"https://github.com/PayBreak/basket/pull/184","diff_url":"https://github.com/PayBreak/basket/pull/184.diff","patch_url":"https://github.com/PayBreak/basket/pull/184.patch","issue_url":"https://api.github.com/repos/PayBreak/basket/issues/184","number":184,"state":"open","locked":false,"title":"Settlement report refactor","user":{"login":"00eadeyemi","id":16000696,"avatar_url":"https://avatars.githubusercontent.com/u/16000696?v=3","gravatar_id":"","url":"https://api.github.com/users/00eadeyemi","html_url":"https://github.com/00eadeyemi","followers_url":"https://api.github.com/users/00eadeyemi/followers","following_url":"https://api.github.com/users/00eadeyemi/following{/other_user}","gists_url":"https://api.github.com/users/00eadeyemi/gists{/gist_id}","starred_url":"https://api.github.com/users/00eadeyemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/00eadeyemi/subscriptions","organizations_url":"https://api.github.com/users/00eadeyemi/orgs","repos_url":"https://api.github.com/users/00eadeyemi/repos","events_url":"https://api.github.com/users/00eadeyemi/events{/privacy}","received_events_url":"https://api.github.com/users/00eadeyemi/received_events","type":"User","site_admin":false},"body":"### Features \r\n\r\n- Refactoring out aggregate settlement reports. \r\n\r\n[Delivers #130356905](https://www.pivotaltracker.com/story/show/)","created_at":"2016-09-29T16:35:13Z","updated_at":"2016-10-03T08:23:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64afe19990f6e60cbe64cf0f79e491771f05239a","assignee":{"login":"srleach","id":13541397,"avatar_url":"https://avatars.githubusercontent.com/u/13541397?v=3","gravatar_id":"","url":"https://api.github.com/users/srleach","html_url":"https://github.com/srleach","followers_url":"https://api.github.com/users/srleach/followers","following_url":"https://api.github.com/users/srleach/following{/other_user}","gists_url":"https://api.github.com/users/srleach/gists{/gist_id}","starred_url":"https://api.github.com/users/srleach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srleach/subscriptions","organizations_url":"https://api.github.com/users/srleach/orgs","repos_url":"https://api.github.com/users/srleach/repos","events_url":"https://api.github.com/users/srleach/events{/privacy}","received_events_url":"https://api.github.com/users/srleach/received_events","type":"User","site_admin":false},"assignees":[{"login":"srleach","id":13541397,"avatar_url":"https://avatars.githubusercontent.com/u/13541397?v=3","gravatar_id":"","url":"https://api.github.com/users/srleach","html_url":"https://github.com/srleach","followers_url":"https://api.github.com/users/srleach/followers","following_url":"https://api.github.com/users/srleach/following{/other_user}","gists_url":"https://api.github.com/users/srleach/gists{/gist_id}","starred_url":"https://api.github.com/users/srleach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srleach/subscriptions","organizations_url":"https://api.github.com/users/srleach/orgs","repos_url":"https://api.github.com/users/srleach/repos","events_url":"https://api.github.com/users/srleach/events{/privacy}","received_events_url":"https://api.github.com/users/srleach/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PayBreak/basket/pulls/184/commits","review_comments_url":"https://api.github.com/repos/PayBreak/basket/pulls/184/comments","review_comment_url":"https://api.github.com/repos/PayBreak/basket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PayBreak/basket/issues/184/comments","statuses_url":"https://api.github.com/repos/PayBreak/basket/statuses/63494ba9d9c1f1a4e1fe505a778c5fdb17895705","head":{"label":"PayBreak:settlement-report-refactor","ref":"settlement-report-refactor","sha":"63494ba9d9c1f1a4e1fe505a778c5fdb17895705","user":{"login":"PayBreak","id":6369084,"avatar_url":"https://avatars.githubusercontent.com/u/6369084?v=3","gravatar_id":"","url":"https://api.github.com/users/PayBreak","html_url":"https://github.com/PayBreak","followers_url":"https://api.github.com/users/PayBreak/followers","following_url":"https://api.github.com/users/PayBreak/following{/other_user}","gists_url":"https://api.github.com/users/PayBreak/gists{/gist_id}","starred_url":"https://api.github.com/users/PayBreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PayBreak/subscriptions","organizations_url":"https://api.github.com/users/PayBreak/orgs","repos_url":"https://api.github.com/users/PayBreak/repos","events_url":"https://api.github.com/users/PayBreak/events{/privacy}","received_events_url":"https://api.github.com/users/PayBreak/received_events","type":"Organization","site_admin":false},"repo":{"id":38302322,"name":"basket","full_name":"PayBreak/basket","owner":{"login":"PayBreak","id":6369084,"avatar_url":"https://avatars.githubusercontent.com/u/6369084?v=3","gravatar_id":"","url":"https://api.github.com/users/PayBreak","html_url":"https://github.com/PayBreak","followers_url":"https://api.github.com/users/PayBreak/followers","following_url":"https://api.github.com/users/PayBreak/following{/other_user}","gists_url":"https://api.github.com/users/PayBreak/gists{/gist_id}","starred_url":"https://api.github.com/users/PayBreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PayBreak/subscriptions","organizations_url":"https://api.github.com/users/PayBreak/orgs","repos_url":"https://api.github.com/users/PayBreak/repos","events_url":"https://api.github.com/users/PayBreak/events{/privacy}","received_events_url":"https://api.github.com/users/PayBreak/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PayBreak/basket","description":"Basket System","fork":false,"url":"https://api.github.com/repos/PayBreak/basket","forks_url":"https://api.github.com/repos/PayBreak/basket/forks","keys_url":"https://api.github.com/repos/PayBreak/basket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PayBreak/basket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PayBreak/basket/teams","hooks_url":"https://api.github.com/repos/PayBreak/basket/hooks","issue_events_url":"https://api.github.com/repos/PayBreak/basket/issues/events{/number}","events_url":"https://api.github.com/repos/PayBreak/basket/events","assignees_url":"https://api.github.com/repos/PayBreak/basket/assignees{/user}","branches_url":"https://api.github.com/repos/PayBreak/basket/branches{/branch}","tags_url":"https://api.github.com/repos/PayBreak/basket/tags","blobs_url":"https://api.github.com/repos/PayBreak/basket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PayBreak/basket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PayBreak/basket/git/refs{/sha}","trees_url":"https://api.github.com/repos/PayBreak/basket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PayBreak/basket/statuses/{sha}","languages_url":"https://api.github.com/repos/PayBreak/basket/languages","stargazers_url":"https://api.github.com/repos/PayBreak/basket/stargazers","contributors_url":"https://api.github.com/repos/PayBreak/basket/contributors","subscribers_url":"https://api.github.com/repos/PayBreak/basket/subscribers","subscription_url":"https://api.github.com/repos/PayBreak/basket/subscription","commits_url":"https://api.github.com/repos/PayBreak/basket/commits{/sha}","git_commits_url":"https://api.github.com/repos/PayBreak/basket/git/commits{/sha}","comments_url":"https://api.github.com/repos/PayBreak/basket/comments{/number}","issue_comment_url":"https://api.github.com/repos/PayBreak/basket/issues/comments{/number}","contents_url":"https://api.github.com/repos/PayBreak/basket/contents/{+path}","compare_url":"https://api.github.com/repos/PayBreak/basket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PayBreak/basket/merges","archive_url":"https://api.github.com/repos/PayBreak/basket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PayBreak/basket/downloads","issues_url":"https://api.github.com/repos/PayBreak/basket/issues{/number}","pulls_url":"https://api.github.com/repos/PayBreak/basket/pulls{/number}","milestones_url":"https://api.github.com/repos/PayBreak/basket/milestones{/number}","notifications_url":"https://api.github.com/repos/PayBreak/basket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PayBreak/basket/labels{/name}","releases_url":"https://api.github.com/repos/PayBreak/basket/releases{/id}","deployments_url":"https://api.github.com/repos/PayBreak/basket/deployments","created_at":"2015-06-30T10:12:55Z","updated_at":"2016-01-21T08:36:48Z","pushed_at":"2016-09-30T15:05:38Z","git_url":"git://github.com/PayBreak/basket.git","ssh_url":"git@github.com:PayBreak/basket.git","clone_url":"https://github.com/PayBreak/basket.git","svn_url":"https://github.com/PayBreak/basket","homepage":null,"size":6492,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"PayBreak:develop","ref":"develop","sha":"1200c076597562668c8559b3f3a1eafd09dee266","user":{"login":"PayBreak","id":6369084,"avatar_url":"https://avatars.githubusercontent.com/u/6369084?v=3","gravatar_id":"","url":"https://api.github.com/users/PayBreak","html_url":"https://github.com/PayBreak","followers_url":"https://api.github.com/users/PayBreak/followers","following_url":"https://api.github.com/users/PayBreak/following{/other_user}","gists_url":"https://api.github.com/users/PayBreak/gists{/gist_id}","starred_url":"https://api.github.com/users/PayBreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PayBreak/subscriptions","organizations_url":"https://api.github.com/users/PayBreak/orgs","repos_url":"https://api.github.com/users/PayBreak/repos","events_url":"https://api.github.com/users/PayBreak/events{/privacy}","received_events_url":"https://api.github.com/users/PayBreak/received_events","type":"Organization","site_admin":false},"repo":{"id":38302322,"name":"basket","full_name":"PayBreak/basket","owner":{"login":"PayBreak","id":6369084,"avatar_url":"https://avatars.githubusercontent.com/u/6369084?v=3","gravatar_id":"","url":"https://api.github.com/users/PayBreak","html_url":"https://github.com/PayBreak","followers_url":"https://api.github.com/users/PayBreak/followers","following_url":"https://api.github.com/users/PayBreak/following{/other_user}","gists_url":"https://api.github.com/users/PayBreak/gists{/gist_id}","starred_url":"https://api.github.com/users/PayBreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PayBreak/subscriptions","organizations_url":"https://api.github.com/users/PayBreak/orgs","repos_url":"https://api.github.com/users/PayBreak/repos","events_url":"https://api.github.com/users/PayBreak/events{/privacy}","received_events_url":"https://api.github.com/users/PayBreak/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PayBreak/basket","description":"Basket System","fork":false,"url":"https://api.github.com/repos/PayBreak/basket","forks_url":"https://api.github.com/repos/PayBreak/basket/forks","keys_url":"https://api.github.com/repos/PayBreak/basket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PayBreak/basket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PayBreak/basket/teams","hooks_url":"https://api.github.com/repos/PayBreak/basket/hooks","issue_events_url":"https://api.github.com/repos/PayBreak/basket/issues/events{/number}","events_url":"https://api.github.com/repos/PayBreak/basket/events","assignees_url":"https://api.github.com/repos/PayBreak/basket/assignees{/user}","branches_url":"https://api.github.com/repos/PayBreak/basket/branches{/branch}","tags_url":"https://api.github.com/repos/PayBreak/basket/tags","blobs_url":"https://api.github.com/repos/PayBreak/basket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PayBreak/basket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PayBreak/basket/git/refs{/sha}","trees_url":"https://api.github.com/repos/PayBreak/basket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PayBreak/basket/statuses/{sha}","languages_url":"https://api.github.com/repos/PayBreak/basket/languages","stargazers_url":"https://api.github.com/repos/PayBreak/basket/stargazers","contributors_url":"https://api.github.com/repos/PayBreak/basket/contributors","subscribers_url":"https://api.github.com/repos/PayBreak/basket/subscribers","subscription_url":"https://api.github.com/repos/PayBreak/basket/subscription","commits_url":"https://api.github.com/repos/PayBreak/basket/commits{/sha}","git_commits_url":"https://api.github.com/repos/PayBreak/basket/git/commits{/sha}","comments_url":"https://api.github.com/repos/PayBreak/basket/comments{/number}","issue_comment_url":"https://api.github.com/repos/PayBreak/basket/issues/comments{/number}","contents_url":"https://api.github.com/repos/PayBreak/basket/contents/{+path}","compare_url":"https://api.github.com/repos/PayBreak/basket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PayBreak/basket/merges","archive_url":"https://api.github.com/repos/PayBreak/basket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PayBreak/basket/downloads","issues_url":"https://api.github.com/repos/PayBreak/basket/issues{/number}","pulls_url":"https://api.github.com/repos/PayBreak/basket/pulls{/number}","milestones_url":"https://api.github.com/repos/PayBreak/basket/milestones{/number}","notifications_url":"https://api.github.com/repos/PayBreak/basket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PayBreak/basket/labels{/name}","releases_url":"https://api.github.com/repos/PayBreak/basket/releases{/id}","deployments_url":"https://api.github.com/repos/PayBreak/basket/deployments","created_at":"2015-06-30T10:12:55Z","updated_at":"2016-01-21T08:36:48Z","pushed_at":"2016-09-30T15:05:38Z","git_url":"git://github.com/PayBreak/basket.git","ssh_url":"git@github.com:PayBreak/basket.git","clone_url":"https://github.com/PayBreak/basket.git","svn_url":"https://github.com/PayBreak/basket","homepage":null,"size":6492,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PayBreak/basket/pulls/184"},"html":{"href":"https://github.com/PayBreak/basket/pull/184"},"issue":{"href":"https://api.github.com/repos/PayBreak/basket/issues/184"},"comments":{"href":"https://api.github.com/repos/PayBreak/basket/issues/184/comments"},"review_comments":{"href":"https://api.github.com/repos/PayBreak/basket/pulls/184/comments"},"review_comment":{"href":"https://api.github.com/repos/PayBreak/basket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PayBreak/basket/pulls/184/commits"},"statuses":{"href":"https://api.github.com/repos/PayBreak/basket/statuses/63494ba9d9c1f1a4e1fe505a778c5fdb17895705"}}}}
{"actor":{"display_login":"srleach"}}