@extends('backend.layouts.app') @section('title', 'Expense-Head') @section('content')

@if (@$data['edit']) {{ _trans('common.Edit') }} @else {{ _trans('common.Create') }} @endif {{ _trans('common.Expense-Head') }}

@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::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
{{ Form::close() }}
@endsection @push('js') @include('backend.partials.datatable') @endpush @section('scripts') @endsection