Notification::make()
->title(__('repair.status_change'))
->body(__('repair.status_change_body_customer', [
'originalStatus' => str($repair->getOriginal('repair_status')->getLabel()),
'newStatus' => str($repair->repair_status->getLabel()),
'item' => $repair->brand->name.' '.$repair->item->name,
'link' => '<a class="underline" href="/customer/my-repairs/">'.__('repair.open_for_more_details').'</a>'
]))
->sendToDatabase($repair->customer->user);
Notification::make()
->title(__('repair.status_change'))
->body(__('repair.status_change_body_customer', [
'originalStatus' => str($repair->getOriginal('repair_status')->getLabel()),
'newStatus' => str($repair->repair_status->getLabel()),
'item' => $repair->brand->name.' '.$repair->item->name,
'link' => '<a class="underline" href="/customer/my-repairs/">'.__('repair.open_for_more_details').'</a>'
]))
->sendToDatabase($repair->customer->user);