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

-

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