37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
<?php $data = db("weld_logs")->where("line_number", get("id"))->get();
|
|
$welders = [];
|
|
$joints = [];
|
|
|
|
foreach($data AS $d)
|
|
{
|
|
if(!in_array($d->no_of_the_joint_as_per_as_built_survey, $joints))
|
|
{
|
|
$joints[] = $d->no_of_the_joint_as_per_as_built_survey;
|
|
}
|
|
|
|
if(!in_array($d->welder_1, $welders))
|
|
{
|
|
$welders[] = $d->welder_1;
|
|
}
|
|
|
|
if(!in_array($d->welder_2, $welders))
|
|
{
|
|
$welders[] = $d->welder_2;
|
|
}
|
|
}
|
|
?>
|
|
<select name="" id="welder" class="form-control">
|
|
<option value="">Select Welder</option>
|
|
@foreach($welders AS $welder)
|
|
<option value="{{$welder}}">{{$welder}}</option>
|
|
@endforeach
|
|
</select>
|
|
<select name="" id="joint" class="form-control">
|
|
<option value="">Select Joint</option>
|
|
@foreach($joints AS $joint)
|
|
<option value="{{$joint}}">{{$joint}}</option>
|
|
@endforeach
|
|
</select>
|
|
<button class="btn btn-outline-primary" id="addTriangle">Add Triangle</button>
|
|
<button class="btn btn-outline-primary" id="addCircle">Add Circle</button>
|