@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@if(empty($movement))
Data movement tidak ditemukan.
@else

Form Movement Asset


{{-- Row: ID + Date + MoveType --}}
@php $moveTypeMap = [ 'TF' => 'Transfer', 'DF' => 'Defect', ]; $moveTypeLabel = $moveTypeMap[$movement->move_type] ?? $movement->move_type; @endphp
{{-- Row: Kategori + Code --}}
{{-- FIELD DINAMIS --}}
{{-- USER - untuk CPU & LCD --}}
{{-- LOCATION - untuk PRN, SCN, SWT, OTH --}}
{{-- DEPARTEMEN --}}
{{-- AREA --}}


{{-- Catatan --}}
{{-- Status --}}
@php $status = $movement->status ?? null; if ($status === 'E') { $statusLabel = 'Entry'; $statusClass = 'bg-info'; } elseif ($status === 'F') { $statusLabel = 'Finish'; $statusClass = 'bg-success'; } else { $statusLabel = $status ?? '-'; $statusClass = 'bg-secondary'; } @endphp
{{ $statusLabel }}
{{-- FROM ASSET --}}

From Asset


User / Location

{{ $movement->from_user_name ?? $movement->from_location_name ?? '-' }}

{{ $movement->deptname ?? '-' }}
Area

{{ $movement->from_area ?? '-' }}

@php $cat = strtoupper($movement->kategori ?? ''); $iconClass = 'fa-tag'; if ($cat === 'CPU') $iconClass = 'fa-hard-drive'; else if ($cat === 'LCD') $iconClass = 'fa-desktop'; else if ($cat === 'PRN') $iconClass = 'fa-print'; else if ($cat === 'SCN') $iconClass = 'fa-qrcode'; else if ($cat === 'SWT') $iconClass = 'fa-network-wired'; @endphp {{ $movement->kategori ?? '-' }}

Code
{{ $movement->code ?? '-' }}
Detail Info
{{ $movement->from_detail ?? '-' }}
Tanggal Pembelian
{{ $movement->date_gr ?? '-' }}
Kode SAP
{{ $movement->kode_sap ?? '-' }}
{{-- TO ASSET --}}

Move To:


User / Location

{{ $movement->to_user_name ?? $movement->to_location_name ?? '-' }}

{{ $movement->deprnamee ?? '-' }}
Area

{{ $movement->to_area ?? '-' }}

{{ $movement->kategori ?? '-' }}

Code
{{ $movement->new_code ?? '-' }}
Detail Info
{{ $movement->to_detail ?? '-' }}
Tanggal Pembelian
{{ $movement->date_gr ?? '-' }}
Kode SAP
{{ $movement->kode_sap ?? '-' }}
@endif @endsection