@extends('layouts.main') @section('content') @include('layouts.components.alert-prompt') @if (auth()->user()->role_id == 'D961AD96-211B-4F68-9FF2-111111111111')
Data Peminjaman
@php $no_peminjaman = 1; @endphp @forelse ($peminjaman as $data_peminjaman) @if ($data_peminjaman->enter_warehouse == null) @endif {{-- --}} @empty

Data Kosong

@endforelse
No Kode Peti Nama Customer Kode Tgl Peminjaman PJ Peminjaman Asal Gudang Action
{{ $no_peminjaman++ }} {{ $data_peminjaman->peti->fix_lot }} {{ $data_peminjaman->peti->customer->name }} {{ $data_peminjaman->peti->customer->code_customer }} - {{ $data_peminjaman->peti->tipe_peti->type }} {{ \Carbon\Carbon::parse($data_peminjaman->exit_at)->format('d/m/Y') }} {{ $data_peminjaman->exit_pic }} {{ $data_peminjaman->warehouse->name }}
@csrf @method('DELETE')
{{ $no_peminjaman++ }} {{ $data_peminjaman->peti->fix_lot }} {{ $data_peminjaman->peti->customer->name }} {{ $data_peminjaman->peti->customer->code_customer }} - {{ $data_peminjaman->peti->tipe_peti->type }} {{ \Carbon\Carbon::parse($data_peminjaman->exit_at)->format('d/m/Y') }} {{ $data_peminjaman->exit_pic }} {{ $data_peminjaman->warehouse->name }}
@csrf @method('DELETE')
@else @include('pages.user.Peminjaman.index') @endif @endsection