{{ $i++ }} |
{{ strtoupper($oe->sewing_process_type) }} |
{{-- @php
$machineType = App\Models\SewingProcessList::where(
'id',
$oe->sewing_process_list_id,
)
->pluck('machine_type')
->first();
@endphp
@if ($machineType = 'LSM')
LOCK STITCH MACHINE
@elseif ($machineType == 'FLM')
FLAT LOCK MACHINE
@elseif ($machineType = 'OLM')
OVER LOCK MACHINE
@elseif ($machineType = 'NM')
NORMAL MACHINES
@else
SPECIAL MACHINES
@endif --}}
@php
$machineType = App\Models\SewingProcessList::where('id', $oe->sewing_process_list_id)->first();
// dd($machineType);
@endphp
@if ($machineType->machine_type == 'LSM')
LOCK STITCH MACHINE
@elseif ($machineType->machine_type == 'FLM')
FLAT LOCK MACHINE
@elseif ($machineType->machine_type == 'OLM')
OVER LOCK MACHINE
@elseif ($machineType->machine_type == 'NM')
NORMAL MACHINES
@else
SPECIAL MACHINES
@endif
|
{{ ucwords($oe->sewing_process_name) }} |
@php
if ($oe->smv == null) {
$smv = '';
} else {
$smv = number_format($oe->smv, 2);
}
@endphp
|
|
|
@php
if ($oe->sewing_process_avg_cycles !== null) {
$capacity = 60 / $oe->sewing_process_avg_cycles;
$fractionalPart = $capacity - floor($capacity);
if ($fractionalPart >= 0.5) {
$roundedCapacity = ceil($capacity); // Round up if fractional part is >= 0.5
} else {
$roundedCapacity = floor($capacity); // Round down otherwise
}
} else {
$roundedCapacity = ''; // Provide a default value when sewing_process_avg_cycles is null
}
@endphp
|
@php
if ($oe->self_production == null) {
$self_production = '';
} else {
$self_production = number_format($oe->self_production, 0);
}
@endphp
{{-- @if ($oe->self_production == null)
@else
@endif --}}
|
@php
if ($oe->achive_production == null) {
$achive_production = '';
} else {
$achive_production = number_format($oe->achive_production, 0);
}
@endphp
{{-- --}}
|
|
@endforeach