@extends('layouts.admin') @section('title', $account->name) @section('new_button')
@stack('edit_button_start') @can('update-sales-customers') {{ trans('general.edit') }} @endcan @stack('edit_button_end')
@endsection @section('content')
@stack('account_incoming_card_start')
{{ trans('accounts.incoming') }}
@money($account->income_balance, $account->currency_code, true)
@stack('account_incoming_card_end') @stack('account_outgoing_card_start')
{{ trans('accounts.outgoing') }}
@money($account->expense_balance, $account->currency_code, true)
@stack('account_outgoing_card_end') @stack('account_balance_card_start')
{{ trans('widgets.account_balance') }}
@money($account->balance, $account->currency_code, true)
@stack('account_balance_card_end')
@stack('account_transactions_content_start')
@foreach($transactions as $item) @endforeach
{{ trans_choice('general.date', 1) }} {{ trans('general.amount') }} {{ trans_choice('general.types', 1) }} {{ trans_choice('general.categories', 1) }}
@date($item->paid_at) @money($item->amount, $item->currency_code, true) {{ $item->type_title }} {{ $item->category->name }}
@stack('account_transactions_content_end') @stack('account_transfers_content_start')
@foreach($transfers as $item) @endforeach
{{ trans('general.date') }} {{ trans('general.amount') }} {{ trans_choice('transfers.from_account', 1) }} {{ trans_choice('transfers.to_account', 1) }}
@date($item->expense_transaction->paid_at) @money($item->expense_transaction->amount, $item->expense_transaction->currency_code, true) {{ $item->expense_transaction->account->name }} {{ $item->income_transaction->account->name }}
@stack('account_transfers_content_end')
@endsection @push('scripts_start') @endpush