Offrte gours
This commit is contained in:
@@ -41,6 +41,16 @@ class Offer extends BaseModel {
|
||||
return $offers;
|
||||
}
|
||||
|
||||
public static function getOffersWithoutProject( )
|
||||
{
|
||||
$offersWithoutProject = Offer::orderBy('startdate')
|
||||
->whereNull('rejectdate')
|
||||
->whereNull('project_id')
|
||||
->get();
|
||||
|
||||
return $offersWithoutProject;
|
||||
}
|
||||
|
||||
public static function saveOffer( $offerID, $offer )
|
||||
{
|
||||
$offer = (array) $offer;
|
||||
|
||||
Reference in New Issue
Block a user