如何从{{$ data ['datek']}}获得价值

时间:2019-06-13 15:15:05

标签: laravel

如何从此变量中获取价值:{{$data['datek']}}就像<td><input type="hidden" name="salaire" value="{{ $salarie->salairenet }}"> {{$ salarie-> salairenet}} </td>

<form action="/mensuel" method="POST">
         {{csrf_field()}}
  <div class="list-group">
   <div class="list-group-item">
    <h3>Pointage Mensuel</h3>
    <div class="col-md-6 col-md-offset-3">
        <h3>jour : {{$data['datek']}} chantier : {{$data['chantier_name']}}</h3>
    </div>
    <button class="btn btn-success add-all" data-url="">Valider Pointage de mois</button>
</div>
</div>

  <div class="list-group">
   <div class="list-group-item">

    <table class="table table-bordered" id="mytable">
        <tr>
            <th>Archive</th>
            <th><input type="checkbox" id="check_all"></th>
            <th>S.No.</th>
            <th>matricule</th>
            <th>nom & prenom</th>
            <th>salaire net</th>
            <th>nbre de jour </th>
            <th>prime</th>
        </tr>
        @if($salaries->count())
            @foreach($salaries as $key => $salarie)
                <tr id="tr_{{$salarie->id}}">
                  <td>archive</td>
                  <td><input type="checkbox" class="checkbox" data-id="{{$salarie->id}}"></td>
                  <td>{{ ++$key }}</td>
                  <td>{{ $salarie->matricule }}</td>
                  <td >{{ $salarie->nom }} {{ $salarie->prenom }}</td>
                  <td><input type="hidden" name="salaire" value="{{ $salarie->salairenet }}">{{ $salarie->salairenet }}</td>
                  <td ><input type="text" name="nbreJ" class="form-control" value="{{$data['nbr']}}"></td>
                  <td><input type="text" name="prime" class="form-control" value="0"></td>
                </tr>
            @endforeach
        @endif
    </table>
 </div>
</div>

</form>

0 个答案:

没有答案