@if (isset($customer))
{!! Form::model($customer, ['url' => $type . '/' . $customer->id, 'method' => 'put', 'files'=> true,'id'=>'customer']) !!}
@else
{!! Form::open(['url' => $type, 'method' => 'post', 'files'=> true,'id'=>'customer']) !!}
@endif
{{--@if(!Request::is('customer/*/edit'))--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--@else--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{----}}
{{--
--}}
{{--@endif--}}
{!! Form::close() !!}