@can('product.view')
@component('accounting::components.box')
@slot('title')
{{ trans_choice('accounting::lang.transaction', 1) }} # {{ $data->first()->transaction_number }}
@endslot
@slot('header')
@endslot
@slot('body')
{{ trans_choice('accounting::lang.business_location', 1) }} |
@if (!empty($data->first()->business_location))
{{ $data->first()->business_location->name }}
@endif
|
{{ trans_choice('accounting::lang.transaction', 1) }} {{ trans_choice('accounting::lang.date', 1) }}
|
{{ $data->first()->date }}
|
{{ trans_choice('accounting::lang.created_by', 1) }} |
@if (!empty($data->first()->created_by))
{{ $data->first()->created_by->first_name }} {{ $data->first()->created_by->last_name }}
@else
{{ trans_choice('accounting::lang.system', 1) }}
@endif
|
{{ trans_choice('accounting::lang.created_on', 1) }} |
{{ $data->first()->created_at }}
|
{{ trans_choice('accounting::lang.id', 1) }} |
{{ trans_choice('accounting::lang.type', 1) }} |
{{ trans_choice('accounting::lang.account', 1) }} |
{{ trans_choice('accounting::general.debit', 1) }} |
{{ trans_choice('accounting::general.credit', 1) }} |
@foreach ($data as $key)
{{ $key->id }} |
@if (!empty($key->chart_of_account))
@if ($key->chart_of_account->account_type == 'asset')
{{ trans_choice('accounting::general.asset', 1) }}
@elseif ($key->chart_of_account->account_type == 'expense')
{{ trans_choice('accounting::general.expense', 1) }}
@elseif ($key->chart_of_account->account_type == 'equity')
{{ trans_choice('accounting::general.equity', 1) }}
@elseif ($key->chart_of_account->account_type == 'liability')
{{ trans_choice('accounting::general.liability', 1) }}
@elseif ($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
|
@endforeach
@endslot
@endcomponent
@endcan
@stop
@section('javascript')
@endsection