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

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

@if (Request::has('action')) @include('customers.forms') @else {!! Form::model($customer, ['route' => ['customers.update', $customer->id], 'method' => 'patch']) !!}
{{ __('customer.detail') }} {!! FormField::text('name', ['required' => true]) !!}
{!! FormField::radios('is_active', [__('app.in_active'), __('app.active')]) !!}
{!! FormField::textarea('notes') !!}
{{ __('customer.contact') }} {!! FormField::text('pic') !!}
{!! FormField::email('email') !!}
{!! FormField::text('phone') !!}
{!! FormField::text('website') !!} {!! FormField::textarea('address') !!}
{!! Form::close() !!} @endif @endsection