@extends('layouts.master') @section('title', $title) @section('page_js') {{-- --}} @endsection @section('content')
| # | {{ __('Transaction Date') }} | {{--{{ __('Create At') }} | --}}{{ __('Description') }} | {{ __('Debit') }} | {{ __('Credit') }} | {{ __('Balance') }} |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($item->jour_date)->format('M d, Y') }} | {{ \Carbon\Carbon::parse($item->date)->format('M d, Y') }} | {{--{{ $item->created_at }} | --}}{{ !empty($item->description) ? $item->description : '-' }} | {{ number_format($item->debit,2) }} | {{ number_format($item->credit,2) }} | @if ($item->debit > 0) @php $debit+=$item->debit @endphp @else @php $credit+=$item->credit @endphp @endif @php $balance= $credit-$debit @endphp @if ($balance > 0) {{ __('Cr') . '. ' . number_format($balance,2) }} @elseif($balance < 0) {{ __('Dr') . '. ' . number_format(abs($balance),2) }} @else {{ number_format(0) }} @endif |