@extends('admin.layout.app') @section('title','Edit Depreciation Asset') @push('headerscript') @endpush @section('content')

Edit Depreciation Asset

{!! Form::open(['route'=>array('depreciation-asset.update', $d_asset->id), 'onsubmit'=>'BtnSubmit.disabled = true', 'method' => 'put']) !!}
{{$errors->first('voucher_no')}}
{{$errors->first('voucher_date')}}
{{$errors->first('invoice_no')}}
{{$errors->first('hitting_date')}}
{!! Form::select("branch_id", \App\Http\Helpers\Helper::getBranchData(), old("branch_id",$d_asset->branch_id), ['class'=>'form-control select2' ,'id' => 'branch_id','required'=>'required'] ) !!}
@foreach($d_asset->depreciationAssetDetails as $d_detail) @endforeach
Account Name* Value Of Asset* % Depreciation* No Of Months* Per Month Amount Deduct
{!! Form::select("customer_id[]", [''=>'Select']+$customers, old("customer_id", $d_detail->customer_id), ['class'=>'form-control select2', 'required', 'id'=>'customer_id'.$loopCount] ) !!}
{!! Form::close() !!}
@endsection @push('footerscript') @endpush