我试图通过我的控制器从我视图中的下拉列表中获取选定的值,但它总是返回null. 我真的不知道为什么。
这是我的选择下拉列表: 更新:这是我的完整刀片视图!
@extends('backpack::layout')
@section('header')
<section class="content-header">
<h1>
<span class="text-capitalize">Thành tích tốt nhất ngày</span>
</h1>
<ol class="breadcrumb">
<li><a href="/admin/dashboard">Admin</a></li>
<li><a href="/admin/cache-club-earth">Thành tích tốt nhất ngày</a></li>
<li class="active">List</li>
</ol>
</section>
@endsection
@section('content')
<form method="GET">
Lọc round:
<select id="tablefilter" name="tablefilter">
<option value="0">Hiện tại</option>
@foreach($max as $item)
<option value="{{$item->countRound}}">{{$item->countRound}}</option>
@endforeach
</select>
</form>
<table id="currentRound" class="table table-striped table-bordered" style="width:100%">
<thead>
<tr>
<th>Câu lạc bộ</th>
<th>Quãng đường</th>
<th>Quãng đường trung bình</th>
<th>Xếp hạng</th>
<th>Số thành viên</th>
<th>Ngày xếp hạng</th>
</tr>
</thead>
<tbody>
@foreach ($result as $item)
<tr>
<td>{{$item->name}}</td>
<td align="right">{{number_format($item->total_distance/1000, 2)}} km</td>
<td align="right">{{number_format($item->avg_distance/1000, 2)}} km</td>
<td align="right">{{number_format($item->rank)}}</td>
<td align="right">{{$item->total_member}}</td>
<td>{{$item->created_at}}</td>
</tr>
@endforeach
</tbody>
</table>
幕布斯6054654
回首忆惘然
慕丝7291255