@extends('layouts.main') @section('content') @include('layouts.components.alert-prompt')
Data Pengembalian
@php $shownPeti = []; // Array untuk melacak peti yang telah ditampilkan $no_peminjaman = 1; // Inisialisasi nomor peminjaman @endphp @forelse ($peminjaman as $data) @if ($data->enter_warehouse !== null && !in_array($data->peti->fix_lot, $shownPeti)) @php $shownPeti[] = $data->peti->fix_lot; // Menambahkan peti ke dalam array @endphp @endif @empty @endforelse {{-- @forelse ($peminjaman as $data) @if ($data->enter_warehouse !== null) @endif @empty @endforelse --}}
No Kode Peti Customer Tgl Peinjaman Estimasi Pengembalian PJ Peminjaman WH Peminjam Tgl Pengembalian PJ Pengembalian WH Pengembalian Kondisi Peti Status Action
{{ $no_peminjaman++ }} {{ $data->peti->fix_lot }} {{ $data->peti->customer->name }} {{ \Carbon\Carbon::parse($data->exit_at)->format('d/m/Y') }} {{ \Carbon\Carbon::parse($data->est_pengembalian)->format('d/m/Y') }} {{ $data->exit_pic }} @if ($data->exit_warehouse) {{ $data->warehouse->name }} @else

-

@endif
@if ($data->enter_at) {{ \Carbon\Carbon::parse($data->enter_at)->format('d-m-Y') }} @else

-

@endif
@if ($data->enter_pic) {{ $data->enter_pic }} @else

-

@endif
@if ($data->enter_warehouse) {{ $data->warehouseEnter->name }} @else

-

@endif
@if ($data->kondisi_peti) {{ $data->kondisi_peti->nama_kondisi }} @else

-

@endif
@if ($data->enter_warehouse === null) Not Return @else Return @endif
{{ $no_peminjaman++ }} {{ $data->peti->fix_lot }} {{ $data->peti->customer->name }} {{ \Carbon\Carbon::parse($data->exit_at)->format('d/m/Y') }} {{ \Carbon\Carbon::parse($data->est_pengembalian)->format('d/m/Y') }} {{ $data->exit_pic }} @if ($data->exit_warehouse) {{ $data->warehouse->name }} @else

-

@endif
@if ($data->enter_at) {{ \Carbon\Carbon::parse($data->enter_at)->format('d-m-Y') }} @else

-

@endif
@if ($data->enter_pic) {{ $data->enter_pic }} @else

-

@endif
@if ($data->enter_warehouse) {{ $data->warehouseEnter->name }} @else

-

@endif
@if ($data->kondisi_peti) {{ $data->kondisi_peti->nama_kondisi }} @else

-

@endif
@if ($data->enter_warehouse === null) Not Return @else Return @endif
@endsection