@if(empty($item['status']))
@else
{{$item['status']}}
@endif
|
{{$item['title']??''}}
|
|
@foreach($item['roles'] as $key=>$value)
@if($key==\App\Http\Models\Role::TYPE_CUSTOMER)
{{--客户--}}
@if($roles->role_id ==\App\Http\Models\Role::TYPE_CUSTOMER)
{{$siteName}} @else {{$siteName}}
@endif
@endif
@if($key==\App\Http\Models\Role::TYPE_SELLER)
{{--销售--}}
@if(!empty($value->user_id) && $roles->id == $value->user_id)
{{$value->user_id??''}} @else {{$value->nickname??''}} @endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
@endif
@if($key==\App\Http\Models\Role::TYPE_SERVER)
{{--项目管家--}}
@if(!empty($value->user_id) && $roles->id == $value->user_id)
{{$value->nickname??'未分配项目管家'}}
@else {{$value->nickname??''}} @endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
@endif
@if($key==\App\Http\Models\Role::TYPE_MANAGE_HELPER)
{{--项目经理--}}
@if(!empty($value->user_id) && $roles->id == $value->user_id)
{{$value->nickname??'未分配项目经理'}} @else {{$value->nickname??'未分配项目经理'}} @endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
@endif
@if($key==\App\Http\Models\Role::TYPE_PLANNER)
{{--策划--}}
@if(!empty($value->user_id) && $roles->id == $value->user_id)
{{$value->nickname??'未分配策划'}} @else {{$value->nickname??'策划'}} @endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
@endif
@if($key==\App\Http\Models\Role::TYPE_AE)
{{--采编--}}
@if(!empty($value->user_id) && $roles->id == $value->user_id)
{{$value->nickname??'未分配采编'}} @else {{$value->nickname??'未分配采编'}} @endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
@endif
@if($key==\App\Http\Models\Role::TYPE_WEB)
{{--前端--}}
@if(!empty($value->user_id) && $roles->id == $value->user_id)
{{$value->nickname??'未分配前端'}} @else {{$value->nickname??'未分配前端'}} @endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
@endif
@if($key==\App\Http\Models\Role::TYPE_DESIGNER)
{{--设计--}}
@if(!empty($value->user_id) && $roles->id == $value->user_id)
{{$value->nickname??'未分配设计'}} @else {{$value->nickname??'未分配设计'}} @endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
@endif
@if($key==\App\Http\Models\Role::TYPE_QUALITY)
{{--质检--}}
@if(!empty($value->user_id) && $roles->id == $value->user_id)
{{$value->nickname??'未分配质检'}} @else {{$value->nickname??'未分配质检'}} @endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
@endif
@if($key==\App\Http\Models\Role::TYPE_OPTIMIZER)
{{--优化--}}
@if(!empty($value->user_id) && $roles->id == $value->user_id)
{{$value->nickname??'未分配优化师'}} @else {{$value->nickname??'未分配优化师'}} @endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
@endif
@endforeach
|
{{$item['acceptance']??''}}
|
{{$item['node']??''}}
@if(strtotime($item['node_date']){{$item['node_date']??''}}
@else
{{$item['node_date']??''}}
@endif
|
@php
//完成时间>节点时间、未完成时间小于当天时间时为逾期
if(!empty($item['status'])){
if(strtotime(date('Y-m-d',strtotime($item['status'])))>strtotime($item['node_date'])){
$beOverdueDay=(strtotime(date('Y-m-d',strtotime($item['status'])))-strtotime($item['node_date']))/3600/24;
echo '逾期'.round($beOverdueDay).'天';
}
}else{
if(strtotime($item['node_date'])< strtotime(date('Y-m-d'))){
$beOverdueDay=(strtotime(date('Y-m-d'))-strtotime($item['node_date']))/3600/24;
echo '逾期'.round($beOverdueDay).'天';
}
}
@endphp
@if(!empty($item['status']))
@if(strtotime(date('Y-m-d',strtotime($item['status'])))>strtotime($item['node_date']))
@endif
@else
@if(strtotime($item['node_date'])< strtotime(date('Y-m-d')))
@endif
@endif
|
@if(!empty($item['is_inspection_score']))
媛媛、笑笑
@endif
|
@if(!empty($item['client_score']))
{{$item['client_score']}}
@endif
|
@if(isset($item['file_list']))
@foreach(\GuzzleHttp\json_decode($item['file_list'],true) as $value)
-
{{$value}}
@endforeach
@endif
|
|
|
@endforeach