@extends('layouts.default', ['appTopMenu' => true]) @push('scripts') @endpush @push('head') @endpush @section('content')
@php if(count($projectname) > 0){ @endphp
@php $j=1; foreach($arr as $ar){ $active = ''; $cnt = 1; if($j == 1) { $active='active show'; } @endphp
@php $pro = DB::table('tm_project_member')->select('project_id')->where('id','=',$ar)->get(); $pid = $pro[0]->project_id; $projectmembers = DB::table('tm_project_member')->select('*')->where('project_id','=',$pid)->get(); $details = DB::table('tm_project_member_task')->select('description', 'file', 'target_dt', 'priority', 'id', 'from_dt') ->where('pro_mem_id', '=', $ar)->where('status', '=', 'Pending') ->whereNull('complete_dt') ->orderBy('target_dt','desc')->get(); foreach($details as $assigns){ @endphp @php $cnt++; } @endphp
No. Description Priority Assigned Date Target Date Completed
{{ $cnt }} {{ $assigns->description }} {{ $assigns->priority }} {{ date("d-m-Y",strtotime($assigns->target_dt)) }} {{ date("d-m-Y",strtotime($assigns->from_dt)) }} id)}}">Complete

Project Discussion Group

{{ count($projectmembers)+1 }} members

@php $allMsgs = DB::table('tm_msg')->select('tm_msg.*', 'users.name') ->LEFTJOIN('users', 'tm_msg.from_id', '=', 'users.id') ->where('tm_msg.pid', '=', $pid)->orderBy('ent_dt', 'asc')->get(); $dt = ""; foreach($allMsgs as $msg){ if (date("Y-m-d", strtotime($msg->ent_dt)) == date("Y-m-d")) { $tme = "Today"; } else { $tme = date('F d, Y', strtotime($msg->ent_dt)); } if (date("Y-m-d", strtotime($msg->ent_dt)) == date('Y-m-d', strtotime("-1 days"))) { $tme = "Yesterday"; } if($dt != date("d-m-Y",strtotime($msg->ent_dt))){ @endphp
{{ $tme }}
@php $dt = date("d-m-Y",strtotime($msg->ent_dt)); } if($msg->from_id != Auth::user()->id){ @endphp
{{ strtok(ucwords(strtolower($msg->name)), " ") }}
{{ $msg->msg }} @php if($msg->file != 'NA'){ @endphp @php } @endphp
{{ date("H:i A", strtotime($msg->ent_dt)) }}
@php }else{ @endphp
{{ date("h:i A", strtotime($msg->ent_dt)) }}
{{ $msg->msg }} @php if($msg->file != 'NA'){ @endphp @php } @endphp
@php } } @endphp
@csrf
@error('msg') {{ $message }} @enderror
@php $j++; } @endphp
@php }else{ @endphp @php } @endphp
@endsection @push('scripts') @endpush