@extends('backend.layouts.layout-2') @if($edit) @section('page-title', trans('app.edit_ashom')) @section('page-heading', trans('app.edit_ashom')) @else @section('page-title', trans('app.add_ashom')) @section('page-heading', trans('app.add_ashom')) @endif @section('styles') @parent @endsection @section('scripts') @parent @endsection @section('content') @if($edit) {!! Form::open(['route' => ['ashom.update',$ashom->id], 'method' => 'PUT','files' => true, 'id' => 'ashom-form']) !!} @else {!! Form::open(['route' => 'ashom.store', 'files' => true, 'id' => 'ashom-form']) !!} @endif
@lang('app.ashom_details')
{!! Form::text('name',$edit ? $ashom->name : old('name'),['class' => 'form-control','placeholder' => trans('app.name')]) !!}
{!! Form::number('price',$edit ? $ashom->price : old('price') ?? '',['class' => 'form-control','placeholder' => trans('app.price')]) !!}
{!! Form::number('total_stocks',$edit ? $ashom->total_stocks : old('total_stocks') ?? '',['class' => 'form-control','placeholder' => trans('app.total_stocks')]) !!}
{!! Form::close() !!} @stop