Example #1
0
 public function policyDutyUserinfo($id)
 {
     $rs = PolicyDuty::find($id);
     return View::make('policyduty.ajax_userinfo')->with('rs', $rs);
 }
Example #2
0
                                      "class"=>"form-control"
                                  ]) }}
                                </td>
                                <td class="text-center">{{ $policy->author }}</td>
                                <td class="text-center">
                                  @if($policy->status == 1)
                                    <font color="green">เปิดใช้งาน</font>
                                  @else
                                    อยู่ระหว่างพิจารณา
                                  @endif
                                </td>
                                <td class="text-center col-md-1">
                                 <input type="hidden" id="policyduty_userinfo" value="{{URL::to('/policyduty/userinfo/')}}/{{$policy->policy_duty}}">
                                  <a data-toggle="modal" href="#myModal" id="{{$policy->policy_duty}}" class="dutylist">
                                  <?php 
$rs = PolicyDuty::find($policy->policy_duty);
echo $rs['fname'];
?>
                                  </a>

                                  </td>
                                <td class="col-md-2 text-center">
                                  <a  
                                    href="{{ URL::to('policy-rbac/user' ) }}/{{ $policy->id }}" 
                                    class="btn btn-primary btn"
                                    @if(!$policy->status)
                                      disabled="disabled"
                                    @endif
                                    >พีอาร์บีเอซี
                                  </a>
                                  <a href="{{ URL::to('pbdiapolicy' ) }}/{{ $policy->id }}" class="btn btn-success btn">พีบีดีพีไอเอ</a>
Example #3
0
 /**
  * [policyDutySearch description]
  * @param  [type] $keyword [description]
  * @param  [type] $perPage [description]
  * @return [type]          [description]
  */
 public function policyDutySearch($keyword, $perPage)
 {
     $duty_list = PolicyDuty::where('fname', 'LIKE', '%' . $keyword . '%')->orWhere('lastname', 'LIKE', '%' . $keyword . '%')->orWhere('position', 'LIKE', '%' . $keyword . '%')->orWhere('email', 'LIKE', '%' . $keyword . '%')->orderBy('id', 'DESC')->paginate($perPage);
     //var_dump($duty_list);
     return $duty_list;
 }