@extends ('core.layouts.app') @section ('title', trans('labels.backend.transactions.management') . ' | ' . trans('labels.backend.transactions.create')) @section('page-header')

{{ trans('labels.backend.transactions.management') }} {{ trans('labels.backend.transactions.create') }}

@endsection @section('content')

{{ trans('labels.backend.transactions.view') }}

@include('focus.transactions.partials.transactions-header-buttons')

{{trans('transactions.account_id')}}

{{$transaction->account['holder']}}

{{trans('transactions.trans_category_id')}}

{{$transaction->category['name']}}

{{trans('transactions.debit')}}

{{amountFormat($transaction['debit'])}}

{{trans('transactions.credit')}}

{{amountFormat($transaction['credit'])}}

@php $payer=''; $payer_lang=''; $related_bill=''; $related_bill_lang=''; if ($transaction['payer_id']) { switch ($transaction->relation_id) { case 1 : $payer= ''.$transaction->customer->name.''; $payer_lang=trans('customers.customer'); $related_bill_lang=trans('invoices.invoice'); $related_bill= '#'.$transaction->invoice->tid.''; break; } } else if ($transaction->payer) { $payer= $transaction->payer; $payer_lang=trans('transactions.payer'); } @endphp @if($payer)

{{$payer_lang}}

{!!$payer!!}

@endif @if($related_bill)

{{$related_bill_lang}}

{!! $related_bill !!}

@endif

{{trans('transactions.method')}}

{{$transaction['method']}}

{{trans('transactions.payment_date')}}

{{dateFormat($transaction['payment_date'])}}

{{trans('general.employee')}}

{{$transaction->user['first_name'].' '.$transaction->user['last_name']}}

{{trans('general.note')}}

{{$transaction['note']}}

@endsection