@extends('layouts.app') @section('title', trans('customer.edit').' '.$customer->name) @section('content')

{{ link_to_route('customers.show', trans('customer.back_to_show'), [$customer->id], ['class' => 'btn btn-default']) }}
{{ $customer->name }} {{ trans('customer.edit') }}

@includeWhen(Request::has('action'), 'customers.forms') {!! Form::model($customer, ['route' => ['customers.update', $customer->id],'method' => 'patch']) !!}
@lang('customer.detail') {!! FormField::text('name', ['required' => true]) !!}
{!! FormField::radios('is_active', ['Non Aktif', 'Aktif']) !!}
{!! FormField::textarea('notes') !!}
@lang('customer.contact') {!! FormField::text('pic') !!}
{!! FormField::email('email') !!}
{!! FormField::text('phone') !!}
{!! FormField::text('website') !!} {!! FormField::textarea('address') !!}
{!! Form::close() !!} @endsection