I am developing for an application. I have an array of folder_data then I want that for same file_names will be displayed only once. I would appreciate your help.
This is my code:
@foreach($files['folders'] as $file)
<tr>
<td><input type="checkbox" name="check_list[]" value="{{$file['file_id']}}"></td>
<td>
<a href={{url("/home/".$file['file_name'])}}>
{{ $file['file_name'] }}
</a>
</td>
<td class="center">{{ $file['file_type'] }}</td>
</tr>
@endforeach
Aucun commentaire:
Enregistrer un commentaire