{{ __('websystem.header.customer') }}
{!! Form::model($websystem, ['method' => 'PATCH','route' => ['websystem.update.customer', $websystem->slug]]) !!}
{!! Form::text('customer_code', null, array('placeholder' => __('websystem.placeholder.customer_code'),'class' => 'form-control')) !!} @if ($errors->has('customer_code')) {{ $errors->first('customer_code') }} @else *required
*Ex: Customer Management, you can write CM @endif
{!! Form::text('long_customer_code', null, array('placeholder' => __('websystem.placeholder.long_customer_code'),'class' => 'form-control')) !!} @if ($errors->has('long_customer_code')) {{ $errors->first('long_customer_code') }} @else *beetwen 3-25 @endif
@php $longCode = '%0' . $websystem->long_customer_code . 'd'; $customerId = $websystem->customer_code .sprintf('%02d', 1). '-' . sprintf($longCode, 1); @endphp
{{$customerId}}
{{$websystem->customer_code}} : Identify your company.
{{sprintf('%02d', 1)}} : Identify your server id.
{{sprintf($longCode, 1)}} : Identify your customer id.
Update at : {{ Carbon\Carbon::parse($websystem->updated_at)->translatedFormat('d M Y, H:i:s')}}
{!! Form::close() !!}