Added subject to email
This commit is contained in:
parent
ce6478e3ae
commit
cf46a2cf42
@ -39,7 +39,7 @@ class AdminHomeController extends Controller
|
|||||||
return $this->service($o);
|
return $this->service($o);
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect(url('/a/service/',[$o->id]));
|
return redirect(url('/a/service',[$o->id]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setup()
|
public function setup()
|
||||||
|
@ -35,8 +35,21 @@ class OrderRequestApprove extends Mailable
|
|||||||
*/
|
*/
|
||||||
public function build()
|
public function build()
|
||||||
{
|
{
|
||||||
|
switch ($this->service->category)
|
||||||
|
{
|
||||||
|
case 'ADSL': $subject = sprintf('%s: %s',$this->service->category,$this->service->service_adsl->service_address);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'VOIP': $subject = sprintf('%s: %s',$this->service->category,$this->service->service_voip->service_number);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
$subject = 'New Order Request';
|
||||||
|
}
|
||||||
|
|
||||||
return $this
|
return $this
|
||||||
->markdown('email.admin.order.approve')
|
->markdown('email.admin.order.approve')
|
||||||
|
->subject($subject)
|
||||||
->with(['site'=>config('SITE_SETUP')]);
|
->with(['site'=>config('SITE_SETUP')]);
|
||||||
}
|
}
|
||||||
}
|
}
|
6
composer.lock
generated
6
composer.lock
generated
@ -2463,11 +2463,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "leenooks/laravel",
|
"name": "leenooks/laravel",
|
||||||
"version": "0.2.2",
|
"version": "0.2.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://dev.leenooks.net/leenooks/laravel",
|
"url": "https://dev.leenooks.net/leenooks/laravel",
|
||||||
"reference": "3af5ae6466776aaae574dc184498e29e74e02c77"
|
"reference": "8aa21663d54567e756c841ad1f6b81a2b586db94"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"igaster/laravel-theme": "2.0.6",
|
"igaster/laravel-theme": "2.0.6",
|
||||||
@ -2503,7 +2503,7 @@
|
|||||||
"laravel",
|
"laravel",
|
||||||
"leenooks"
|
"leenooks"
|
||||||
],
|
],
|
||||||
"time": "2018-08-12T07:01:50+00:00"
|
"time": "2018-08-23T06:26:39+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "maximebf/debugbar",
|
"name": "maximebf/debugbar",
|
||||||
|
Loading…
Reference in New Issue
Block a user