@extends('core::layouts.master') @section('title') {{ trans_choice('core::general.view',1) }} {{ trans_choice('core::general.transaction',1) }} @endsection @section('content')
{{ trans_choice('core::general.transaction',1) }} # {{$data->first()->transaction_number}}
@if($data->first()->reversed==0 && $data->first()->reversible==1) {{ trans_choice('accounting::general.reverse',1) }} @else {{ trans_choice('core::general.transaction',1) }} {{ trans_choice('accounting::general.reversed',1) }} @endif
{{ trans_choice('core::general.branch',1) }} @if(!empty($data->first()->branch)) {{$data->first()->branch->name}} @endif {{ trans_choice('core::general.transaction',1) }} {{ trans_choice('core::general.date',1) }} {{$data->first()->date}}
{{ trans_choice('core::general.created_by',1) }} @if(!empty($data->first()->created_by)) {{$data->first()->created_by->first_name}} {{$data->first()->created_by->last_name}} @else {{ trans_choice('core::general.system',1) }} @endif {{ trans_choice('core::general.created_on',1) }} {{$data->first()->created_at}}
@foreach($data as $key) @endforeach
{{ trans_choice('core::general.id',1) }} {{ trans_choice('core::general.type',1) }} {{ trans_choice('core::general.account',1) }} {{ trans_choice('accounting::general.debit',1) }} {{ trans_choice('accounting::general.credit',1) }}
{{$key->id}} @if(!empty($key->chart_of_account)) @if($key->chart_of_account->account_type=='asset') {{trans_choice('accounting::general.asset',1)}} @endif @if($key->chart_of_account->account_type=='expense') {{trans_choice('accounting::general.expense',1)}} @endif @if($key->chart_of_account->account_type=='equity') {{trans_choice('accounting::general.equity',1)}} @endif @if($key->chart_of_account->account_type=='liability') {{trans_choice('accounting::general.liability',1)}} @endif @if($key->chart_of_account->account_type=='income') {{trans_choice('accounting::general.income',1)}} @endif @endif @if(!empty($key->chart_of_account)) {{$key->chart_of_account->name}} @endif @if(!empty($key->debit)) {{number_format($key->debit,2)}} @endif @if(!empty($key->credit)) {{number_format($key->credit,2)}} @endif
@endsection