@extends('adminlte::page')
@section('title_prefix', $staff2000_contract['2or_code'].'｜')
@section('title', 'Staff2000契約詳細')
@section('content_header')
    <h1>Staff2000契約詳細</h1>
    <ol class="breadcrumb">
        <li>
            <a href="{{ url('home') }}">
                <span class="glyphicon glyphicon-home"></span>Home
            </a>
        </li>
        <li>
            <a href="{{ url('staff2000_contract') }}">Staff2000契約一覧</a>
        </li>
        <li class="active">ｵｰﾀﾞｰｺｰﾄﾞ:{{ $staff2000_contract['2or_code'] }} 契約詳細</li>
    </ol>
@stop
@section('content')
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-info collapsed-box">
                <div class="box-header" data-widget="collapse">
                    <h3 class="box-title">スタッフケア</h3>
                    <div class="box-tools pull-right">
                        <button type="button" class="btn btn-box-tool"><i class="fa fa-plus"></i>
                        </button>
                    </div>
                </div>
                <div class="box-body">
                    @if(!$staff2000_contract->staff_cares->isEmpty())
                        <table class="table table-sm">
                            <thead>
                            <tr>
                                <th>スタッフケアID</th>
                                <th>編集</th>
                                <th>クライアントID・名</th>
                                <th>開始日～終了日</th>
                                <th>更新予定</th>
                                <th class="col-sm-6">スタッフケア</th>
                                <th>指揮命令・苦情</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($staff2000_contract->staff_cares as $staff_care)
                                <tr>
                                    <td><a href="{{ url('staff_care/view/' . $staff_care->sc_id) }}">{{ $staff_care->sc_id }}</a></td>
                                    <td><a href="{{ url('staff_care/' . $staff_care->sc_id . '/edit') }}">{{ $staff_care->sc_id }}</a></td>
                                    <td>{!! nl2br($staff_care->client_id_and_name) !!}</td>
                                    <td>{!! nl2br($staff_care->start_date_and_end_date) !!}</td>
                                    <td>{{ $staff_care->contract_renew_state }}</td>
                                    <td>{!! nl2br($staff_care->sc_staffu_care) !!}</td>
                                    <td>{!! nl2br($staff_care->command_and_complaint) !!}</td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    @else
                        <p>登録はありません</p>
                    @endif
                </div>
            </div>
        </div>

        <div class="col-xs-6">
            {{Form::open(['url' => 'staff2000_contract/' . $staff2000_contract['2or_code'], 'method' => 'PUT', 'class' => 'form-horizontal'])}}
            <div class="box box-info collapsed-box">
                <div class="box-header" data-widget="collapse">
                    <h3 class="box-title">発送・返却日</h3>
                    <div class="box-tools pull-right">
                        <button type="button" class="btn btn-box-tool"><i class="fa fa-plus"></i>
                        </button>
                    </div>
                </div>
                <div class="box-body">
                    <h4 class="box-title col-sm-12">クライアント</h4>
                    <div class="form-group input text <?= $errors->has('client_shipping_date') ? 'has-error' : '' ?>">
                        <label class="col-sm-2 control-label">発送日</label>
                        <div class="col-sm-8">
                            {{ Form::text('client_shipping_date', $staff2000_contract->client_shipping_date ?? old('client_shipping_date'), ['class' => 'form-control date']) }}
                            @if($errors->has('client_shipping_date'))
                                @foreach($errors->get('client_shipping_date') as $error)
                                    <span class="help-block">{{$error}}</span>
                                @endforeach
                            @endif
                        </div>
                    </div>
                    <div class="form-group input text <?= $errors->has('client_return_date') ? 'has-error' : '' ?>">
                        <label class="col-sm-2 control-label">返却日</label>
                        <div class="col-sm-8">
                            {{ Form::text('client_return_date', $staff2000_contract->client_return_date ?? old('client_return_date'), ['class' => 'form-control date']) }}
                        </div>
                        @if($errors->has('client_return_date'))
                            @foreach($errors->get('client_return_date') as $error)
                                <span class="help-block">{{$error}}</span>
                            @endforeach
                        @endif
                    </div>
                    <h4 class="box-title col-sm-12">スタッフ</h4>
                    <div class="form-group input text <?= $errors->has('staff_shipping_date') ? 'has-error' : '' ?>">
                        <label class="col-sm-2 control-label">発送日</label>
                        <div class="col-sm-8">
                            {{ Form::text('staff_shipping_date', $staff2000_contract->staff_shipping_date ?? old('staff_shipping_date'), ['class' => 'form-control date']) }}
                            @if($errors->has('staff_shipping_date'))
                                @foreach($errors->get('staff_shipping_date') as $error)
                                    <span class="help-block">{{$error}}</span>
                                @endforeach
                            @endif
                        </div>
                    </div>
                    <div class="form-group input text <?= $errors->has('staff_return_date') ? 'has-error' : '' ?>">
                        <label class="col-sm-2 control-label">返却日</label>
                        <div class="col-sm-8">
                            {{ Form::text('staff_return_date', $staff2000_contract->staff_return_date ?? old('staff_return_date'), ['class' => 'form-control date']) }}
                            @if($errors->has('staff_return_date'))
                                @foreach($errors->get('staff_return_date') as $error)
                                    <span class="help-block">{{$error}}</span>
                                @endforeach
                            @endif
                        </div>
                    </div>
                </div>
                <div class="box-footer">
                    <button class="btn btn-success pull-right" name="date_submit" type="submit">発送・返却日　登録</button>
                </div>
            </div>
            {{Form::close()}}
        </div>

        <div class="col-xs-6">
            {{Form::open(['url' => 'staff2000_contract/' . $staff2000_contract['2or_code'], 'method' => 'PUT', 'class' => 'form-horizontal'])}}
            <div class="box box-info collapsed-box">
                <div class="box-header" data-widget="collapse">
                    <h3 class="box-title">更新予定</h3>
                    <div class="box-tools pull-right">
                        <button type="button" class="btn btn-box-tool"><i class="fa fa-plus"></i>
                        </button>
                    </div>
                </div>
                <div class="box-body">
                        <div class="form-group input text <?= $errors->has('scheduled_update_next_month') ? 'has-error' : '' ?>">
                            <label class="col-sm-3 control-label">更新予定</label>
                            <div class="col-sm-8">
                                {{ Form::select('scheduled_update_next_month', $scheduled_update_list, $staff2000_contract->scheduled_update_next_month ?? old('scheduled_update_next_month'), ['class' => 'form-control', 'placeholder' => '選択してください']) }}
                                @foreach($errors->get('scheduled_update_next_month') as $error)
                                    <span class="help-block">{{$error}}</span>
                                @endforeach
                            </div>
                        </div>
                        <div class="form-group input text <?= $errors->has('contract_termination_reason') ? 'has-error' : '' ?>">
                            <label class="col-sm-3 control-label">契約終了理由</label>
                            <div class="col-sm-8">
                                {{ Form::textarea('contract_termination_reason', $staff2000_contract->contract_termination_reason ?? old('contract_termination_reason'), ['class' => 'form-control']) }}
                                @foreach($errors->get('contract_termination_reason') as $error)
                                    <span class="help-block">{{$error}}</span>
                                @endforeach
                            </div>
                        </div>
                        <div class="form-group input text <?= $errors->has('scheduled_update_remarks') ? 'has-error' : '' ?>">
                            <label class="col-sm-3 control-label">備考</label>
                            <div class="col-sm-8">
                                {{ Form::textarea('scheduled_update_remarks', $staff2000_contract->scheduled_update_remarks ?? old('scheduled_update_remarks'), ['class' => 'form-control']) }}
                                @foreach($errors->get('scheduled_update_remarks') as $error)
                                    <span class="help-block">{{$error}}</span>
                                @endforeach
                            </div>
                        </div>
                </div>
                <div class="box-footer">
                    <button class="btn btn-success pull-right" name="schedule_submit" type="submit">更新予定・契約終了理由　登録</button>
                </div>
            </div>
            {{Form::close()}}
        </div>

        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">ｵｰﾀﾞｰｺｰﾄﾞ:{{ $staff2000_contract['2or_code'] }} 契約詳細</h3>
                </div>
                <div class="box-body">
                    <table class="table">
                        <tr>
                            <th class="col-sm-2">ｵｰﾀﾞｰｺｰﾄﾞ</th>
                            <td>
                                {{ $staff2000_contract['2or_code'] }}
                            </td>
                            <td>{{ $staff2000_contract->order_category_name }}</td>
                        </tr>
                        <tr>
                            <th>契約ステータス</th>
                            <td>{{ $staff2000_contract->contract_status }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">派遣期間</th>
                            <td>{{ $staff2000_contract->contract_period_start . 'から' . $staff2000_contract->contract_period_end }}</td>
                            <th>ｵｰﾀﾞｰ名</th>
                            <td>{{ $staff2000_contract->order_name }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">ｵｰﾙ ｳｪｲｽﾞ担当者名</th>
                            <td>{{ $staff2000_contract->contact_name }}</td>
                            <th>使用勤怠ｼｽﾃﾑ</th>
                            <td>{{ $staff2000_contract->order_status_name }}</td>
                        </tr>
                    </table>
                </div>
                <div class="box-body">
                    <table class="table">
                        <tr>
                            <th class="col-sm-2">ｽﾀｯﾌｺｰﾄﾞ</th>
                            <td>
                                <a href="{{ url('staff2000_staffu/view/'.$staff2000_contract['2st_code']) }}" target="_blank">{{ $staff2000_contract['2st_code'] }}</a>
                                （スタッフID：<a href="{{ url('staffu/view/'.$staff2000_contract->staff_id) }}" target="_blank">{{ $staff2000_contract->staff_id }}</a>）
                            </td>
                        </tr>
                        <tr><td colspan="4"><h4>{{ $staff2000_contract->staffname_and_kana }}</h4></td></tr>
                        <tr>
                            <th>個人単位抵触日</th>
                            <td>{{ $staff2000_contract->individual_unit_conflict_day }}</td>
                            <th>無期雇用者区分</th>
                            <td>{{ $staff2000_contract['2st_permanent_employee_classification'] }}</td>
                            <th>ｽﾀｯﾌ時給</th>
                            <td>{{ $staff2000_contract->salary_hourly_salary_1 }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">住所</th>
                            <td>
                                {{ $staff2000_contract['2st_address_1'].$staff2000_contract['2st_address_2'].$staff2000_contract['2st_address_3'] }}
                                @isset($staff2000_contract->staff2000_staffu)
                                    <a href="https://www.google.co.jp/maps/?q={{ $staff2000_contract['2st_address_1'].$staff2000_contract['2st_address_2'].$staff2000_contract['2st_address_3'] }}" target="_blank" class="btn btn-success btn-sm">Google マップ</a>
                                @endisset
                            </td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">携帯TEL</th>
                            <td>{{ $staff2000_contract->{'2st_tel_cell_phone'} }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">引当ﾒﾓ5S料金</th>
                            <td>{{ $staff2000_contract->allocation_note_5 }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">業務内容</th>
                            <td>{{ $staff2000_contract->allocation_note_1 }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">就業時間</th>
                            <td>{{ $staff2000_contract->start_time_1 }}～{{ $staff2000_contract->end_time_1 }}（勤務時間：{{ $staff2000_contract->hours_in_contract_1 }}H）</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">就業条件、時間単位</th>
                            <td>{{ $staff2000_contract->contract_renewal_criteria_1 }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">土曜区分名</th>
                            <td>{{ $staff2000_contract->saturday_segment_name }}</td>
                        </tr>
                    </table>
                </div>
                <div class="box-body">
                    <table class="table">
                        <tr>
                            <th class="col-sm-2">派遣先ｺｰﾄﾞ</th>
                            <td>{{ $staff2000_contract->{'2co_code'} }}</td>
                        </tr>
                        <tr><td colspan="4"><h4>{{ $staff2000_contract->{'2co_name'} }}</h4></td></tr>
                        <tr>
                            <th class="col-sm-2">事業所単位抵触日</th>
                            <td class="col-sm-4">{{ $staff2000_contract->{'2co_dispatched_establishment_unit_conflict_day'} }}</td>
                            <th class="col-sm-2">請求時間給</th>
                            <td class="col-sm-4">{{ $staff2000_contract->billing_hourly_salary_1 }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">就業先住所</th>
                            <td>
                                {{ $staff2000_contract->work_place_address_1.$staff2000_contract->work_place_address_2.$staff2000_contract->work_place_address_3 }}
                                <a href="https://www.google.co.jp/maps/?q={{ $staff2000_contract->work_place_address_2.$staff2000_contract->work_place_address_3 }}" target="_blank" class="btn btn-success btn-sm">Google マップ</a>
                            </td>
                            <th class="col-sm-2">請求締日</th>
                            <td>{{ $staff2000_contract->billing_deadline_1 }}日</td>
                        </tr>
                    </table>
                </div>
                <div class="box-body">
                    <table class="table">
                        <tr>
                            <th class="col-sm-2">派遣先責任者所属</th>
                            <td class="col-sm-4">{{ $staff2000_contract->dispatch_destination_manager_affiliation }}</td>
                            <th class="col-sm-2">指揮命令者所属</th>
                            <td class="col-sm-4">{{ $staff2000_contract->commander_affiliation }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">派遣先責任者役職</th>
                            <td>{{ $staff2000_contract->dispatch_manager_position }}</td>
                            <th class="col-sm-2">指揮命令者役職</th>
                            <td>{{ $staff2000_contract->commander_position }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">派遣先責任者名</th>
                            <td>{{ $staff2000_contract->dispatch_manager_name }}</td>
                            <th class="col-sm-2">指揮命令者名</th>
                            <td>{{ $staff2000_contract->commander_name }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">派遣先責任者TEL</th>
                            <td>{{ $staff2000_contract->dispatch_manager_tel }}</td>
                            <th class="col-sm-2">指揮命令者TEL</th>
                            <td>{{ $staff2000_contract->commander_tel }}</td>
                        </tr>
                    </table>
                </div>
                <div class="box-body">
                    <table class="table">
                        <tr>
                            <th class="col-sm-2">苦情:派遣先担当者名</th>
                            <td class="col-sm-4">{{ $staff2000_contract->{'2co.troubles_contact_name'} }}</td>
                            <th class="col-sm-2">苦情:派遣元担当者名</th>
                            <td class="col-sm-4",>{{ $staff2000_contract->{'2co_troubles_dispatch_agency_contact_name'} }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">苦情:派遣先担当者役職</th>
                            <td>{{ $staff2000_contract->{'2co_troubles_contact_position'} }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">苦情:派遣先担当者TEL</th>
                            <td>{{ $staff2000_contract->{'2co_troubles_contact_tel'} }}</td>
                        </tr>
                    </table>
                </div>
                <div class="box-body">
                    <table class="table">
                        <tr>
                            <th class="col-sm-2">請求書送付先:部署名</th>
                            <td class="col-sm-4">{{ $staff2000_contract->bi2_co_dep }}</td>
                            <th class="col-sm-2">契約書送付先:部署名</th>
                            <td class="col-sm-4">{{ $staff2000_contract->co2co_dep }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">請求書送付先:役職</th>
                            <td>{{ $staff2000_contract->bi2co_contact_position }}</td>
                            <th class="col-sm-2">契約書送付先:役職</th>
                            <td>{{ $staff2000_contract->co2co_contact_position }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">請求書送付先:担当者名</th>
                            <td>{{ $staff2000_contract->bi2co_contact_name }}</td>
                            <th class="col-sm-2">契約書送付先:担当者名</th>
                            <td>{{ $staff2000_contract->co2co_contact_name }}</td>
                        </tr>
                    </table>
                </div>
                <div class="box-body">
                    <table class="table">
                        <tr>
                            <th class="col-sm-2">指定　契約</th>
                            <td>{{ $staff2000_contract->{'2co_designated_contract'} }}</td>
                        </tr>
                        <tr>
                            <th class="col-sm-2">指定　請求</th>
                            <td>{{ $staff2000_contract->{'2co_designated_billing'} }}</td>
                        </tr>

                    </table>
                </div>
            </div>

            @if($staff2000_allocation)
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">引当データ詳細</h3>
                    </div>
                    <div class="box-body">
                        <table class="table">
                            <tr>
                                <th class="col-sm-3">ｵｰﾀﾞｰｺｰﾄﾞ</th>
                                <td>{{ $staff2000_allocation['2or_code'] }}</td>
                            </tr>
                            <tr>
                                <th>契約ステータス</th>
                                <td>{{ $staff2000_allocation->contract_status }}</td>
                            </tr>
                            <tr>
                                <th>ｵｰﾀﾞｰ名</th>
                                <td>{{ $staff2000_allocation->order_name }}</td>
                            </tr>
                            <tr>
                                <th>受注日</th>
                                <td>{{ $staff2000_allocation->order_date }}</td>
                            </tr>
                            <tr>
                                <th>受注区分名</th>
                                <td>{{ $staff2000_allocation->order_category_name }}</td>
                            </tr>
                            <tr>
                                <th>派遣先CD</th>
                                <td>{{ $staff2000_allocation['2co_code'] }}</td>
                            </tr>
                            <tr>
                                <th>派遣先名</th>
                                <td>{{ $staff2000_allocation->dispatch_destination_name }}</td>
                            </tr>
                            <tr>
                                <th>派遣先部署</th>
                                <td>{{ $staff2000_allocation->dispatch_destination_dep }}</td>
                            </tr>
                            <tr>
                                <th>受注状況名</th>
                                <td>{{ $staff2000_allocation->order_status_name }}</td>
                            </tr>
                            <tr>
                                <th>契約期間開始</th>
                                <td>{{ $staff2000_allocation->contract_period_start }}</td>
                            </tr>
                            <tr>
                                <th>契約期間終了</th>
                                <td>{{ $staff2000_allocation->contract_period_end }}</td>
                            </tr>
                            <tr>
                                <th>ｽﾀｯﾌｺｰﾄﾞ</th>
                                <td>{{ $staff2000_allocation['2st_code'] }}</td>
                            </tr>
                            <tr>
                                <th>ｽﾀｯﾌ名</th>
                                <td>{{ $staff2000_allocation->staffu_name }}</td>
                            </tr>
                            <tr>
                                <th>担当者名</th>
                                <td>{{ $staff2000_allocation->contact_name }}</td>
                            </tr>
                            <tr>
                                <th>就業先名</th>
                                <td>{{ $staff2000_allocation->work_place_name }}</td>
                            </tr>
                            <tr>
                                <th>就業先部署</th>
                                <td>{{ $staff2000_allocation->work_place_dep }}</td>
                            </tr>
                            <tr>
                                <th>就業先住所No</th>
                                <td>{{ $staff2000_allocation->work_place_zip }}</td>
                            </tr>
                            <tr>
                                <th>就業先住所都道府県</th>
                                <td>{{ $staff2000_allocation->work_place_address_1 }}</td>
                            </tr>
                            <tr>
                                <th>就業先住所市区郡</th>
                                <td>{{ $staff2000_allocation->work_place_address_2 }}</td>
                            </tr>
                            <tr>
                                <th>就業先住所詳細</th>
                                <td>{{ $staff2000_allocation->work_place_address_3 }}</td>
                            </tr>
                            <tr>
                                <th>電話番号</th>
                                <td>{{ $staff2000_allocation->work_place_tel }}</td>
                            </tr>
                            <tr>
                                <th>契約書送付先ｺｰﾄﾞ</th>
                                <td>{{ $staff2000_allocation->contract_delivery_destination_code }}</td>
                            </tr>
                            <tr>
                                <th>契約書送付先名</th>
                                <td>{{ $staff2000_allocation->contract_delivery_destination_name }}</td>
                            </tr>
                            <tr>
                                <th>契約書送付先部署名</th>
                                <td>{{ $staff2000_allocation->contract_delivery_destination_dep }}</td>
                            </tr>
                            <tr>
                                <th>請求書送付先ｺｰﾄﾞ</th>
                                <td>{{ $staff2000_allocation->ct_close_account }}</td>
                            </tr>
                            <tr>
                                <th>請求書送付先名</th>
                                <td>{{ $staff2000_allocation->ct_payday }}</td>
                            </tr>
                            <tr>
                                <th>請求書送付先部署名</th>
                                <td>{{ $staff2000_allocation->ct_manage_post }}</td>
                            </tr>
                            <tr>
                                <th>派遣先責任者名</th>
                                <td>{{ $staff2000_allocation->ct_manage_person }}</td>
                            </tr>
                            <tr>
                                <th>派遣先責任者役職</th>
                                <td>{{ $staff2000_allocation->ct_manage_tel }}</td>
                            </tr>
                            <tr>
                                <th>派遣先責任者電話</th>
                                <td>{{ $staff2000_allocation->dispatch_manager_tel }}</td>

                            </tr>
                            <tr>
                                <th>指揮命令者名</th>
                                <td>{{ $staff2000_allocation->commander_name }}</td>
                            </tr>
                            <tr>
                                <th>指揮命令者役職</th>
                                <td>{{ $staff2000_allocation->commander_position }}</td>
                            </tr>
                            <tr>
                                <th>指揮命令者電話</th>
                                <td>{{ $staff2000_allocation->commander_tel }}</td>
                            </tr>
                            <tr>
                                <th>土曜区分名</th>
                                <td>{{ $staff2000_allocation->saturday_segment_name }}</td>
                            </tr>
                            <tr>
                                <th>契約更新／期間の定め</th>
                                <td>{{ $staff2000_allocation->contract_renewal_period }}</td>
                            </tr>
                            <tr>
                                <th>契約更新の判断の基準1</th>
                                <td>{!! $staff2000_allocation->contract_renewal_criteria_1 !!}</td>
                            </tr>
                            <tr>
                                <th>契約更新の判断の基準2</th>
                                <td>{!! $staff2000_allocation->contract_renewal_criteria_2 !!}</td>
                            </tr>
                            <tr>
                                <th>就業時間名称1</th>
                                <td>{{ $staff2000_allocation->working_hours_type_1 }}</td>
                            </tr>
                            <tr>
                                <th>開始時刻1</th>
                                <td>{{ $staff2000_allocation->start_time_1 }}</td>
                            </tr>
                            <tr>
                                <th>終了時刻1</th>
                                <td>{{ $staff2000_allocation->end_time_1 }}</td>
                            </tr>
                            <tr>
                                <th>休憩開始時刻1</th>
                                <td>{{ $staff2000_allocation->break_start_time_1 }}</td>
                            </tr>
                            <tr>
                                <th>休憩終了時刻1</th>
                                <td>{{ $staff2000_allocation->break_end_time_1 }}</td>
                            </tr>
                            <tr>
                                <th>休憩分1</th>
                                <td>{{ $staff2000_allocation->break_1 }}</td>
                            </tr>
                            <tr>
                                <th>契約内時間数1</th>
                                <td>{{ $staff2000_allocation->hours_in_contract_1 }}</td>
                            </tr>
                            <tr>
                                <th>就業時間名称2</th>
                                <td>{{ $staff2000_allocation->working_hours_type_2 }}</td>
                            </tr>
                            <tr>
                                <th>開始時刻2</th>
                                <td>{{ $staff2000_allocation->start_time_2 }}</td>
                            </tr>
                            <tr>
                                <th>終了時刻2</th>
                                <td>{{ $staff2000_allocation->end_time_2 }}</td>
                            </tr>
                            <tr>
                                <th>休憩開始時刻2</th>
                                <td>{{ $staff2000_allocation->break_start_time_2 }}</td>
                            </tr>
                            <tr>
                                <th>休憩終了時刻2</th>
                                <td>{{ $staff2000_allocation->break_end_time_2 }}</td>
                            </tr>
                            <tr>
                                <th>休憩分2</th>
                                <td>{{ $staff2000_allocation->break_2 }}</td>
                            </tr>
                            <tr>
                                <th>契約内時間数2</th>
                                <td>{{ $staff2000_allocation->working_hours_type_3 }}</td>
                            </tr>
                            <tr>
                                <th>就業時間名称3</th>
                                <td>{{ $staff2000_allocation->hours_in_contract_2 }}</td>
                            </tr>
                            <tr>
                                <th>開始時刻3</th>
                                <td>{{ $staff2000_allocation->start_time_3 }}</td>
                            </tr>
                            <tr>
                                <th>終了時刻3</th>
                                <td>{{ $staff2000_allocation->end_time_3 }}</td>
                            </tr>
                            <tr>
                                <th>休憩開始時刻3</th>
                                <td>{{ $staff2000_allocation->break_start_time_3 }}</td>
                            </tr>
                            <tr>
                                <th>休憩終了時刻3</th>
                                <td>{{ $staff2000_allocation->break_end_time_3 }}</td>
                            </tr>
                            <tr>
                                <th>休憩分3</th>
                                <td>{{ $staff2000_allocation->break_3 }}</td>
                            </tr>
                            <tr>
                                <th>契約内時間数3</th>
                                <td>{{ $staff2000_allocation->hours_in_contract_3 }}</td>
                            </tr>
                            <tr>
                                <th>就業時間名称4</th>
                                <td>{{ $staff2000_allocation->working_hours_type_4 }}</td>
                            </tr>
                            <tr>
                                <th>開始時刻4</th>
                                <td>{{ $staff2000_allocation->start_time_4 }}</td>
                            </tr>
                            <tr>
                                <th>終了時刻4</th>
                                <td>{{ $staff2000_allocation->end_time_4 }}</td>
                            </tr>
                            <tr>
                                <th>休憩開始時刻4</th>
                                <td>{{ $staff2000_allocation->break_start_time_4 }}</td>
                            </tr>
                            <tr>
                                <th>休憩終了時刻4</th>
                                <td>{{ $staff2000_allocation->break_end_time_4 }}</td>
                            </tr>
                            <tr>
                                <th>休憩分4</th>
                                <td>{{ $staff2000_allocation->break_4 }}</td>
                            </tr>
                            <tr>
                                <th>契約内時間数4</th>
                                <td>{{ $staff2000_allocation->hours_in_contract_4 }}</td>
                            </tr>
                            <tr>
                                <th>変形労働時間1</th>
                                <td>{!! $staff2000_allocation->deformation_work_time_1 !!}</td>
                            </tr>
                            <tr>
                                <th>変形労働時間4</th>
                                <td>{!! $staff2000_allocation->deformation_work_time_4 !!}</td>
                            </tr>
                            <tr>
                                <th>請求締日1</th>
                                <td>{{ $staff2000_allocation->billing_deadline_1 }}</td>
                            </tr>
                            <tr>
                                <th>入金日1</th>
                                <td>{{ $staff2000_allocation->payment_day_1 }}</td>
                            </tr>
                            <tr>
                                <th>請求時間給1</th>
                                <td>{{ $staff2000_allocation->billing_hourly_salary_1 }}</td>
                            </tr>
                            <tr>
                                <th>作成日</th>
                                <td>{{ $staff2000_allocation->csv_created }}</td>
                            </tr>
                            <tr>
                                <th>更新日</th>
                                <td>{{ $staff2000_allocation->csv_updated }}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ1業務</th>
                                <td>{!! $staff2000_allocation->allocation_note_1 !!}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ2業務</th>
                                <td>{!! $staff2000_allocation->allocation_note_3 !!}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ3業務</th>
                                <td>{!! $staff2000_allocation->allocation_note_2 !!}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ4業務</th>
                                <td>{!! $staff2000_allocation->allocation_note_4 !!}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ5S料金</th>
                                <td>{!! $staff2000_allocation->allocation_note_5 !!}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ6S料金</th>
                                <td>{!! $staff2000_allocation->allocation_note_6 !!}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ7C料金</th>
                                <td>{!! $staff2000_allocation->allocation_note_7 !!}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ8C料金</th>
                                <td>{!! $staff2000_allocation->allocation_note_8 !!}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ9備考</th>
                                <td>{!! $staff2000_allocation->allocation_note_9 !!}</td>
                            </tr>
                            <tr>
                                <th>引当ﾒﾓ10d-ID</th>
                                <td>{{ $staff2000_allocation->allocation_note_10 }}</td>
                            </tr>
                            <tr>
                                <th>紹介手数料</th>
                                <td>{{ $staff2000_allocation->referral_fee }}</td>
                            </tr>
                            <tr>
                                <th>給与締日1</th>
                                <td>{{ $staff2000_allocation->salary_hourly_salary_1 }}</td>
                            </tr>
                            <tr>
                                <th>給与時間給1</th>
                                <td>{{ $staff2000_allocation->salary_closing_date_1 }}</td>
                            </tr>
                            <tr>
                                <th>派遣先責任者所属</th>
                                <td>{{ $staff2000_allocation->dispatch_destination_manager_affiliation }}</td>
                            </tr>
                            <tr>
                                <th>指揮命令者所属</th>
                                <td>{{ $staff2000_allocation->commander_affiliation }}</td>
                            </tr>
                            <tr>
                                <th>就業先組織単位</th>
                                <td>{{ $staff2000_allocation->employed_organizational_unit }}</td>
                            </tr>
                            <tr>
                                <th>個人単位派遣開始日</th>
                                <td>{{ $staff2000_allocation->individual_unit_dispatch_start_date }}</td>
                            </tr>
                            <tr>
                                <th>個人単位抵触日</th>
                                <td>{{ $staff2000_allocation->individual_unit_conflict_day }}</td>
                            </tr>
                            <tr>
                                <th>レコード更新日</th>
                                <td>{{ $staff2000_allocation->modified }}</td>
                            </tr>
                        </table>
                    </div>
                </div>
            @endif
            @if($staff2000_order)
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">受注データ詳細</h3>
                    </div>
                    <div class="box-body">
                        <table class="table">
                            <tr>
                                <th class="col-sm-3">ｵｰﾀﾞｰｺｰﾄﾞ</th>
                                <td>{{ $staff2000_order->code }}</td>
                            </tr>
                            <tr>
                                <th>契約ステータス</th>
                                <td>{{ $staff2000_order->contract_status }}</td>
                            </tr>
                            <tr>
                                <th>就業先:派遣先CD</th>
                                <td>{{ $staff2000_order['2co_code'] }}</td>
                            </tr>
                            <tr>
                                <th>就業先:派遣先(正式名称)</th>
                                <td>{{ $staff2000_order->dispatch_destination_name }}</td>
                            </tr>
                            <tr>
                                <th>就業先:部署(正式名称)</th>
                                <td>{{ $staff2000_order->dispatch_destination_dep }}</td>
                            </tr>
                            <tr>
                                <th>就業先:郵便番号</th>
                                <td>{{ $staff2000_order->dispatch_destination_zip }}</td>
                            </tr>
                            <tr>
                                <th>就業先:住所都道府県</th>
                                <td>{{ $staff2000_order->dispatch_destination_address_1 }}</td>
                            </tr>
                            <tr>
                                <th>就業先住所市区郡</th>
                                <td>{{ $staff2000_order->dispatch_destination_address_2 }}</td>
                            </tr>
                            <tr>
                                <th>就業先住所詳細</th>
                                <td>{{ $staff2000_order->dispatch_destination_address_3 }}</td>
                            </tr>
                            <tr>
                                <th>就業先:電話番号</th>
                                <td>{{ $staff2000_order->dispatch_destination_tel }}</td>
                            </tr>
                            <tr>
                                <th>政令26業務の付随業務</th>
                                <td>{!! $staff2000_order->decree_26_duties_1 !!}</td>
                            </tr>
                            <tr>
                                <th>政令26業務の付随的業務</th>
                                <td>{!! $staff2000_order->decree_26_duties_2 !!}</td>
                            </tr>
                            <tr>
                                <th>レコード更新日</th>
                                <td>{{ $staff2000_order->modified }}</td>
                            </tr>
                        </table>
                    </div>
                </div>
            @endif
            @if($staff2000_contract->staff2000_company)
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">派遣先会社情報</h3>
                    </div>
                    <div class="box-body">
                        @include('elements.staff2000_company', ['staff2000_company' => $staff2000_contract->staff2000_company])
                    </div>
                </div>
            @endif
            @if($staff2000_contract->staff2000_staffu)
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">スタッフマスタ詳細</h3>
                    </div>
                    <div class="box-body">
                        @include('elements.staff2000_staffu', ['staff2000_staffu' => $staff2000_contract->staff2000_staffu])
                    </div>
                </div>
            @endif
        </div>
    </div>
@endsection

@section('js')
    <script src="{{ asset('js/app.js') }}" defer></script>
@endsection

@push('css')
    <link rel="stylesheet" href="{{asset('/css/app.css')}}"/>
@endpush
