帮助我们,对于这张图片我想禁用刀片laravel查看特定数据这是图片
https://i.stack.imgur.com/CuwB9.jpg
https://i.stack.imgur.com/NQfIc.jpg
这是我的刀片laravel文件
<table class="table table-bordered table-responsive" style="margin-top: 20px">
<thead>
<tr>
<th>NO</th>
<th>NAMA</th>
<th>JABATAN</th>
<th>PROJECT</th>
<th>POSISI DALAM PROJECT</th>
<th>START PROJECT</th>
<th>FINISH PROJECT</th>
<th>DAYS PROJECT</th>
</tr>
</thead>
<tbody>
@php
$no = 1;
@endphp
@foreach ($data as $value)
<tr>
<td>{{ $no ++ }}</td>
<td>{{ $value->EMPLOYEE_NAME }}</td>
<td>{{ $value->EMPLOYEE_TITLE }}</td>
<td>{{ $value->PROJECT_NAME }}</td>
<td>{{ $value->PROJECT_ROLE }}</td>
<td>{{ $value->PROJECT_START }}</td>
<td>{{ $value->PROJECT_END }}</td>
<td>{{ $value->PROJECT_DURATION }}</td>
</tr>
@endforeach
</tbody>
</table>
&#13;
然后控制器查看$ data
public function index(){
$data['data'] = DB::table('project')->join('employee','project.EMPLOYEE_ID','=','employee.EMPLOYEE_ID')
->select('EMPLOYEE_NAME' , 'EMPLOYEE_TITLE' , 'PROJECT_NAME' , 'PROJECT_ROLE' ,'PROJECT_START' , 'PROJECT_END' , 'PROJECT_DURATION')
->get();
return view('index',$data);
}
&#13;
帮帮我们......