@extends('layouts.admin') @section('title', trans_choice('general.transactions', 2)) @section('new_button') @permission('create-sales-revenues') {{ trans('general.add_income') }} @endpermission @permission('create-purchases-payments') {{ trans('general.add_expense') }} @endpermission {{ trans('import.import') }} {{ trans('general.export') }} @endsection @section('content')
@sortablelink('paid_at', trans('general.date')) | @sortablelink('account.name', trans_choice('general.accounts', 1)) | @sortablelink('type', trans_choice('general.types', 1)) | @sortablelink('category.name', trans_choice('general.categories', 1)) | @sortablelink('description', trans('general.description')) | @sortablelink('amount', trans('general.amount')) |
---|---|---|---|---|---|
@date($item->paid_at) | {{ $item->account->name }} | {{ trans_choice('general.' . Str::plural($item->type), 1) }} | {{ $item->category->name }} | {{ $item->description }} | @php $id = !empty($item->document_id) ? $item->document_id : $item->id; $route = ($item->type == 'income') ? (!empty($item->document_id) ? 'invoices.show' : 'revenues.edit') : (!empty($item->document_id) ? 'bills.show' : 'payments.edit'); @endphp @money($item->amount, $item->currency_code, true) |