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

{{ $other_income->name }}

@foreach(\App\Models\CustomFieldMeta::where('category', 'other_income')->where('parent_id', $other_income->id)->get() as $key) @endforeach
{{ trans_choice('general.branch',1) }} @if(!empty($other_income->office)) {{$other_income->office->name}} @endif
{{ trans_choice('general.type',1) }} @if(!empty($other_income->type)) {{$other_income->type->name}} @endif
{{ trans('general.date') }} {{ $other_income->date }}
{{ trans_choice('general.amount',1) }} {{ number_format($other_income->amount,2) }}
{{ trans_choice('general.created_by',1) }} @if(!empty($other_income->created_by)) {{$other_income->created_by->first_name}} {{$other_income->created_by->last_name}} @endif
{{ trans('general.updated_at') }} {{ $other_income->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
{!! $other_income->notes !!}
@endsection @section('footer-scripts') @endsection