@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('product_bundle_relations', function (Blueprint $table) { |
|
| 15 | + Schema::create('product_bundle_relations', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('product_id')->unsigned(); |
| 18 | 18 | $table->foreign('product_id')->references('id')->on('products'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('group_features', function (Blueprint $table) { |
|
| 15 | + Schema::create('group_features', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('group_id')->unsigned(); |
| 18 | 18 | $table->foreign('group_id')->references('id')->on('product_groups'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('widgets', function (Blueprint $table) { |
|
| 15 | + Schema::create('widgets', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('type'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('promotion_types', function (Blueprint $table) { |
|
| 15 | + Schema::create('promotion_types', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->timestamps(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('plans', function (Blueprint $table) { |
|
| 15 | + Schema::create('plans', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('description'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('promo_product_relations', function (Blueprint $table) { |
|
| 15 | + Schema::create('promo_product_relations', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('promotion_id')->unsigned(); |
| 18 | 18 | $table->foreign('promotion_id')->references('id')->on('promotions'); |
@@ -148,7 +148,6 @@ discard block |
||
| 148 | 148 | /** |
| 149 | 149 | * Remove the specified resource from storage. |
| 150 | 150 | * |
| 151 | - * @param int $id |
|
| 152 | 151 | * |
| 153 | 152 | * @return Response |
| 154 | 153 | */ |
@@ -209,6 +208,9 @@ discard block |
||
| 209 | 208 | } |
| 210 | 209 | } |
| 211 | 210 | |
| 211 | + /** |
|
| 212 | + * @param FrontendPage $model |
|
| 213 | + */ |
|
| 212 | 214 | public function Result($search, $model) |
| 213 | 215 | { |
| 214 | 216 | try { |
@@ -31,14 +31,14 @@ |
||
| 31 | 31 | public function GetPages() |
| 32 | 32 | { |
| 33 | 33 | return \Datatable::collection($this->page->get()) |
| 34 | - ->addColumn('#', function ($model) { |
|
| 34 | + ->addColumn('#', function($model) { |
|
| 35 | 35 | return "<input type='checkbox' value=".$model->id.' name=select[] id=check>'; |
| 36 | 36 | }) |
| 37 | 37 | ->showColumns('name', 'url', 'created_at') |
| 38 | - ->addColumn('content', function ($model) { |
|
| 38 | + ->addColumn('content', function($model) { |
|
| 39 | 39 | return str_limit($model->content, 10, '...'); |
| 40 | 40 | }) |
| 41 | - ->addColumn('action', function ($model) { |
|
| 41 | + ->addColumn('action', function($model) { |
|
| 42 | 42 | return '<a href='.url('pages/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>"; |
| 43 | 43 | }) |
| 44 | 44 | ->searchColumns('name', 'content') |
@@ -92,7 +92,6 @@ |
||
| 92 | 92 | /** |
| 93 | 93 | * Remove the specified resource from storage. |
| 94 | 94 | * |
| 95 | - * @param int $id |
|
| 96 | 95 | * |
| 97 | 96 | * @return Response |
| 98 | 97 | */ |
@@ -31,14 +31,14 @@ |
||
| 31 | 31 | public function GetPages() |
| 32 | 32 | { |
| 33 | 33 | return \Datatable::collection($this->page->get()) |
| 34 | - ->addColumn('#', function ($model) { |
|
| 34 | + ->addColumn('#', function($model) { |
|
| 35 | 35 | return "<input type='checkbox' value=".$model->id.' name=select[] id=check>'; |
| 36 | 36 | }) |
| 37 | 37 | ->showColumns('name', 'url', 'created_at') |
| 38 | - ->addColumn('content', function ($model) { |
|
| 38 | + ->addColumn('content', function($model) { |
|
| 39 | 39 | return str_limit($model->content, 10, '...'); |
| 40 | 40 | }) |
| 41 | - ->addColumn('action', function ($model) { |
|
| 41 | + ->addColumn('action', function($model) { |
|
| 42 | 42 | return '<a href='.url('pages/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>"; |
| 43 | 43 | }) |
| 44 | 44 | ->searchColumns('name', 'content') |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use App\Http\Controllers\Controller; |
| 6 | 6 | use App\Model\Licence\LicencedOrganization; |
| 7 | 7 | use App\Organization; |
| 8 | -use Illuminate\Http\Request; |
|
| 9 | 8 | |
| 10 | 9 | class LicenceOrderController extends Controller |
| 11 | 10 | { |
@@ -36,13 +36,13 @@ |
||
| 36 | 36 | public function GetOrders() |
| 37 | 37 | { |
| 38 | 38 | return \Datatable::collection($this->LicencedOrg->get()) |
| 39 | - ->addColumn('organization', function ($model) { |
|
| 39 | + ->addColumn('organization', function($model) { |
|
| 40 | 40 | $org = $this->org->where('id', $model->organization_id)->first(); |
| 41 | 41 | |
| 42 | 42 | return '<a href='.url('organization/'.$org->id).'>'.ucfirst($org->name).'</a>'; |
| 43 | 43 | }) |
| 44 | 44 | ->showColumns('licence_name', 'licence_description', 'number_of_sla', 'price', 'payment_status') |
| 45 | - ->addColumn('action', function ($model) { |
|
| 45 | + ->addColumn('action', function($model) { |
|
| 46 | 46 | return '<a href='.url('licence-orders/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>"; |
| 47 | 47 | }) |
| 48 | 48 | |