@extends('layouts.master') @section('title') {{ $expense->name }} @endsection @section('content')

{{ $expense->name }}

@foreach(\App\Models\CustomFieldMeta::where('category', 'expenses')->where('parent_id', $expense->id)->get() as $key) @endforeach
{{ trans_choice('general.branch',1) }} @if(!empty($expense->office)) {{$expense->office->name}} @endif
{{ trans_choice('general.type',1) }} @if(!empty($expense->type)) {{$expense->type->name}} @endif
{{ trans('general.date') }} {{ $expense->date }}
{{ trans_choice('general.amount',1) }} {{ number_format($expense->amount,2) }}
{{ trans_choice('general.created_by',1) }} @if(!empty($expense->created_by)) {{$expense->created_by->first_name}} {{$expense->created_by->last_name}} @endif
{{ trans('general.updated_at') }} {{ $expense->updated_at }}
@if(!empty($key->custom_field)) {{$key->custom_field->name}} @endif @if($key->custom_field->field_type=="checkbox") @foreach(unserialize($key->name) as $v=>$k) {{$k}}
@endforeach @else {{$key->name}} @endif
{!! $expense->notes !!}
@endsection @section('footer-scripts') @endsection