@extends('layouts.main') @section('content')
{{ Form::open(['url' => 'customer/create', 'method' => 'POST', 'name' => 'form', 'id' => 'createform', 'files' => true]) }} {{ Form::hidden("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, 1, ['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", '', ["class"=>"form-control", "id"=>"customer_id", "style" => "width:90px", "readonly"]) }}
{{ Form::hidden("company_id", $company_id) }}
{{ Form::label("company_name","取引先名",["class"=>"control-label btn"]) }} {{ Form::text("company_name", '', ["class"=>"form-control validate[required]", "id"=>"company_name", 'style' => 'width:50%']) }}
{{ Form::label("name01","担当者名",["class"=>"control-label btn"]) }} {{ Form::text("name01", '', ["class"=>"form-control validate[required]", "id"=>"name01", 'style' => 'width:25%']) }} {{ Form::text("name02", '', ["class"=>"form-control validate[required]", "id"=>"name02", 'style' => 'width:25%']) }}
{{ Form::label("kana01","担当者名(カナ)",["class"=>"control-label btn"]) }} {{ Form::text("kana01", '', ["class"=>"form-control validate[required]", "id"=>"kana01", 'style' => 'width:25%']) }} {{ Form::text("kana02", '', ["class"=>"form-control validate[required]", "id"=>"kana02", 'style' => 'width:25%']) }}
{{ Form::label("zip01","郵便番号",["class"=>"control-label btn"]) }} {{ Form::text("zip01", '', ["class"=>"form-control imeoff", "id"=>"zip01", "maxlength" => "3", 'style' => 'width:10%']) }} {{ Form::text("zip02", '', ["class"=>"form-control imeoff", "id"=>"zip02", "maxlength" => "4", 'style' => 'width:10%']) }}
{{ Form::label("pref","住所",["class"=>"control-label btn"]) }} {{ Form::select('pref', $prefs, 0, ['class' => 'form-control', 'id' => 'pref', 'style' => 'width:25%;']) }} {{ Form::text("addr01", '', ["class"=>"form-control", "id"=>"addr01", "style" => "width:25%"]) }} {{ Form::text("addr02", '', ["class"=>"form-control", "id"=>"addr02", "style" => "width:25%"]) }}
{{ Form::label("tel01","電話番号",["class"=>"control-label btn"]) }} {{ Form::tel("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", '', ["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", '', ["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", '', ["class"=>"form-control imeoff", "id"=>"email", 'style' => 'width:50%']) }}
{{ Form::label("password","パスワード",["class"=>"control-label btn"]) }} {{ Form::password("password", ["class"=>"form-control validate[required]", "id"=>"password", 'style' => 'width:20%']) }} {{ Form::hidden("default_password", '') }}
{{ Form::label("password_confirmation","パスワード(確認用)",["class"=>"control-label btn"]) }} {{ Form::password("password_confirmation", ["class"=>"form-control validate[required]", "id"=>"password_confirmation", 'style' => 'width:20%']) }}

商品単価設定

{{ Form::label("Company_1_standard","【法人向け】専用バッグM スタンダード",["class"=>"control-label btn"]) }} {{ Form::text("Company_1_standard", '', ["class"=>"form-control", "id"=>"Company_1_standard", "style" => "width:120px",]) }}円 {{ Form::label("Company_2_deo","【法人向け】専用バッグM デオドラント",["class"=>"control-label btn"]) }} {{ Form::text("Company_2_deo", '', ["class"=>"form-control", "id"=>"Company_2_deo", "style" => "width:120px",]) }}円 {{ Form::label("Company_3_aloma","【法人向け】専用バッグM アロマウォッシュ",["class"=>"control-label btn"]) }} {{ Form::text("Company_3_aloma", '', ["class"=>"form-control", "id"=>"Company_3_aloma", "style" => "width:120px",]) }}円
{{ Form::label("Company_L1_standard","【法人向け】専用バッグL スタンダード",["class"=>"control-label btn"]) }} {{ Form::text("Company_L1_standard", '', ["class"=>"form-control", "id"=>"Company_1_standard", "style" => "width:120px",]) }}円 {{ Form::label("Company_L2_deo","【法人向け】専用バッグL デオドラント",["class"=>"control-label btn"]) }} {{ Form::text("Company_L2_deo", '', ["class"=>"form-control", "id"=>"Company_L2_deo", "style" => "width:120px",]) }}円 {{ Form::label("Company_L3_aloma","【法人向け】専用バッグL アロマウォッシュ",["class"=>"control-label btn"]) }} {{ Form::text("Company_L3_aloma", '', ["class"=>"form-control", "id"=>"Company_L3_aloma", "style" => "width:120px",]) }}円
@if ($message == "") {{ Form::hidden("status", 2) }} {{ 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