소스 검색

add new in docket list

ifah
Siti Hajar Ibrahim 4 년 전
부모
커밋
948cbeac45
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10
    0
      app/Http/Controllers/DS/MarketingController.php

+ 10
- 0
app/Http/Controllers/DS/MarketingController.php 파일 보기

@@ -1054,6 +1054,7 @@ class MarketingController extends Controller
$nested_data = array();
$test = 0;

$curr = Carbon::now()->getTimestamp();
foreach ($docket as $a)
{
$i++;
@@ -1063,6 +1064,15 @@ class MarketingController extends Controller
$contractor = Company::where('_id', $a->WorkOrder->contractor_id)->first();
$tempInstaller = Staff::with('StaffDetail')->withTrashed()->where('_id',$a->installer_id)->first();

$reg_time = $a->created_at;
$expiry_date = $reg_time->addDays(3);
$expiry_date = $expiry_date->getTimestamp();

$n1="";
if($curr < $expiry_date) {
$n1 = "New/";
}

if(!empty($subDetail->Subscriber->building_name))
$building=$subDetail->Subscriber->building_name;
else

Loading…
취소
저장