@extends('layouts.main') @section('title', 'Pengembalian') @section('content')
Data Asset
@php $no_peminjaman = 1; @endphp @foreach ($peminjaman as $data) @endforeach
No Nama Asset Tgl Keluar PJ Keluar Asal Gudang Tgl Masuk PJ Masuk Tujuan Gudang Status Action
No Nama Asset Tgl Keluar PJ Keluar Asal Gudang Tgl Masuk PJ Masuk Tujuan Gudang Status Action
{{ $no_peminjaman++ }} {{ $data->asset->name }} {{ \Carbon\Carbon::parse($data->exit_at)->format('d-m-Y') }} {{ $data->exit_pic }} {{ $data->exit_warehouse }} @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->enter_warehouse }} @else

-

@endif
@if ($data->enter_warehouse === null) Not Return @else Return @endif
{{-- @foreach ($peminjaman as $data) @endforeach --}} @endsection