This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
128 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
app/database/migrations/2015_03_11_140225_create_distributionListTable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class CreateDistributionListTable extends Migration { | ||
|
||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('distribution_lists', function(Blueprint $table) | ||
{ | ||
$table->increments('id'); | ||
$table->string("distributionList"); | ||
$table->integer("UserID")->unsigned(); | ||
$table->timestamps(); | ||
$table->foreign("UserID")->references("id")->on("users"); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('distribution_lists'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
use LaravelBook\Ardent\Ardent; | ||
class DistributionList extends Ardent { | ||
protected $table = 'distribution_lists'; | ||
public static $rules = array( | ||
'distributionList' => 'required', | ||
'UserID' => 'required' | ||
); | ||
public function Users(){ | ||
return $this->belongsTo('User','UserID','id'); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
app/views/emails/prototypingLab/protolab_requires_order.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@extends('emails.layout') | ||
@section('TopSentence') | ||
Prototyping Lab Action Required!! | ||
@stop | ||
@section('content') | ||
|
||
<h3>Hey there Prototyping Lab!!</h3> | ||
<p>While you were setting things on fire and building potato launchers some items have changed status and now require your attention!! | ||
(For three low low payments of 19.87)</p> | ||
<p>Below is a listing of the items found within the app that require your attention.</p> | ||
<table class="tableGray" width="100%" cellpadding="3px" cellspacing="3px"> | ||
<tr> | ||
<td><b>Order</b></td> | ||
<td><b>Item</b></td> | ||
<td><b>Part Number</b></td> | ||
<td><b>Cost</b></td> | ||
<td><b>Quantity</b></td> | ||
<td><b>Shipping</b></td> | ||
<td><b>Total Cost</b></td> | ||
</tr> | ||
@foreach($items as $item) | ||
<tr> | ||
<td><a href="{{ URL::route('admin.order.manage',$item->OrderID) }}">ORD:{{$item->OrderID}}</a></td> | ||
<td><a href="{{ $item->Link}}">{{$item->Name}}</a></td> | ||
<td>{{ $item->PartNumber }}</td> | ||
<td>${{ number_format($item->Cost,2) }}</td> | ||
<td>{{ $item->Quantity }}</td> | ||
<td>${{ number_format($item->Shipping,2) }}</td> | ||
<td>${{ number_format($item->TotalCost,2) }}</td> | ||
</tr> | ||
@endforeach | ||
</table> | ||
<p>-The Ghost of IPRO Manager Ordering</p> | ||
@stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.