@extends('backEnd.master') @section('title') @lang('accounts.add_income') @endsection @section('mainContent')
@if(isset($add_income)) @if(userPermission("add_income_store")) @endif @endif
@if(isset($add_income)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'add_income_update', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'add-income-update']) }} @else @if(userPermission("add_income_store")) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'add_income_store', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'add-income']) }} @endif @endif

@if(isset($add_income)) @lang('accounts.edit_income') @else @lang('accounts.add_income') @endif

@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if (@$errors->has('income_head')) {{ @$errors->first('income_head') }} @endif
@if (@$errors->has('payment_method')) {{ @$errors->first('payment_method') }} @endif
@if ($errors->has('accounts')) {{ @$errors->first('accounts') }} @endif
{{ $errors->first('date') }}
@if ($errors->has('amount')) {{ @$errors->first('amount') }} @endif
file):trans('common.file')):trans('common.file') }}" readonly >
(PDF,DOC,DOCX,JPG,JPEG,PNG are allowed for upload) @if ($errors->has('file')) {{ $errors->first('file') }} @endif
@php $tooltip = ""; if(userPermission("add_income_store") || userPermission("add_income_edit")){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('accounts.income_list')

si @lang('common.name') @lang('accounts.payment_method') @lang('common.date') @lang('accounts.a_c_Head') @lang('accounts.amount') @lang('common.action')
{{-- delete income modal here --}} @endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.server_side_datatable') @include('backEnd.partials.date_picker_css_js') @push('script') @endpush