作業内容

@if ($department == 'parts') @endif @if ($department == "parts" || $department == "moritis") @endif @unless ($department == 'moritis' || $department == 'truck') @endunless @if ($department == 'moritis' || $department == 'parts') @endif @php $content = ((isset($contents) && $contents->count()) ? $contents->toArray() : null); $total = 0; $content_sub_total = 0; $content_consumption_total = 0; $content_total_with_tax = 0; @endphp @if(is_array($content)) @foreach ($content as $content_count=>$item) @if ($department == 'parts') @endif @if (isset($item['work_kind']) && $item['work_kind'] == 1 && isset($item['work_sub_category']) && is_numeric($item['work_sub_category'])) @else @endif @if ($department == "moritis" || $department == "parts") @endif @unless($department == 'moritis' || $department == 'truck') @endunless @if ($department == 'moritis') @endif @endforeach @endif @if(isset($params->for_vehicle) && $params->for_vehicle == config('const.bill_vehicle_status.only_bill')) @endif
種別管理番号作業内容区分数量単位単価 金額(税別) 消費税 金額(税込)レス
{{ \App\Models\Masters\WorkKind::findById($item['work_kind'], 'name') }}{{ isset($item['manager_no']) ? $item['manager_no'] : '' }} @php $category_name = App\Models\Masters\WorkSubCategory::findById($item['work_sub_category'], 'name'); $l_index = strpos($category_name, '('); @endphp @if($l_index) @php $l_index = strpos($category_name, '('); $code_name1 = substr($category_name, 0, $l_index); $code_name2 = substr($category_name, $l_index); @endphp {{ "【".$code_name1."】" }}{{$code_name2}} @else {{ "【".$category_name."】" }} @endif {{ isset($item['work_sub_category']) ? ($item['work_sub_category']) : '' }} {{ isset($item['class']) ? config('const.order_class.'.$item['class']) : '' }} {{ !is_numeric($item['quantity']) ? '' : $item['quantity'] }} {{ isset($item['unit']) ? $item['unit'] : '' }} {{ !is_numeric($item['unit_price']) ? '' : number_format($item['unit_price']) }} {{ !is_numeric($item['sub_total']) ? '' : number_format($item['sub_total']) }} @php $total += $item['sub_total']; $content_sub_total += $item['sub_total']; @endphp {{ !is_numeric($item['consumption_tax']) ? '' : number_format($item['consumption_tax']) }} @php $total += $item['consumption_tax']; $content_consumption_total += $item['consumption_tax']; @endphp {{ empty($item['total_with_tax']) ? '' : number_format($item['total_with_tax']) }} @php $content_total_with_tax += $item['total_with_tax']; @endphp {{ !is_numeric($item['response']) ? '' : number_format($item['response']) }}
請求金額合計(税別) {{ !empty($content_sub_total) ? number_format($content_sub_total).'円' : '' }}
消費税 {{ !empty($content_consumption_total) ? number_format($content_consumption_total).'円' : '' }}
請求金額合計(税込) {{ !empty($content_total_with_tax) ? number_format($content_total_with_tax).'円' : '' }}
@if(isset($params->for_vehicle) && $params->for_vehicle == config('const.bill_vehicle_status.for_vehicle'))
@endif