@extends('layouts.app') @section('content')
Edit Nota Pengeluaran Kas
@csrf @method('PUT') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(session('error'))
{{ session('error') }}
@endif @if(session('success'))
{{ session('success') }}
@endif
@php $detail = $nota->detailTransaksi->first(); if (!function_exists('formatExactNumber')) { function formatExactNumber($num) { if ($num === null || $num === '') return ''; $val = (float) $num; if (fmod($val, 1) == 0) { return number_format($val, 0, ',', '.'); } $str = (string) $val; $parts = explode('.', $str); $intFormatted = number_format((float)$parts[0], 0, ',', '.'); $dec = isset($parts[1]) ? $parts[1] : ''; return $dec !== '' ? $intFormatted . ',' . $dec : $intFormatted; } } @endphp
Format: JPG, JPEG, PNG, PDF. Maksimal 20MB per file. @if($detail && $detail->file)
File saat ini: @php $files = json_decode($detail->file, true); if (!is_array($files)) { $files = [$detail->file]; } @endphp
@foreach($files as $index => $file) @endforeach
@if($detail->uploaded_at)
Terakhir diupload: {{ \Carbon\Carbon::parse($detail->uploaded_at)->format('d M Y H:i') }}
@endif
@endif
Kembali
@endsection @push('scripts') @endpush