@extends('layouts.page') @section('title') Financials Create @endsection @section('navs') Back @endsection @section('content') @include('common.errors') @include('financial.script')
{!! Form::open(['url' => route('financial.save', $financial->id), 'id' => 'idForm']) !!}
{{ Form::text('name', old('name', $financial->id ? $financial->name : ''), ['class' => 'form-control', 'oninput' => 'chkIsSBLC()', 'id' => 'idName']) }}
{{ Form::select('fiscal_year', AppHelper::options('fiscal_years'), old('fiscal_year', $financial->id ? $financial->fiscal_year : request()->fiscal_year), ['class' => 'form-control']) }}
{{ Form::select('currency', ['INR' => 'INR', 'USD' => 'USD'], old('currency', $financial->currency), ['class' => 'form-control']) }}
{{ Form::text('dollar_exchange_rate', old('dollar_exchange_rate', $financial->dollar_exchange_rate ? $financial->dollar_exchange_rate : $dollarRate), ['class' => 'form-control']) }}
@foreach($months as $mk => $mv) @endforeach @foreach(['Total Inflow', 'Total Outflow'] as $t) @foreach($months as $mk => $mv) @endforeach @endforeach @foreach($data['inflow'] as $ck => $cv)
Warning: Undefined variable $ck in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 70

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 70

Warning: Undefined variable $ck in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 73

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 73
@if (!$valid) @continue @endif @foreach($months as $mk => $mv) @endforeach @endforeach @foreach($data['outflow'] as $ck => $cv)
Warning: Undefined variable $ck in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 102

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 102

Warning: Undefined variable $inflows in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 106

Warning: Undefined variable $ck in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 106

Warning: Trying to access array offset on null in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 106

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 106
@if (!$valid) @continue @endif @foreach($cv as $k => $v)
Warning: Undefined variable $v in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 117

Fatal error: Uncaught TypeError: array_sum(): Argument #1 ($array) must be of type array, null given in /var/www/html/pruthvi/resources/views/financial/create.blade.php:117 Stack trace: #0 /var/www/html/pruthvi/resources/views/financial/create.blade.php(117): array_sum() #1 {main} thrown in /var/www/html/pruthvi/resources/views/financial/create.blade.php on line 117
Categories / Type{{$mv}}Total
{{ $t }} {{ array_sum($data[$t])}}
Inflow Categories
{{ $ck }} {{ array_sum($cv) }}
Outflow Categories
{{ $ck }}