@extends('layouts.app') @section('page-title')
@lang($pageTitle)
@lang('app.menu.home')
@lang($pageTitle)
@lang('app.update')
@endsection @push('head-script')
@endpush @section('content')
@lang('modules.expenses.updateExpense')
{!! Form::open(['id'=>'updateExpense','class'=>'ajax-form','method'=>'PUT']) !!}
@lang('modules.expenses.itemName')
@lang('modules.projects.projectCategory')
@forelse($categories as $category)
id == $expense->category_id) selected @endif value="{{ $category->id }}">{{ ucwords($category->category_name) }}
@empty
@lang('messages.noProjectCategoryAdded')
@endforelse
@lang('app.description')
{{ $expense->description }}
@lang('modules.messages.chooseMember')
@foreach($employees as $employee)
user_id) selected @endif value="{{ $employee['user']['id'] }}">{{ ucwords($employee['user']['name']) }}
@endforeach
@lang('modules.invoices.project')
@lang('app.selectProject')
@forelse($employees[0]['user']['projects'] as $project)
project_id) selected @endif value="{{ $project['id'] }}"> {{ $project['project_name'] }}
@empty @endforelse
@lang('app.price')
@lang('modules.invoices.currency')
@forelse($currencies as $currency)
id == $expense->currency_id) selected @endif value="{{ $currency->id }}"> {{ $currency->currency_name }} - ({{ $currency->currency_symbol }})
@empty @endforelse
@lang('modules.invoices.billingFrequency')
@lang('app.daily')
@lang('app.weekly')
@lang('app.bi-weekly')
@lang('app.monthly')
@lang('app.quarterly')
@lang('app.half-yearly')
@lang('app.annually')
@lang('modules.expensesRecurring.dayOfWeek')
@lang('modules.expensesRecurring.dayOfMonth')
unlimited_recurring == 1) checked @endif type="checkbox">
@lang('modules.expenses.infinite')
unlimited_recurring == 1) style="display: none" @endif>
@lang('modules.invoices.billingCycle')
@lang('app.status')
status == 'active') selected @endif value="active">@lang('app.active')
status == 'inactive') selected @endif value="inactive">@lang('app.inactive')
@lang('app.invoice')
@lang('app.selectFile')
@lang('app.change')
@lang('app.remove')
@lang('app.save')
@lang('app.reset')
{!! Form::close() !!}
@endsection @push('footer-script') @endpush