123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- @extends('layouts.master')
- @section('style')
- <link href="{{URL::asset('assets/css/jquery.datetimepicker.css')}}" rel="stylesheet" type="text/css"/>
- <style type="text/css">
- .cls-show-time{
- color: #000;
- font-style: italic;
- font-size: 12px;
- }
- </style>
- @endsection
- @section('content')
- <section class="content">
- <div class="row">
- <div class="col-md-6">
- @if(!empty($pm_created_task))
- <section class="panel tasks-widget">
- <header class="panel-heading" style="color:#34BCA0;">
- <b>PM # all created task</b>
- </header>
- <div class="cls-overflow table-responsive project-list">
- <table class="table table-striped">
- <thead>
- <tr>
- <th>
- Task
- </th>
- <th>
- Project
- </th>
- <th>
- Name
- </th>
- <th>
- Assigned time
- </th>
- </tr>
- </thead>
- <tbody>
- @foreach($pm_created_task as $pt)
- <tr>
- <td>
- <a style="color: #333;" href="{{url("user/uproject_details/$pt->proj_id")}}">
- {{$pt->name}}
- </a>
- </td>
- <td>{{$pt->proj_name->name}}</td>
- <td>
- @if(!empty($pt->user->name))
- {{$pt->user->name}}
- @else
- <span style="color:#FF6000;">
- {{"Not assigned"}}
- </span>
- @endif
- </td>
- <td>{{date("d-m-Y H:i", strtotime($pt->assign_time))}}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <hr>
- </hr>
- </div>
- </section>
- @endif
- </div>
- <div class="col-md-6">
- @if(!empty($pm_inprocess_task))
- <section class="panel tasks-widget">
- <header class="panel-heading" style="color:#34BCA0;">
- <b>PM # all in-process task</b>
- </header>
- <div class="cls-overflow table-responsive project-list">
- <table class="table table-striped">
- <thead>
- <tr>
- <th>
- Task
- </th>
- <th>
- Project
- </th>
- <th>
- Name
- </th>
- <th>
- Start time
- </th>
- </tr>
- </thead>
- <tbody>
- @foreach($pm_inprocess_task as $pt)
- <tr>
- <td>
- <a style="color: #333;" href="{{url("user/uproject_details/$pt->proj_id")}}">
- {{$pt->name}}
- </a>
- </td>
- <td>{{$pt->proj_name->name}}</td>
- <td>
- @if(!empty($pt->user->name))
- {{$pt->user->name}}
- @else
- <span style="color:#FF6000;">
- {{"Not assigned"}}
- </span>
- @endif
- </td>
- <td>{{date("d-m-Y H:i", strtotime($pt->start_time))}} # {{$pt->estimated_time}}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <hr>
- </hr>
- </div>
- </section>
- @endif
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <section class="panel tasks-widget">
- <header class="panel-heading">
- <b>Pending Tasks</b>
- </header>
- <div class="table-responsive project-list">
- <table class="table table-striped">
- @foreach($tasks as $tsk)
- <tr>
- <td>
- <a style="color:#333333;" href="{{url("user/uproject_details/$tsk->proj_id")}}">
- <b>Task:</b> {{$tsk->name}}
- <b>-{{$tsk->proj_name->name}}</b>
- </a>
- </td>
- </tr>
- @endforeach
- </table>
- </div>
- </section>
- </div>
- <div class="col-md-6">
- <section class="panel tasks-widget">
- <header class="panel-heading">
- Projects you assigned
- </header>
- <div class="table-responsive project-list">
- <table class="table table-striped">
- <thead>
- <tr>
- <th colspan="2">
- Project Name
- </th>
- <th>
- Assigned By
- </th>
- <th>
- Description
- </th>
- {{--
- <th>
- Action
- </th>
- --}}
- </tr>
- </thead>
- <tbody>
- @if (session('data'))
- <div class="alert alert-success">
- {{ session('data') }}
- </div>
- @endif
- @if(!empty($projj))
- @foreach($projj as $proj)
- <tr>
- <td>
- <div class="task-checkbox">
- <input class="flat-grey" type="checkbox"/>
- </div>
- </td>
- <td>
- <a href="{{url("user/uproj_inprocess_pending_task/$proj->proj_id")}}">
- {{$proj->proj_name->name}}
- </a>
- <span class="cls-show-time">
- @if(count($proj->proj_name->tasks) > 0)
- <?php
- $pend = 0;
- $donee = 0;
- $not_assign = 0;
- ?>
- @foreach($proj->proj_name->tasks as $pt)
- @if($pt->user_id == 0)
- <?php $not_assign++; ?>
- @elseif($pt->status < 6 && $pt->user_id == $login_user_id)
- <?php $pend++; ?>
- @elseif($pt->status == 6 && $pt->user_id == $login_user_id)
- <?php $donee++; ?>
- @endif
- @endforeach
- <br>
- Not Assigned: {{$not_assign}},
- Pending: {{$pend}},
- Done: {{$donee++}}
- @else
- {{"No tasks added"}}
- @endif
- </span>
- <br>
- <small>
- <i class="fa fa-clock-o">
- </i>
- Assigned in {{$proj->assign_time}}
- </small>
- </br>
- </td>
- <td>
- {{$proj->assigned->name}}
- </td>
- <td>
- {{str_limit($proj->proj_name->description, $limit = 30, $end = '...')}}
- </td>
- {{-- <td>
- <a href="" style="color: #7dcc93;">
- <i class="fa fa-pencil-square-o" aria-hidden="true"></i>
- </a>
-
- <a onclick="return confirm ('want to delete?')" href="{{url("admin/remove_proj/$proj->id")}}" style="color:#FD4B39;">
- <i class="fa fa-times" aria-hidden="true"></i>
- </a>
- </td> --}}
- </tr>
- @endforeach
- @endif
- </tbody>
- </table>
- <hr>
- </hr>
- </div>
-
- </section>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <section class="panel tasks-widget">
- <header class="panel-heading">
- Important Notes
- <button class="btn btn-success btn-xs pull-right" data-toggle="modal" data-target="#myModal2"><i class="fa fa-plus-circle" data-toggle="modal" data-target="#myModal2" aria-hidden="true"></i> Add Note</button>
- </header>
- <div class="table-responsive project-list">
- <table class="table table-striped">
- <thead>
- <tr>
- <th>
- Note
- </th>
- <th>
- Date Time
- </th>
- <th>
- Status
- </th>
- </tr>
- </thead>
- <tbody>
- @if(!empty($notes))
- @foreach($notes as $nott)
- <tr>
- <td>{{$nott->note}}</td>
- <td>{{$nott->time}}</td>
- <td style="cursor:pointer;">
- @if($nott->status > 0)
- <a href="{{url("user/change_note_status/$nott->id")}}">
- <i style="color:green;" class="fa fa-check-square-o" aria-hidden="true"></i>
- </a>
- @else
- <a href="{{url("user/change_note_status/$nott->id")}}">
- <i class="fa fa-square-o" aria-hidden="true"></i>
- </a>
- @endif
-
- <a onclick="return confirm ('want to delete?')" href="{{url("user/remove_note/$nott->id")}}">
- <i style="color:red" class="fa fa-times" aria-hidden="true"></i>
- </a>
- </td>
- </tr>
- @endforeach
- @endif
- </tbody>
- </table>
- <hr>
- </hr>
- </div>
- </section>
- </div>
- </div>
- </section>
- <!-- row end -->
- <!-- /.content -->
- <!-- Add note modal -->
- <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="gridSystemModalLabel">Add User</h4>
- </div>
- <div class="modal-body">
- <form role="form" action="{{url('user/add_note')}}" method="POST">
- {!! csrf_field() !!}
- <div class="form-group">
- <label for="Add new Project">
- Note
- </label>
- <textarea name="note" rows="5" class="form-control" id="new-project" placeholder="Write down your important notes..." ></textarea>
- </div>
- <div class="form-group">
- <label for="Add new Project">
- Select Date Time
- </label>
- <input name="date_time" class="form-control" id="datetimepicker" type="text">
- </div>
- <div class="form-group">
- <button class="btn btn-info" type="submit">
- Submit
- </button>
- </div>
- </form>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal-dialog -->
- </div>
- @endsection
- @section('script')
- <script src="{{URL::asset('assets/js/jquery.datetimepicker.full.min.js')}}" type="text/javascript"></script>
- <script type="text/javascript">
- //jQuery('#datetimepicker').datetimepicker();
- jQuery('#datetimepicker').datetimepicker({
- format:'Y-m-d H:i:s',
- lang:'ru'
- });
- </script>
- @endsection
|