@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->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
@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