@extends('layouts.production') @section('addCss') @endsection @section('content')

{{Trans("mortgages.menu")}} {{ trans('mortgages.edit') }}

@include('layouts.includes.message')

{{ trans("mortgages.form_edit") }}

{{ trans("dashboard.others.show") }}
{{ Form::model($mortgage, [ 'method' => 'put', 'route' => ['mortgages.update', $mortgage->id], 'files' => true ]) }}
{{ trans("mortgages.customer_info") }}
{{ Form::label("fullname", trans("mortgages.fullname")) }} * {{ Form::text("fullname", null, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.fullname") ]) }} @if(isset($errors)) {{ $errors->first('fullname') }} @endif
{{ Form::label("tel", trans("mortgages.tel")) }} * {{ Form::text("tel", null, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.tel") ]) }} @if(isset($errors)) {{ $errors->first('tel') }} @endif
{{ Form::label("id_card", trans("mortgages.id_card")) }} * {{ Form::text("id_card", null, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.id_card") ]) }} @if(isset($errors)) {{ $errors->first('id_card') }} @endif
{{ Form::label("address", trans("mortgages.address")) }} {{ Form::textarea("address", null, [ 'class' => 'form-control', 'placeholder' => trans('mortgages.address'), 'rows' => 2 ]) }}
{{ trans("mortgages.product_info") }}
{{ Form::label("product_name", trans("mortgages.product_name")) }} * {{ Form::text("product_name", null, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.product_name") ]) }} @if(isset($errors)) {{ $errors->first('product_name') }} @endif
{{ Form::label("product_id", trans("mortgages.product_id")) }} * {{ Form::text("product_id", null, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.product_id") ]) }} @if(isset($errors)) {{ $errors->first('product_id') }} @endif
{{ Form::label("photo", trans("mortgages.photo")) }} {{ Form::file("photo", ['accept'=>"image/*",'capture'=>'camera', 'class' => "form-control", ]) }}
{{ Form::label("price", trans("mortgages.price")) }} * {{ Form::text("price", null, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.price") ]) }} @if(isset($errors)) {{ $errors->first('price') }} @endif
{{ Form::label("price_out", trans("mortgages.price_out")) }} * {{ Form::text("price_out", null, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.price_out") ]) }} @if(isset($errors)) {{ $errors->first('price_out') }} @endif
{{ Form::label("rate", trans("mortgages.rate")) }} * {{ Form::text("rate", null, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.rate") ]) }} @if(isset($errors)) {{ $errors->first('rate') }} @endif
{{ Form::label("start_date", trans("mortgages.start_date")) }} *
{{ Form::text("start_date", $selected, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.start_date"), 'id' => 'start_date' ]) }}
@if(isset($errors)) {{ $errors->first('start_date') }} @endif
{{ Form::label("end_date", trans("mortgages.end_date")) }} *
{{ Form::text("end_date", $selected, [ 'class' => 'form-control', 'placeholder' => trans("mortgages.end_date"), 'id' => 'end_date' ]) }}
@if(isset($errors)) {{ $errors->first('end_date') }} @endif
{{ Form::label("note", trans("mortgages.note")) }} {{ Form::textarea("note", null, [ 'class' => 'form-control', 'rows' => 2, 'placeholder' => trans("mortgages.note") ]) }}
{{ HTML::image(imgUrl($mortgage->photo), "Product Image", [ 'class' => 'img-responsive img-thumbnail', ]) }}
@endsection @section('addJs') {{ HTML::script('plugins/datepicker/bootstrap-datepicker.js') }} {{ HTML::script('plugins/datepicker/locales/bootstrap-datepicker.kh.js') }} @endsection