@extends('backend.layouts.app') @section('content')

明細履歴

@php $tech_amount = 0; $parts_amount = 0; foreach ($params->content as $content) { $parts_amount += $content->sub_total; } @endphp @if (Auth::guard("admin")->user()->canShowReceptionPrice() || $params->canShowVehicleWork($department))
技術料 部品金額 合計金額
@endif @if (Auth::guard("admin")->user()->canShowReceptionPrice() || $params->canShowVehicleWork($department)) @endif @foreach ($params->content as $content) @if (Auth::guard("admin")->user()->canShowReceptionPrice() || $params->canShowVehicleWork($department)) @endif @endforeach
種別 作業内容・使用部品名称 単位単価 数量 技術料 部品金額
{{ isset($content->work->name) ? $content->work->name : '' }} {{ $content->work_kind == config('const.content_work_kind.main_work') ? (isset($content->sub_category->name) ? $content->sub_category->UJName() : '') : $content->work_sub_category }} {{ $content->unit }}{{ number_format($content->unit_price) }}円 {{ $content->quantity }} {{ (in_array($content->work_kind, config('const.content_technical')) && is_numeric($content->sub_total)) ? number_format($content->sub_total).'円' : '' }} {{ (in_array($content->work_kind, config('const.content_parts')) && is_numeric($content->sub_total)) ? number_format($content->sub_total).'円' : '' }}
@endsection