Add notification preferences and admin governance
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\JobPost;
|
||||
use App\Models\Quote;
|
||||
use App\Models\AuditLog;
|
||||
use App\Models\WorkOrder;
|
||||
use App\Notifications\ExchangeEventNotification;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
@@ -140,6 +141,11 @@ class QuoteController extends Controller
|
||||
]],
|
||||
]);
|
||||
|
||||
AuditLog::record($request, 'quote.accepted', $workOrder, [
|
||||
'quote_id' => $quote->id,
|
||||
'job_post_id' => $quote->job_post_id,
|
||||
]);
|
||||
|
||||
$quote->provider->notify(new ExchangeEventNotification(
|
||||
'Quote accepted',
|
||||
$quote->jobPost->buyer->name.' accepted your quote for '.$quote->jobPost->title.'.',
|
||||
|
||||
Reference in New Issue
Block a user