@extends('layouts.app') @section('title', $deal->title . ' — Hisab') @section('content') @php function bdt($n) { return '৳ ' . number_format($n, 2); } @endphp
Deals / {{ $deal->title }}

{{ $deal->title }}

{{ $deal->created_at->format('M d, Y') }} · {{ $deal->status }}

@csrf @method('PUT')
bKash out
{{ bdt($deal->cashIn()) }}
Bank in
{{ bdt($deal->bankIn()) }}
Net
{{ $deal->net() >= 0 ? '+' : '−' }} {{ bdt(abs($deal->net())) }}

Deal transactions

@forelse ($deal->transactions as $t) @empty @endforelse
Date Wallet Type Direction Amount
{{ $t->occurred_at->format('M d, Y') }} {{ $t->wallet->name }} {{ $t->type }} {{ $t->direction }} {{ $t->direction === 'in' ? '+' : '−' }} {{ bdt($t->amount) }}
Ekhono kono transaction nei.
@endsection