@extends('layouts.app') @section('title') @if ($production->machine && $production->machine->for_assembly == '1') PRODUCTION CHECK SHEET - ASSEMBLY @else DAILY PRODUCTION OUTPUT EDIT @endif @endsection @section('button') Back @endsection @section('content')
@csrf
PRODUCTION BUTTONS

@if ($production->machine && $production->machine->for_assembly == '1') @else
@endif


@if ($production->machine && $production->machine->for_assembly == '1')
@else
@endif
{{--
--}}
machine && $production->machine->for_assembly == '1') value="{{ isset($scans) ? $scans->count() : 0 }}" @else value="{{ $count }}" @endif name="report_qty" id="report_qty" class="form-control">
machine && $production->machine->for_assembly == '1') value="{{ isset($scans) ? $production->planned_qty - $scans->count() : 0 }}" @else value="{{ $production->planned_qty - $count }}" @endif name="remaining_qty" id="remaining_qty" class="form-control">
{{--
--}}
@php $plannedCycleTimeInHours = $production->planned_cycle_time / 3600; $totalHours = $plannedCycleTimeInHours * $production->planned_qty; @endphp
@php if ($actual_lead_time->production_apis > 0) { $actualQtyHr = number_format( $count / max($actual_lead_time->production_apis * 60, 1), 2, ); } elseif ($scans->count() > 0 && $durations > 0) { $actualQtyHr = number_format( $scans->count() / max($durations * 60, 1), 2, ); } else { $actualQtyHr = 0; } @endphp



@if ($production->machine && $production->machine->for_assembly == '1')


@if (isset($scans)) @foreach ($scans as $key => $scan) @endforeach @endif
No Time Serial No Remarks Action



@else

Kanban {{ substr($kanban_attachment->kanbon_card ?? '', 14) }}
MATERIAL INFORMATION

@if ($raw_materials) @foreach ($raw_materials as $raw_material) @php $product_ids = json_decode( $raw_material->raw_part_ids, ); $bom_kanban = App\Models\Bom::find( $raw_material->bom_id, ); @endphp @if ($product_ids) @foreach ($product_ids as $product_id) @php $product = App\Models\Product::where( 'id', $product_id, ) ->with('type_of_products') ->first(); @endphp @if (isset($product)) @endif @endforeach @endif @php $product_ids = json_decode( $raw_material->sub_part_ids, ); $bom_kanban = App\Models\Bom::find( $raw_material->bom_id, ); @endphp @if ($product_ids) @foreach ($product_ids as $product_id) @php $product = App\Models\Product::where( 'id', $product_id, ) ->with('type_of_products') ->first(); @endphp @if ($product) @endif @endforeach @endif @endforeach @endif
Sr No Part No Part Name Type Variance Model Kanban
{{ $loop->iteration }} {{ $product->part_no }} {{ $product->part_name }} {{ $product->type_of_products->type ?? '' }} {{ $product->variance }} {{ $product->model }} @if (isset($bom_kanban) && isset($bom_kanban->kanbon_card) && $bom_kanban->kanbon_card != null) @else N/A @endif
{{ $loop->iteration }} {{ $product->part_no }} {{ $product->part_name }} {{ $product->type_of_products->type ?? '' }} {{ $product->variance }} {{ $product->model }} @if (isset($bom_kanban) && isset($bom_kanban->kanbon_card) && $bom_kanban->kanbon_card != null) @else N/A @endif



@endif @if ($production->machine && $production->machine->for_assembly == '1') @else

@php $plannedCycleTime = (int) $production->planned_cycle_time * 3600; $actual_unit = 0; if ( (float) $count != 0 && (float) $actual_lead_time->production_apis != 0 && ((float) $count > 0 || (float) $actual_lead_time->production_apis > 0) ) { $actual_unit = (float) $count / (float) $actual_lead_time->production_apis; } @endphp

@php $totalMachineCount = 0; $totalRejectCount = 0; @endphp @foreach ($hourlyCounts as $time => $count) @php $totalMachineCount += $count['machine_count']; $totalRejectCount += $count['reject_count']; @endphp @endforeach
Time Machine Count
Total


@php $totalMachineCount = 0; $totalRejectCount = 0; @endphp
Machine Count Reject Qty Good Qty Adjust Qty Total Good Qty Rejection Type



@endif


@if ($production->machine && $production->machine->for_assembly == '1') @else @endif @foreach ($details as $detail) @if ($production->machine && $production->machine->for_assembly == '1') @else @endif @endforeach
Start DateTime End DateTime Total Time (min)Machine Remarks
{{ $detail->start_time }} {{ $detail->end_time }} {{ $detail->duration ?? 0 }}{{ $detail->machine->name ?? '' }} {{ $detail->remarks }}



@if ($production->machine && $production->machine->for_assembly == '1') @else

@foreach ($sorted_details as $key => $sorted_detail) @endforeach
Production Status Machine Start DateTime End DateTime Total Time (min)
{{ $sorted_detail->status }} {{ $sorted_detail->mc_no }} {{ $sorted_detail->start_time }} {{ $sorted_detail->end_time }} @php $duration = null; if ($sorted_detail->end_time) { $start = \Carbon\Carbon::parse( $sorted_detail->start_time, ); $end = \Carbon\Carbon::parse( $sorted_detail->end_time, ); $duration = $start->diffInMinutes($end); } @endphp @if ($duration) {{ round($duration, 0) }} @else 0 @endif
@endif
{{-- REJECTION MODAL --}} {{-- MATERIAL MODAL --}} {{-- --}} {{-- // Kanban Modal --}} {{-- STOP REMARKS MODAL --}} @endsection