@extends('adminlte::page')
@section('title_prefix', $staff2000_order->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_order') }}">Staff2000受注データ一覧</a>
        </li>
        <li class="active">ｵｰﾀﾞｰｺｰﾄﾞ:{{ $staff2000_order->code }} 受注データ詳細</li>
    </ol>
@stop
@section('content')
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">受注データ詳細</h3>
                </div>
                <div class="box-body">
                    @if(Gate::allows('contract_delete'))
                        {{ Form::open(['url' => 'staff2000_order/' . $staff2000_order->code, 'method' => 'DELETE']) }}
                        <button type="submit" class="btn btn-danger pull-right" onclick="return confirm('本当に削除しますか？');">削除</button>
                        {{ Form::close() }}
                    @endif
                    <table class="table">
                        <tr>
                            <th class="col-sm-3">ｵｰﾀﾞｰｺｰﾄﾞ</th>
                            <td>
                                {{ $staff2000_order->code }}
                                <a href="{{url('staff2000_allocation/view/'.$staff2000_order->code)}}" target="_blank" class="btn btn-warning btn-sm">引当データ詳細</a>
                            </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->full_address }}
                                <a href="https://www.google.co.jp/maps/search/{{$staff2000_order->full_address}}" target="_blank" class="btn btn-success btn-sm">Google マップ</a>
                            </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 class="box-footer">
                    <a href="{{ url('staff2000_order')}}" class="btn btn-default">戻る</a>
                </div>
            </div>
        </div>
    </div>
@endsection

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