@extends('layouts.admin') @section('title', trans_choice('general.transactions', 2)) @section('new_button') {{ trans('import.import') }} {{ trans('general.export') }} @endsection @section('content')
@sortablelink('account.name', trans_choice('general.accounts', 1)) | @sortablelink('type', trans_choice('general.types', 1)) | @sortablelink('amount', trans('general.amount')) | ||
---|---|---|---|---|
{{ $item->account->name }} | {{ trans_choice('general.' . Str::plural($item->type), 1) }} | @if(!is_null(data_get($item, 'bill.id')))@money($item->amount, $item->currency_code, true) | @elseif(!is_null(data_get($item, 'invoice.id')))@money($item->amount, $item->currency_code, true) | @else@money($item->amount, $item->currency_code, true) | @endif