@extends('layout.main') @section('title', 'Detail Transaksi') @section('prev-page') Home - Daftar Transaksi @endsection @section('content')
Detail Transaksi
{{ $detail->number }}
{{ date_format(date_create($detail->date), 'd F Y') }}
{{ $detail->account->name }}
{{ $detail->category->name }}
Rp{{ number_format($detail->amount, 0, ',', '.') }}
{{ $detail->type->name }}
Rp{{ number_format($detail->deposit, 0, ',', '.') }}
{!! nl2br($detail->description) !!}
{{ $detail->recipient }}
{{ $detail->creator->name }}
{{ date_format(date_create($detail->created), 'd M Y H:i:s') }}
Bukti Faktur
{{ $detail->receipt->type->name }}
@if (!empty($detail->receipt->file))
@endif
{{-- Pembagian Alokasi Panel --}}
Pembagian Alokasi Dana
@forelse ($detail->allocations as $allocation) @empty @endforelse @if ($detail->allocations->count() > 0) @endif
ID Alokasi Nama Nilai Keterangan Status Dibuat Oleh Waktu  
{{ $allocation->allocation_number }} {{ $allocation->name }} Rp{{ number_format($allocation->amount, 0, ',', '.') }} {{ $allocation->description ?? '-' }} @if ($allocation->status == 0) @else Aktif @endif {{ $allocation->creator->name ?? '-' }} {{ date_format(date_create($allocation->created), 'd M Y H:i') }} @if ($allocation->status == 0) @endif
Belum ada alokasi
Total Rp{{ number_format($detail->allocations->sum('amount'), 0, ',', '.') }}
{{-- Link External Panel --}} @if (!empty($detail->links) && $detail->links->count() > 0)
Link External
@foreach ($detail->links as $link) @endforeach
Link ID Link Number Link Date Link Name Link Type Link Identity ID Alokasi Nilai Alokasi
#{{ $link->link_id }} {{ $link->link_number }} {{ date_format(date_create($link->created), 'd M Y H:i:s') }} {{ $link->link_name }} {{ $link->link_type }} {{ $link->link_identity }} {{ $link->allocation->allocation_number ?? '-' }} @if (!empty($link->allocation)) Rp{{ number_format($link->allocation->amount, 0, ',', '.') }} @else - @endif
@endif {{-- Approval Panel --}} @if (!empty($detail->approval->id))
Pengajuan
@php $approval = $detail->approval @endphp
ID Pengajuan Tanggal Kategori Deskripsi Nilai Tipe Diajukan Oleh Status  
{{ $approval->number }} {{ date_format(date_create($approval->created), 'd M Y H:i:s') }} {{ $approval->category->name }} @if (empty($approval->description)) {{ '-' }} @else @php $description = str_replace("\"", "\'\'", $approval->description); $description = nl2br($description); @endphp {{ mb_strimwidth(strip_tags($approval->description), 0, 30, '...') }} @endif Rp{{ number_format($approval->amount, 0, ',', '.') }} {{ $approval->creator->name }} @if (!empty($approval->file->_1)) @endif @if (!empty($approval->file->_2)) @endif
@endif @endsection @section('other-scripts') @endsection