@if ($production->machine && $production->machine->for_assembly == '1')
@else
@endif
{{--
--}}
@if ($production->machine && $production->machine->for_assembly == '1')
@else
Kanban
{{ substr($kanban_attachment->kanbon_card ?? '', 14) }}
MATERIAL INFORMATION
| Sr No |
Part No |
Part Name |
Type |
Variance |
Model |
Kanban |
@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
| {{ $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
|
@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
| {{ $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
|
@endforeach
@endif
@endforeach
@endif
@endif
@if ($production->machine && $production->machine->for_assembly == '1')
@else
@endif
@if ($production->machine && $production->machine->for_assembly == '1')
@else
| Production Status |
Machine |
Start DateTime |
End DateTime |
Total Time (min) |
@foreach ($sorted_details as $key => $sorted_detail)
|
{{ $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
|
@endforeach
@endif