@extends('layouts.main') @section('content')
{{ Form::open(['url' => 'customer/update/' . $id, 'method' => 'POST', 'name' => 'form', 'id' => 'createform', 'files' => true]) }} {{ Form::hidden("customer_id", $datas->customer_id, ["id"=>"customer_id"]) }}
取引先情報

取引先情報

{{-- 通知メッセージ --}} @if ($message <> "")
{{ Form::label("message", $message, ["class"=>"form-control btn-success btn"]) }}
@endif @if (session()->has('errors'))
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@if ($company_id == 0) @endif @if ($company_id <> 0) @endif
{{ Form::label("mobile_phone_id","作業店設定",["class"=>"control-label btn"]) }} {{ Form::select('mobile_phone_id', $company, $datas->mobile_phone_id, ['class' => 'form-control', 'id' => 'mobile_phone_id', 'style' => 'width:50%;', 'onChange' => 'makeList_Company()']) }}
{{ Form::label("customer_id","顧客番号",["class"=>"control-label btn"]) }} {{ Form::text("customer_id", $datas->customer_id, ["class"=>"form-control", "id"=>"customer_id", "style" => "width:90px", "readonly"]) }}
{{ Form::hidden("company_id", $company_id) }} {{ Form::hidden("status", $datas->status) }}
{{ Form::label("name01","担当者名",["class"=>"control-label btn"]) }} {{ Form::text("name01", $datas->name01, ["class"=>"form-control validate[required]", "id"=>"name01", 'style' => 'width:25%']) }} {{ Form::text("name02", $datas->name02, ["class"=>"form-control validate[required]", "id"=>"name02", 'style' => 'width:25%']) }}
{{ Form::label("kana01","担当者名(カナ)",["class"=>"control-label btn"]) }} {{ Form::text("kana01", $datas->kana01, ["class"=>"form-control validate[required]", "id"=>"kana01", 'style' => 'width:25%']) }} {{ Form::text("kana02", $datas->kana02, ["class"=>"form-control validate[required]", "id"=>"kana02", 'style' => 'width:25%']) }}
{{ Form::label("zip01","郵便番号",["class"=>"control-label btn"]) }} {{ Form::text("zip01", $datas->zip01, ["class"=>"form-control imeoff", "id"=>"zip01", "maxlength" => "3", 'style' => 'width:10%']) }} {{ Form::text("zip02", $datas->zip02, ["class"=>"form-control imeoff", "id"=>"zip02", "maxlength" => "4", 'style' => 'width:10%']) }}
{{ Form::label("pref","住所",["class"=>"control-label btn"]) }} {{ Form::select('pref', $prefs, $datas->pref, ['class' => 'form-control', 'id' => 'pref', 'style' => 'width:25%;']) }} {{ Form::text("addr01", $datas->addr01, ["class"=>"form-control", "id"=>"addr01", "style" => "width:25%"]) }} {{ Form::text("addr02", $datas->addr02, ["class"=>"form-control", "id"=>"addr02", "style" => "width:25%"]) }}
{{ Form::label("tel01","電話番号",["class"=>"control-label btn"]) }} {{ Form::tel("tel01", $datas->tel01, ["class"=>"form-control imeoff", "id"=>"tel01", "maxlength"=>"4", 'style' => 'width:25%', "pattern"=>"\d{1,5}-\d{1,4}-\d{3,4}", 'onChange' => 'getCustomer()']) }} - {{ Form::tel("tel02", $datas->tel02, ["class"=>"form-control imeoff", "id"=>"tel02", "maxlength"=>"4", 'style' => 'width:25%', "pattern"=>"\d{1,5}-\d{1,4}-\d{3,4}", 'onChange' => 'getCustomer()']) }} - {{ Form::tel("tel03", $datas->tel03, ["class"=>"form-control imeoff", "id"=>"tel03", "maxlength"=>"4", 'style' => 'width:25%', "pattern"=>"\d{1,5}-\d{1,4}-\d{3,4}", 'onChange' => 'getCustomer()']) }}
{{ Form::label("email","E-Mail",["class"=>"control-label btn"]) }} {{ Form::tel("email", $datas->email, ["class"=>"form-control imeoff", "id"=>"email", 'style' => 'width:50%']) }}
@if ($message == "") {{ Form::hidden("status", $datas->status) }} {{ Form::button("更新", ["class"=>"btn btn-success", "id"=>"submit_btn"]) }} {{ Form::button("キャンセル", ["class"=>"btn btn-default", "onClick"=>"javascript:window.history.back(-1);return false;"]) }} @else {{ Form::button("キャンセル", ["class"=>"btn btn-default", "onClick"=>"location.href='/WASHMATE-ADMIN/public/customer/index'"]) }} @endif
{!! Form::close() !!}
@endsection