如何在桌面上的foreach blade laravel中禁用特定值

时间:2017-08-07 13:56:54

标签: laravel-5.3 blade laravel-blade

帮助我们,对于这张图片我想禁用刀片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;
&#13;
&#13;

然后控制器查看$ data

&#13;
&#13;
 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;
&#13;
&#13;

帮帮我们......

0 个答案:

没有答案