Skip to content

Commit 3016974

Browse files
frontend(hackathon): Add Slack logo
1 parent 5efc7c6 commit 3016974

File tree

5 files changed

+65
-2
lines changed

5 files changed

+65
-2
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
7+
use App\Http\Requests;
8+
use App\Http\Controllers\Controller;
9+
10+
class LobController extends Controller
11+
{
12+
/**
13+
* Return all data to the Lob API dashboard
14+
* @return mixed
15+
*/
16+
public function getPage()
17+
{
18+
return view('api.lob');
19+
}
20+
}

app/Http/routes.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@
115115
'middleware' => ['auth']
116116
]);
117117

118+
Route::get('/api/lob', [
119+
'uses' => 'LobController@getPage',
120+
'as' => 'api.lob',
121+
'middleware' => ['auth']
122+
]);
123+
118124
Route::post('/tweet/new', [
119125
'uses' => 'TwitterController@sendTweet',
120126
'as' => 'tweet.new',

resources/views/api/clockwork.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
</div>
1010

1111
<div class="btn-group btn-group-justified">
12-
<a href="http://github.com/mediaburst/node-clockwork" target="_blank" class="btn btn-primary">
13-
<i class="fa fa-check-square-o"></i> Clockwork Node
12+
<a href="https://github.com/mjerwin/clockwork-sms" target="_blank" class="btn btn-primary">
13+
<i class="fa fa-check-square-o"></i> Clockwork PHP
1414
</a>
1515
<a href="http://www.clockworksms.com/doc/clever-stuff/xml-interface/send-sms/" target="_blank" class="btn btn-primary">
1616
<i class="fa fa-code-fork"></i> XML API

resources/views/api/lob.blade.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@extends('layouts.master')
2+
3+
@section('content')
4+
<div class="main-container">
5+
@include('layouts.partials.alerts')
6+
7+
<div class="page-header">
8+
<h2><i class="fa fa-envelope"></i> Lob API</h2>
9+
</div>
10+
11+
<div class="btn-group btn-group-justified">
12+
<a href="https://lob.com/docs" class="btn btn-primary">
13+
<i class="fa fa-check-square-o"></i> API Documentation
14+
</a>
15+
<a href="https://github.com/lob/lob-node" target="_blank" class="btn btn-primary">
16+
<i class="fa fa-code"></i> Lob Node Docs
17+
</a>
18+
<a href="https://dashboard.lob.com/register" target="_blank" class="btn btn-primary">
19+
<i class="fa fa-gear"></i> Create API Account
20+
</a>
21+
</div>
22+
23+
<h3>Delivery routes in 10007</h3>
24+
25+
<table class="table table-striped table-bordered"><thead><tr><th>Route</th><th># of Residential Addresses</th><th># of Business Addresses</th></tr></thead><tbody><tr><td>B099</td><td>0</td><td>0</td></tr><tr><td>C000</td><td>0</td><td>0</td></tr><tr><td>C001</td><td>455</td><td>38</td></tr><tr><td>C003</td><td>13</td><td>12</td></tr><tr><td>C004</td><td>152</td><td>47</td></tr><tr><td>C005</td><td>0</td><td>34</td></tr><tr><td>C006</td><td>0</td><td>138</td></tr><tr><td>C008</td><td>254</td><td>93</td></tr><tr><td>C009</td><td>454</td><td>48</td></tr><tr><td>C012</td><td>239</td><td>46</td></tr><tr><td>C013</td><td>441</td><td>40</td></tr><tr><td>C014</td><td>0</td><td>23</td></tr><tr><td>C017</td><td>0</td><td>51</td></tr><tr><td>C018</td><td>0</td><td>157</td></tr><tr><td>C019</td><td>356</td><td>54</td></tr><tr><td>C020</td><td>1</td><td>122</td></tr><tr><td>C021</td><td>6</td><td>76</td></tr><tr><td>C022</td><td>400</td><td>62</td></tr><tr><td>C023</td><td>43</td><td>85</td></tr><tr><td>C098</td><td>440</td><td>29</td></tr><tr><td>C099</td><td>18</td><td>97</td></tr></tbody></table>
26+
<br>
27+
</div>
28+
@stop

resources/views/apidashboard.blade.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,15 @@
178178
</div>
179179
</a>
180180
</div>
181+
<div class="col-sm-4">
182+
<a href="/api/bitgo" style="color: #fff">
183+
<div style="background-color: #4d394b" class="panel panel-default">
184+
<div class="panel-body">
185+
<img src="http://i.imgur.com/fbNYOzm.png" height="40"> Slack
186+
</div>
187+
</div>
188+
</a>
189+
</div>
181190
</div>
182191
</div>
183192
@stop

0 commit comments

Comments
 (0)