Commit c9cc8820 by fezrul

change random style

parent 66cf4426
......@@ -27,22 +27,28 @@
<tbody>
<?php
$strings = array('Jhonny','Nadia','Sofea','Suhaimi','Ahmad','Ikbal','Wan Zul','Zulkifly');
$rand_keys = array_rand($strings, 2);
$strings = ['Jhonny','Nadia','Sofea','Suhaimi','Ahmad','Ikbal','Wan Zul','Zulkifly'];
?>
@if($list)
@foreach($list as $list)
<?php
$name = $strings[mt_rand(0, count($strings) - 1)];
?>
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $list->fullname }}</td>
<td>{{ $list->email }}</td>
<td>@if($list->registration_status == 1) Yes (Scan By : {{$input[$rand_keys[$loop->iteration]}}) @else Not Yet @endif</td>
<td>@if($list->goodies_status == 1) Yes (Scan By : {{shuffle($strings)}}) @else Not Yet @endif</td>
<td>@if($list->time) Yes (Scan By : {{shuffle($strings)}}) @else Not Yet @endif</td>
<td>@if($list->attendance_status == 1) Yes (Scan By : {{shuffle($strings)}}) @else Not Yet @endif</td>
<td>@if($list->lunch_status == 1) Yes (Scan By : {{shuffle($strings)}}) @else Not Yet @endif</td>
<td>@if($list->registration_status == 1) Yes (Scan By : $name) @else Not Yet @endif</td>
<td>@if($list->goodies_status == 1) Yes (Scan By : $name) @else Not Yet @endif</td>
<td>@if($list->time) Yes (Scan By : $name) @else Not Yet @endif</td>
<td>@if($list->attendance_status == 1) Yes (Scan By : $name) @else Not Yet @endif</td>
<td>@if($list->lunch_status == 1) Yes (Scan By : $name) @else Not Yet @endif</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment