@@ -59,17 +59,17 @@ discard block |
||
59 | 59 | $new_promotion = $this->promotion->select('code', 'type', 'id')->get(); |
60 | 60 | |
61 | 61 | return\ DataTables::of($new_promotion) |
62 | - ->addColumn('checkbox', function ($model) { |
|
62 | + ->addColumn('checkbox', function($model) { |
|
63 | 63 | return "<input type='checkbox' class='promotion_checkbox' |
64 | 64 | value=".$model->id.' name=select[] id=check>'; |
65 | 65 | }) |
66 | - ->addColumn('code', function ($model) { |
|
66 | + ->addColumn('code', function($model) { |
|
67 | 67 | return ucfirst($model->code); |
68 | 68 | }) |
69 | - ->addColumn('type', function ($model) { |
|
69 | + ->addColumn('type', function($model) { |
|
70 | 70 | return $this->type->where('id', $model->type)->first()->name; |
71 | 71 | }) |
72 | - ->addColumn('products', function ($model) { |
|
72 | + ->addColumn('products', function($model) { |
|
73 | 73 | $selected = $this->promoRelation->select('product_id') |
74 | 74 | ->where('promotion_id', $model->id)->get(); |
75 | 75 | $result = []; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | return 'None'; |
83 | 83 | } |
84 | 84 | }) |
85 | - ->addColumn('action', function ($model) { |
|
85 | + ->addColumn('action', function($model) { |
|
86 | 86 | return '<a href='.url('promotions/'.$model->id.'/edit') |
87 | 87 | ." class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' |
88 | 88 | style='color:white;'> </i> Edit</a>"; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | ." class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' |
88 | 88 | style='color:white;'> </i> Edit</a>"; |
89 | 89 | }) |
90 | - ->rawColumns(['checkbox', 'code', 'products', 'action']) |
|
90 | + ->rawColumns(['checkbox', 'code', 'products', 'action']) |
|
91 | 91 | |
92 | 92 | ->make(true); |
93 | 93 | } |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | 'price' => $value, |
284 | 284 | 'conditions' => $coupon, |
285 | 285 | |
286 | - // new item price, price can also be a string format like so: '98.67' |
|
286 | + // new item price, price can also be a string format like so: '98.67' |
|
287 | 287 | ]); |
288 | 288 | \Session::put('usage', 1); |
289 | 289 | \Session::put('code', $promo->code); |
@@ -70,37 +70,37 @@ discard block |
||
70 | 70 | public function getTax() |
71 | 71 | { |
72 | 72 | return \DataTables::of($this->tax->select('id', 'tax_classes_id', 'name', 'country', 'state', 'rate')->get()) |
73 | - ->addColumn('checkbox', function ($model) { |
|
73 | + ->addColumn('checkbox', function($model) { |
|
74 | 74 | return "<input type='checkbox' class='tax_checkbox' |
75 | 75 | value=".$model->id.' name=select[] id=check>'; |
76 | 76 | }) |
77 | - ->addColumn('tax_classes_id', function ($model) { |
|
77 | + ->addColumn('tax_classes_id', function($model) { |
|
78 | 78 | return ucfirst($this->tax_class->where('id', $model->tax_classes_id)->first()->name); |
79 | 79 | }) |
80 | - ->addColumn('name', function ($model) { |
|
80 | + ->addColumn('name', function($model) { |
|
81 | 81 | return ucfirst($model->name); |
82 | 82 | }) |
83 | 83 | |
84 | 84 | // ->showColumns('name', 'level') |
85 | - ->addColumn('country', function ($model) { |
|
85 | + ->addColumn('country', function($model) { |
|
86 | 86 | if ($this->country->where('country_code_char2', $model->country)->first()) { |
87 | 87 | return ucfirst($this->country |
88 | 88 | ->where('country_code_char2', $model->country)->first()->country_name); |
89 | 89 | } |
90 | 90 | }) |
91 | - ->addColumn('state', function ($model) { |
|
91 | + ->addColumn('state', function($model) { |
|
92 | 92 | if ($this->state->where('state_subdivision_code', $model->state)->first()) { |
93 | 93 | return $this->state |
94 | 94 | ->where('state_subdivision_code', $model->state) |
95 | 95 | ->first()->state_subdivision_name; |
96 | 96 | } |
97 | 97 | }) |
98 | - ->addColumn('rate', function ($model) { |
|
98 | + ->addColumn('rate', function($model) { |
|
99 | 99 | return $model->rate; |
100 | 100 | }) |
101 | 101 | |
102 | 102 | // ->showColumns('rate') |
103 | - ->addColumn('action', function ($model) { |
|
103 | + ->addColumn('action', function($model) { |
|
104 | 104 | return '<a href='.url('tax/'.$model->id.'/edit'). |
105 | 105 | " class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' |
106 | 106 | style='color:white;'> </i> Edit</a>"; |
@@ -112,26 +112,26 @@ discard block |
||
112 | 112 | public function getTaxTable() |
113 | 113 | { |
114 | 114 | return \DataTables::of(TaxByState::select('id', 'state', 'c_gst', 's_gst', 'i_gst', 'ut_gst')->get()) |
115 | - ->addColumn('id', function ($model) { |
|
115 | + ->addColumn('id', function($model) { |
|
116 | 116 | return $model->id; |
117 | 117 | }) |
118 | 118 | |
119 | - ->addColumn('state', function ($model) { |
|
119 | + ->addColumn('state', function($model) { |
|
120 | 120 | return ucfirst($model->state); |
121 | 121 | }) |
122 | - ->addColumn('c_gst', function ($model) { |
|
122 | + ->addColumn('c_gst', function($model) { |
|
123 | 123 | return ucfirst($model->c_gst); |
124 | 124 | }) |
125 | - ->addColumn('s_gst', function ($model) { |
|
125 | + ->addColumn('s_gst', function($model) { |
|
126 | 126 | return ucfirst($model->s_gst); |
127 | 127 | }) |
128 | - ->addColumn('i_gst', function ($model) { |
|
128 | + ->addColumn('i_gst', function($model) { |
|
129 | 129 | return ucfirst($model->i_gst); |
130 | 130 | }) |
131 | - ->addColumn('ut_gst', function ($model) { |
|
131 | + ->addColumn('ut_gst', function($model) { |
|
132 | 132 | return ucfirst($model->ut_gst); |
133 | 133 | }) |
134 | - ->rawColumns(['id', 'state', 'c_gst', 's_gst', 'i_gst', 'ut_gst']) |
|
134 | + ->rawColumns(['id', 'state', 'c_gst', 's_gst', 'i_gst', 'ut_gst']) |
|
135 | 135 | ->make(true); |
136 | 136 | } |
137 | 137 |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | ->addColumn('country', function ($model) { |
86 | 86 | if ($this->country->where('country_code_char2', $model->country)->first()) { |
87 | 87 | return ucfirst($this->country |
88 | - ->where('country_code_char2', $model->country)->first()->country_name); |
|
88 | + ->where('country_code_char2', $model->country)->first()->country_name); |
|
89 | 89 | } |
90 | 90 | }) |
91 | 91 | ->addColumn('state', function ($model) { |
@@ -112,27 +112,27 @@ discard block |
||
112 | 112 | public function getTaxTable() |
113 | 113 | { |
114 | 114 | return \DataTables::of(TaxByState::select('id', 'state', 'c_gst', 's_gst', 'i_gst', 'ut_gst')->get()) |
115 | - ->addColumn('id', function ($model) { |
|
116 | - return $model->id; |
|
117 | - }) |
|
118 | - |
|
119 | - ->addColumn('state', function ($model) { |
|
120 | - return ucfirst($model->state); |
|
121 | - }) |
|
122 | - ->addColumn('c_gst', function ($model) { |
|
123 | - return ucfirst($model->c_gst); |
|
124 | - }) |
|
125 | - ->addColumn('s_gst', function ($model) { |
|
126 | - return ucfirst($model->s_gst); |
|
127 | - }) |
|
128 | - ->addColumn('i_gst', function ($model) { |
|
129 | - return ucfirst($model->i_gst); |
|
130 | - }) |
|
131 | - ->addColumn('ut_gst', function ($model) { |
|
132 | - return ucfirst($model->ut_gst); |
|
133 | - }) |
|
134 | - ->rawColumns(['id', 'state', 'c_gst', 's_gst', 'i_gst', 'ut_gst']) |
|
135 | - ->make(true); |
|
115 | + ->addColumn('id', function ($model) { |
|
116 | + return $model->id; |
|
117 | + }) |
|
118 | + |
|
119 | + ->addColumn('state', function ($model) { |
|
120 | + return ucfirst($model->state); |
|
121 | + }) |
|
122 | + ->addColumn('c_gst', function ($model) { |
|
123 | + return ucfirst($model->c_gst); |
|
124 | + }) |
|
125 | + ->addColumn('s_gst', function ($model) { |
|
126 | + return ucfirst($model->s_gst); |
|
127 | + }) |
|
128 | + ->addColumn('i_gst', function ($model) { |
|
129 | + return ucfirst($model->i_gst); |
|
130 | + }) |
|
131 | + ->addColumn('ut_gst', function ($model) { |
|
132 | + return ucfirst($model->ut_gst); |
|
133 | + }) |
|
134 | + ->rawColumns(['id', 'state', 'c_gst', 's_gst', 'i_gst', 'ut_gst']) |
|
135 | + ->make(true); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | /** |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | ->withInput(); |
369 | 369 | } |
370 | 370 | $this->tax_class->fill($request->except('tax-name', 'level', |
371 | - 'active', 'country', 'country1', 'rate'))->save(); |
|
371 | + 'active', 'country', 'country1', 'rate'))->save(); |
|
372 | 372 | $country = ($request->input('rate')) ? $request->input('country') : $request->input('country1'); |
373 | 373 | |
374 | 374 | $this->tax->fill($request->except('tax-name', 'name', 'country'))->save(); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | //dd($this->invoice->get()); |
48 | 48 | return \Datatable::collection($this->subscription->get()) |
49 | 49 | |
50 | - ->addColumn('user_id', function ($model) { |
|
50 | + ->addColumn('user_id', function($model) { |
|
51 | 51 | $user = $model->user()->first(); |
52 | 52 | $first = $user->first_name; |
53 | 53 | $last = $user->last_name; |
@@ -55,18 +55,18 @@ discard block |
||
55 | 55 | |
56 | 56 | return '<a href='.url('clients/'.$id).'>'.ucfirst($first).' '.ucfirst($last).'</a>'; |
57 | 57 | }) |
58 | - ->addColumn('plan_id', function ($model) { |
|
58 | + ->addColumn('plan_id', function($model) { |
|
59 | 59 | $name = $this->plan->where('id', $model->plan_id)->first()->name; |
60 | 60 | |
61 | 61 | return $name; |
62 | 62 | }) |
63 | - ->addColumn('order_id', function ($model) { |
|
63 | + ->addColumn('order_id', function($model) { |
|
64 | 64 | $name = $this->order->where('id', $model->order_id)->first()->id; |
65 | 65 | |
66 | 66 | return $name; |
67 | 67 | }) |
68 | 68 | ->showColumns('ends_at') |
69 | - ->addColumn('action', function ($model) { |
|
69 | + ->addColumn('action', function($model) { |
|
70 | 70 | return '<a href='.url('subscriptions/'.$model->id)." |
71 | 71 | class='btn btn-sm btn-primary'>View</a>"; |
72 | 72 | }) |
@@ -48,11 +48,11 @@ discard block |
||
48 | 48 | { |
49 | 49 | return \Datatable::collection($this->bundle->select('id', 'name', |
50 | 50 | 'valid_from', 'valid_till', 'uses', 'maximum_uses')->get()) |
51 | - ->addColumn('#', function ($model) { |
|
51 | + ->addColumn('#', function($model) { |
|
52 | 52 | return "<input type='checkbox' value=".$model->id.' name=select[] id=check>'; |
53 | 53 | }) |
54 | 54 | ->showColumns('name', 'valid_from', 'valid_till', 'uses', 'maximum_uses') |
55 | - ->addColumn('item', function ($model) { |
|
55 | + ->addColumn('item', function($model) { |
|
56 | 56 | $name = $this->relation->where('bundle_id', $model->id)->pluck('product_id'); |
57 | 57 | //dd($name); |
58 | 58 | $result = []; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | //dd($result); |
63 | 63 | return implode(',', $result); |
64 | 64 | }) |
65 | - ->addColumn('action', function ($model) { |
|
65 | + ->addColumn('action', function($model) { |
|
66 | 66 | return '<a href='.url('bundles/'.$model->id.'/edit'). |
67 | 67 | " class='btn btn-sm btn-primary'>Edit</a>"; |
68 | 68 | }) |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | public function getBundles() |
48 | 48 | { |
49 | 49 | return \Datatable::collection($this->bundle->select('id', 'name', |
50 | - 'valid_from', 'valid_till', 'uses', 'maximum_uses')->get()) |
|
50 | + 'valid_from', 'valid_till', 'uses', 'maximum_uses')->get()) |
|
51 | 51 | ->addColumn('#', function ($model) { |
52 | 52 | return "<input type='checkbox' value=".$model->id.' name=select[] id=check>'; |
53 | 53 | }) |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | return view('themes.default1.product.bundle.edit', |
151 | - compact('products', 'bundle', 'relation', 'till', 'from')); |
|
151 | + compact('products', 'bundle', 'relation', 'till', 'from')); |
|
152 | 152 | } catch (\Exception $e) { |
153 | 153 | return redirect()->back()->with('fails', $e->getMessage()); |
154 | 154 | } catch (\InvalidArgumentException $e) { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $from = null; |
158 | 158 | |
159 | 159 | return view('themes.default1.product.bundle.edit', |
160 | - compact('products', 'bundle', 'relation', 'till', 'from')); |
|
160 | + compact('products', 'bundle', 'relation', 'till', 'from')); |
|
161 | 161 | } |
162 | 162 | } |
163 | 163 | } |
@@ -35,14 +35,14 @@ |
||
35 | 35 | public function getServices() |
36 | 36 | { |
37 | 37 | return \Datatable::collection($this->service->get()) |
38 | - ->addColumn('#', function ($model) { |
|
38 | + ->addColumn('#', function($model) { |
|
39 | 39 | return "<input type='checkbox' value=".$model->id.' name=select[] id=check>'; |
40 | 40 | }) |
41 | 41 | ->showColumns('name') |
42 | - ->addColumn('plan', function ($model) { |
|
42 | + ->addColumn('plan', function($model) { |
|
43 | 43 | //return $this->product->plan()->name; |
44 | 44 | }) |
45 | - ->addColumn('action', function ($model) { |
|
45 | + ->addColumn('action', function($model) { |
|
46 | 46 | return '<a href='.url('products/'.$model->id.'/edit') |
47 | 47 | ." class='btn btn-sm btn-primary'>Edit</a>"; |
48 | 48 | }) |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $dbpassword = $this->ask('Enter your database password (blank if not entered)', false); |
49 | 49 | $port = $this->ask('Enter your sql port (blank if not entered)', false); |
50 | 50 | $array = ['DB_TYPE' => $default, 'DB_HOST' => $host, |
51 | - 'DB_DATABASE' => $database, 'DB_USERNAME' => $dbusername, 'DB_PASSWORD' => $dbpassword, ]; |
|
51 | + 'DB_DATABASE' => $database, 'DB_USERNAME' => $dbusername, 'DB_PASSWORD' => $dbpassword, ]; |
|
52 | 52 | $this->updateDBEnv($array); |
53 | 53 | $this->call('key:generate'); |
54 | 54 | $this->call('migrate'); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $state_code = $user_state->state_code; |
33 | 33 | if ($state_code == $origin_state) {//If user and origin state are same |
34 | 34 | $taxClassId = TaxClass::where('name', 'Intra State GST') |
35 | - ->pluck('id')->toArray(); //Get the class Id of state |
|
35 | + ->pluck('id')->toArray(); //Get the class Id of state |
|
36 | 36 | if ($taxClassId) { |
37 | 37 | $taxes = $cartController->getTaxByPriority($taxClassId); |
38 | 38 | $value = $cartController->getValueForSameState($productid, $c_gst, $s_gst, $taxClassId, $taxes); |
@@ -28,7 +28,8 @@ discard block |
||
28 | 28 | $i_gst = $user_state->i_gst; |
29 | 29 | $ut_gst = $user_state->ut_gst; |
30 | 30 | $state_code = $user_state->state_code; |
31 | - if ($state_code == $origin_state) {//If user and origin state are same |
|
31 | + if ($state_code == $origin_state) { |
|
32 | +//If user and origin state are same |
|
32 | 33 | $taxClassId = TaxClass::where('name', 'Intra State GST') |
33 | 34 | ->pluck('id')->toArray(); //Get the class Id of state |
34 | 35 | if ($taxClassId) { |
@@ -37,7 +38,8 @@ discard block |
||
37 | 38 | } else { |
38 | 39 | $taxes = [0]; |
39 | 40 | } |
40 | - } elseif ($state_code != $origin_state && $ut_gst == 'NULL') {//If user is from other state |
|
41 | + } elseif ($state_code != $origin_state && $ut_gst == 'NULL') { |
|
42 | +//If user is from other state |
|
41 | 43 | $taxClassId = TaxClass::where('name', 'Inter State GST') |
42 | 44 | ->pluck('id')->toArray(); //Get the class Id of state |
43 | 45 | if ($taxClassId) { |
@@ -46,7 +48,8 @@ discard block |
||
46 | 48 | } else { |
47 | 49 | $taxes = [0]; |
48 | 50 | } |
49 | - } elseif ($state_code != $origin_state && $ut_gst != 'NULL') {//if user from Union Territory |
|
51 | + } elseif ($state_code != $origin_state && $ut_gst != 'NULL') { |
|
52 | +//if user from Union Territory |
|
50 | 53 | $taxClassId = TaxClass::where('name', 'Union Territory GST') |
51 | 54 | ->pluck('id')->toArray(); //Get the class Id of state |
52 | 55 | if ($taxClassId) { |
@@ -71,13 +74,15 @@ discard block |
||
71 | 74 | ->pluck('tax_classes_id')->first(); |
72 | 75 | $value = ''; |
73 | 76 | $rate = ''; |
74 | - if ($taxClassId) { //if state equals the user State |
|
77 | + if ($taxClassId) { |
|
78 | +//if state equals the user State |
|
75 | 79 | $taxes = $cartController->getTaxByPriority($taxClassId); |
76 | 80 | |
77 | 81 | // $taxes = $this->cartController::getTaxByPriority($taxClassId); |
78 | 82 | $value = $cartController->getValueForOthers($productid, $taxClassId, $taxes); |
79 | 83 | $rate = $value; |
80 | - } else {//if Tax is selected for Any State Any Country |
|
84 | + } else { |
|
85 | +//if Tax is selected for Any State Any Country |
|
81 | 86 | $taxClassId = Tax::where('country', '')->where('state', 'Any State')->pluck('tax_classes_id')->first(); |
82 | 87 | if ($taxClassId) { |
83 | 88 | $taxes = $cartController->getTaxByPriority($taxClassId); |
@@ -228,7 +233,8 @@ discard block |
||
228 | 233 | { |
229 | 234 | $code = ''; |
230 | 235 | $codevalue = ''; |
231 | - if (\Session::has('code')) {//If coupon code is applied get it here from Session |
|
236 | + if (\Session::has('code')) { |
|
237 | +//If coupon code is applied get it here from Session |
|
232 | 238 | $code = \Session::get('code'); |
233 | 239 | $codevalue = \Session::get('codevalue'); |
234 | 240 | } |
@@ -35,20 +35,20 @@ |
||
35 | 35 | $social = $this->social->get(); |
36 | 36 | |
37 | 37 | return \DataTables::of($social) |
38 | - ->addColumn('#', function ($model) { |
|
38 | + ->addColumn('#', function($model) { |
|
39 | 39 | return "<input type='checkbox' value=".$model->id.' name=select[] id=check>'; |
40 | 40 | }) |
41 | - ->addColumn('name', function ($model) { |
|
41 | + ->addColumn('name', function($model) { |
|
42 | 42 | return $model->name; |
43 | 43 | }) |
44 | - ->addColumn('class', function ($model) { |
|
44 | + ->addColumn('class', function($model) { |
|
45 | 45 | return $model->class; |
46 | 46 | }) |
47 | - ->addColumn('link', function ($model) { |
|
47 | + ->addColumn('link', function($model) { |
|
48 | 48 | return $model->link; |
49 | 49 | }) |
50 | 50 | // ->showColumns('name', 'class', 'link') |
51 | - ->addColumn('action', function ($model) { |
|
51 | + ->addColumn('action', function($model) { |
|
52 | 52 | return '<a href='.url('social-media/'.$model->id.'/edit') |
53 | 53 | ." class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' |
54 | 54 | style='color:white;'> </i> Edit</a>"; |
@@ -168,9 +168,9 @@ |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | return \DataTables::of($invoices->get()) |
171 | - ->addColumn('number', function ($model) { |
|
172 | - return $model->number; |
|
173 | - }) |
|
171 | + ->addColumn('number', function ($model) { |
|
172 | + return $model->number; |
|
173 | + }) |
|
174 | 174 | ->addColumn('products', function ($model) { |
175 | 175 | $invoice = $this->invoice->find($model->id); |
176 | 176 | $products = $invoice->invoiceItem()->pluck('product_name')->toArray(); |
@@ -36,7 +36,8 @@ |
||
36 | 36 | $productCheck = $orders->product() |
37 | 37 | ->select('github_owner', 'github_repository', 'type') |
38 | 38 | ->where('id', $orders->product)->first(); |
39 | - if ($permissions['downloadPermission'] == 1) { //If the Product has doownlaod permission |
|
39 | + if ($permissions['downloadPermission'] == 1) { |
|
40 | +//If the Product has doownlaod permission |
|
40 | 41 | if (!$productCheck->github_owner == '' && !$productCheck->github_repository == '') { |
41 | 42 | $listUrl = $this->downloadGithubPopup($orders->client, $orders->invoice()->first()->id, $productid); |
42 | 43 | } else { |
@@ -201,27 +201,27 @@ |
||
201 | 201 | } |
202 | 202 | |
203 | 203 | return \DataTables::of($invoices->get()) |
204 | - ->addColumn('number', function ($model) { |
|
204 | + ->addColumn('number', function($model) { |
|
205 | 205 | return $model->number; |
206 | 206 | }) |
207 | - ->addColumn('products', function ($model) { |
|
207 | + ->addColumn('products', function($model) { |
|
208 | 208 | $invoice = $this->invoice->find($model->id); |
209 | 209 | $products = $invoice->invoiceItem()->pluck('product_name')->toArray(); |
210 | 210 | |
211 | 211 | return ucfirst(implode(',', $products)); |
212 | 212 | }) |
213 | - ->addColumn('date', function ($model) { |
|
213 | + ->addColumn('date', function($model) { |
|
214 | 214 | $date = date_create($model->created_at); |
215 | 215 | |
216 | 216 | return date_format($date, 'M j, Y, g:i a'); |
217 | 217 | }) |
218 | - ->addColumn('total', function ($model) { |
|
218 | + ->addColumn('total', function($model) { |
|
219 | 219 | return currency_format($model->grand_total, $code = $model->currency); |
220 | 220 | }) |
221 | - ->addColumn('status', function ($model) { |
|
221 | + ->addColumn('status', function($model) { |
|
222 | 222 | return ucfirst($model->status); |
223 | 223 | }) |
224 | - ->addColumn('action', function ($model) { |
|
224 | + ->addColumn('action', function($model) { |
|
225 | 225 | if (\Auth::user()->role == 'admin') { |
226 | 226 | $url = '/invoices/show?invoiceid='.$model->id; |
227 | 227 | } else { |