@extends('layouts.app') @section('content')
{{ Breadcrumbs::render('insure.preview',$app->application_id) }}
{{ __("preview") }}
@if($app->kind == 1) 特別加入 @elseif($app->kind == 2) 下請特約 @elseif($app->kind == 3) 下請特約 @endif
{{$app->prefecture}} {{$app->core_number}} {{$app->branch_number}} {{$app->serial_number}} @php use Illuminate\Support\Carbon; $dt = Carbon::parse($app->appl_date); $sdt = Carbon::parse($app->start_date); $edt = Carbon::parse($app->end_date); $tels = explode('-',$app->tel); $emails = explode('@',$app->email); @endphp {{ sprintf('%002d',$dt->year - 2018) }} {{ sprintf('%002d',$dt->month) }} {{ sprintf('%002d',$dt->day) }} {{$app->workspace}} {{$app->name}} {{ sprintf('%002d',$sdt->year - 2018) }} {{ sprintf('%002d',$sdt->month) }} {{ sprintf('%002d',$sdt->day) }} {{ sprintf('%002d',$edt->year - 2018) }} {{$emails[0] ?? ''}} {{$emails[1] ?? ''}} {{$tels[0] ?? ''}} {{$tels[1] ?? ''}} {{$tels[2] ?? ''}} {{$app->post_number_1}} {{$app->post_number_2}} {{ $app->address1 }} {{$app->code[0]}} {{$app->code[1]}} {{$app->code_name}} {{$app->sale}}% {{number_format($app->total_wage)}} {{number_format($app->sep_bt_amount)}} {{number_format($app->pcb_wt_amount)}} {{$app->value1 ? number_format($app->value1):''}} {{$app->value2 ? number_format($app->value2):''}} {{$app->value3 ? number_format($app->value3):''}} {{$app->value4 ? number_format($app->value4):''}} {{$app->value5 ? number_format($app->value5):''}} {{$app->value6 ? number_format($app->value6):''}} {{$app->value7 ? number_format($app->value7):''}} {{$app->value8 ? number_format($app->value8):''}} {{$app->value9 ? number_format($app->value9):''}} {{$app->value10 ? number_format($app->value10):''}} {{$app->name1}} {{$app->name2}} {{$app->name3}} {{$app->name4}} {{$app->name5}} {{$app->name6}} {{$app->name7}} {{$app->name8}} {{$app->name9}} {{$app->name10}} {{ $ptn ?? '' }} {{ ( $app->pattern == 'IA') ? '✓':''}} {{ ( $app->pattern == 'IIA') ? '✓':''}} {{ ( $app->pattern == 'IIIA') ? '✓':''}} {{ ( $app->pattern == 'IB') ? '✓':''}} {{ ( $app->pattern == 'IIB') ? '✓':''}} {{ ( $app->pattern == 'IIIB') ? '✓':''}} {{ ( $app->pattern == 'IAIB') ? '✓':''}} {{ ( $app->pattern == 'IIAIIB') ? '✓':''}} {{ ( $app->pattern == 'IIIAIIIB') ? '✓':''}} {{ ( $app->pattern == 'IB2') ? '✓':''}} {{ ( $app->pattern == 'IIB2') ? '✓':''}} {{ ( $app->pattern == 'IIIB2') ? '✓':''}} {{ ( $app->pattern == 'IAIB2') ? '✓':''}} {{ ( $app->pattern == 'IIAIIB2') ? '✓':''}} {{ ( $app->pattern == 'IIIAIIIB2') ? '✓':''}} {{ ( $app->pattern == 'IB3') ? '✓':''}} {{ ( $app->pattern == 'IIB3') ? '✓':''}} {{ ( $app->pattern == 'IIIB3') ? '✓':''}} {{number_format($app['IA'])}} {{number_format($app['IIA'])}} {{number_format($app['IIIA'])}} {{number_format($app['IA']+$app['IB'])}} {{number_format($app['IIA']+$app['IIB'])}} {{number_format($app['IIIA']+$app['IIIB'])}} {{number_format($app['IA']+$app['IB']*2)}} {{number_format($app['IIA']+$app['IIB']*2)}} {{number_format($app['IIIA']+$app['IIIB']*2)}} {{number_format($app['IB'])}} {{number_format($app['IIB'])}} {{number_format($app['IIIB'])}} {{number_format($app['IB']*2)}} {{number_format($app['IIB']*2)}} {{number_format($app['IIIB']*2)}} {{number_format($app['IB']*3)}} {{number_format($app['IIB']*3)}} {{number_format($app['IIIB']*3)}} {{ $app->ta1 == 0 ? '' : number_format($app->ta1)}} {{ $app->ta2 == 0 ? '' : number_format($app->ta2)}} {{ $app->ta3 == 0 ? '' : number_format($app->ta3)}} {{ ($app->count == 1) ? '✓':''}} {{ ($app->count == 2) ? '✓':''}} {{ ($app->count == 3) ? '✓':''}} @php if(!empty($app->receipt_date)){ $rdt = Carbon::parse($app->receipt_date); $rdy=$rdt->year-2018; if($rdt->month >= 8){$rdy=$rdy+1;}; $ryear = sprintf('%002d',$rdy); $rmonth = sprintf('%002d',$rdt->month); $rday = sprintf('%002d',$rdt->day); } $pcs = explode('-',$ass?->post_code); $jtels = explode('-',$ass?->tel); @endphp {{ $ryear ?? '' }} {{ $rmonth ?? '' }} {{ $rday ?? '' }} {{ $ass->workspace ?? '' }} {{ $ass->address ?? '' }} {{ $pcs[0] ?? '' }} {{ $pcs[1] ?? '' }} {{ $jtels[0] ?? '' }} {{ $jtels[1] ?? '' }} {{ $jtels[2] ?? '' }} {{ $ass->email ?? '' }}
@endsection