@extends('layouts.app') @section('title', 'Detail Pembelian Stok - Hotel Management System') @section('page-title', 'Detail Pembelian Stok') @section('page-actions')
Kembali @if(!$stockPurchase->expense_id) Edit
@csrf
@endif
@endsection @section('content')
Detail Pembelian Stok
No. Pembelian: {{ $stockPurchase->purchase_number }}
Tanggal Pembelian: {{ $stockPurchase->purchase_date->format('d F Y') }}
Item Stok: {{ $stockPurchase->stockItem->name }}
{{ $stockPurchase->stockItem->category }} - {{ $stockPurchase->stockItem->unit }}
Supplier: {{ $stockPurchase->supplier ?: '-' }}
Jumlah: {{ $stockPurchase->quantity }} {{ $stockPurchase->stockItem->unit }}
Harga Satuan: {{ $stockPurchase->formatted_unit_price }}
Total Harga: {{ $stockPurchase->formatted_total_price }}
Status: @if($stockPurchase->expense_id) Diproses @else Belum Diproses @endif
@if($stockPurchase->notes)
Catatan:

{{ $stockPurchase->notes }}

@endif
Informasi Sistem:
Dibuat Oleh: {{ $stockPurchase->user->name }}
Dibuat Pada: {{ $stockPurchase->created_at->format('d F Y H:i') }}
Diperbarui Pada: {{ $stockPurchase->updated_at->format('d F Y H:i') }}
Status Pembelian
@if($stockPurchase->expense_id)
Pembelian Diproses

Stok telah ditambahkan dan expense telah dibuat

Lihat Expense @else
Belum Diproses

Pembelian belum diproses. Klik tombol "Proses Pembelian" untuk menambahkan stok dan membuat expense.

@endif
Info Item Stok
Stok Saat Ini: {{ $stockPurchase->stockItem->current_stock }} {{ $stockPurchase->stockItem->unit }}
Stok Minimum: {{ $stockPurchase->stockItem->min_stock }} {{ $stockPurchase->stockItem->unit }}
Harga Beli Lama: Rp {{ number_format($stockPurchase->stockItem->purchase_price, 0, ',', '.') }}
Harga Jual: Rp {{ number_format($stockPurchase->stockItem->selling_price, 0, ',', '.') }}
Status: {{ $stockPurchase->stockItem->is_active ? 'Aktif' : 'Tidak Aktif' }}
Lihat Detail Item
@if(!$stockPurchase->expense_id)
Aksi
Edit Pembelian
@csrf
@csrf @method('DELETE')
@endif
@endsection