@if (@$data['edit'])
{{ Form::open(['route' => ['expense-head.update', @$data['edit']->id], 'class' => 'card', 'id' => 'portfolio-form', 'files' => 'true', 'method' => 'PUT']) }}
@else
{!! Form::open([
'route' => 'expense-head.store',
'enctype' => 'multipart/form-data',
'method' => 'post',
'languages' => true,
'id' => 'portfolio-form',
]) !!}
@endif
{{ Form::close() }}
{{ Form::label('name', 'Name', ['class' => 'form-label required']) }}
{{ Form::text('name', @$data['edit'] ? @$data['edit']->name : null, ['class' => 'form-control']) }}
@error('name')
{{ $message }}
@enderror
{{ Form::label('status', 'Status', ['class' => 'form-label required']) }}
{{ Form::select('status', [1 => 'Active', 0 => 'Disable'], @$data['edit'] ? @$data['edit']->status : null, ['class' => 'form-control select2']) }}
@error('status')
{{ $message }}
@enderror