@extends('accounting::layouts.app') @section('title') {{ trans_choice('accounting::lang.view', 1) }} {{ trans_choice('accounting::lang.transaction', 1) }} @endsection @section('content') @include('accounting::layouts.nav') @component('accounting::components.section_header') @slot('title') {{ trans_choice('accounting::general.accounting', 1) }} @endslot @slot('subtitle') {{ trans_choice('accounting::lang.view', 1) }} {{ trans_choice('accounting::lang.transaction', 1) }} @endslot @endcomponent
@can('product.view')
@component('accounting::components.box') @slot('title') {{ trans_choice('accounting::lang.transaction', 1) }} # {{ $data->first()->transaction_number }} @endslot @slot('header')
@if ($data->first()->reversed == 0 && $data->first()->reversible == 1) @can('accounting.journal_entries.reverse') {{ trans_choice('accounting::general.reverse', 1) }} @endcan @else {{ trans_choice('accounting::lang.transaction', 1) }} {{ trans_choice('accounting::general.reversed', 1) }} @endif
@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 }}
@foreach ($data as $key) @endforeach
{{ 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) }}
{{ $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
@endslot @endcomponent
@endcan
@stop @section('javascript') @endsection