@extends('backEnd.master') @section('title') @lang('accounts.add_expense') @endsection @section('mainContent') @php $setting = app('school_info'); if(!empty(@$setting->currency_symbol)){ @$currency = @$setting->currency_symbol; }else{ @$currency = '$'; } @endphp
@if(isset($add_expense)) @if(userPermission("add-expense-store")) @endif @endif
@if(isset($add_expense)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => array('add-expense-update',@$add_expense->id), 'method' => 'PUT', 'enctype' => 'multipart/form-data' , 'id' => 'add-expense-update']) }} @else @if(userPermission("add-expense-store")) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'add-expense-store', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'add-expense']) }} @endif @endif

@if(isset($add_expense)) @lang('accounts.edit_expense') @else @lang('accounts.add_expense') @endif

@if (@$errors->has('name')) {{ @$errors->first('name') }} @endif
@if ($errors->has('expense_head')) {{ @$errors->first('expense_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,TXT are allowed for upload) @if ($errors->has('file')) {{ $errors->first('file') }} @endif
@php $tooltip = ""; if(userPermission("add-expense-store") || userPermission('add-expense-edit')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('accounts.expense_list')

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