@if(empty($item->status))
@else
{{$item->status}}
@endif
|
{{$item->title??''}}
【{{$item->rank??''}}】
|
{{$item->memo??''}}
|
@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
|
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
{{$item->acceptance??''}}
|
@endif
{{$item->file??''}}
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@endif
|
{{--
{{$item->file??''}}
--}}{{--@if(!empty($item->master_plate_path))--}}{{--
--}}{{--@endif--}}{{--
| --}}
{{$item->node??''}}
@if(strtotime($item->node_date){{$item->node_date??''}}
@else
{{$item->node_date??''}}
@endif
|
@php
if(!empty($item->status) && strtotime($item->node_date)< strtotime(date('Y-m-d',strtotime($item->status)))){
$beOverdueDay=(strtotime(date('Y-m-d',strtotime($item->status)))-strtotime($item->node_date))/3600/24;
echo '逾期'.round($beOverdueDay).'天';
}else{
if(!empty($item->node_date) && 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($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
|
@endif
|
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
|
@endif
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
@foreach($item->roles as $key=>$value)
@if($item->level==1 && $key==\App\Http\Models\Role::TYPE_SERVER)
{{$value->nickname??''}}
@endif
@if(in_array($item->level,[2,3,4,5,7]) && $key==\App\Http\Models\Role::TYPE_MANAGE_HELPER)
{{$value->nickname??''}}
@endif
@if($item->level==6 && $key==\App\Http\Models\Role::TYPE_WEB)
{{$value->nickname??''}}
@endif
@if(in_array($item->level,[8,9]) && $key==\App\Http\Models\Role::TYPE_OPTIMIZER)
{{$value->nickname??''}}
@endif
@endforeach
|
@endif
|
@if($roles->role_id !=\App\Http\Models\Role::TYPE_CUSTOMER)
|
@endif
@endforeach