@extends('layouts.member-app') @section('page-title')

@lang($pageTitle) - {{ ucwords($expense->item_name) }}

@lang('app.edit')
@endsection @push('head-script') @endpush @section('content')
@lang('app.title')
{{ ucwords($expense->item_name) }} @if ($expense->status == 'inactive') @else @endif
@lang('app.category')

{{ (!is_null($expense->category_id)) ? ucwords($expense->category->category_name) : "--"}}

@lang('app.project')

{{ (!is_null($expense->project_id)) ? ucwords($expense->project->project_name) : "--"}}

@lang('app.member')

{{ (!is_null($expense->user_id)) ? ucfirst($expense->user->name) : "--"}}

@lang('app.description')

{!! $expense->description !!}

@if($expense->bill)
@lang('app.bill')
{{ $expense->bill }}
@endif

@lang('app.recurringDetail')


@lang('app.price')
{{ $expense->total_amount }}
@lang('app.totalAmount')

{{ $expense->currency->currency_symbol.''.$expense->recurrings->sum('price') }}

@lang('app.completedExpense')

{{ $expense->recurrings->count() }}

@lang('app.pendingExpense')
@if($expense->unlimited_recurring == 0 ) @if($expense->billing_cycle > $expense->recurrings->count())

{{ $expense->billing_cycle - $expense->recurrings->count() }}

@else

@endif @else

@endif
@lang('modules.expensesRecurring.lastPaymentDate')
@if($expense->recurrings->count() > 0) {{ $expense->recurrings[$expense->recurrings->count()-1]->created_at->format($global->date_format) }} @else -- @endif
@endsection @push('footer-script') @endpush