@extends('common/main/layout') @section('content')

{{ $report_waypoints->first()->billing->name }} @lang('db.pdf_billing') @lang('system.title.details')

@include('common/error-message')
@csrf
@if (session()->has('checkpoint')) @lang('system.command.back') @else @lang('system.command.back') @endif
@php $total_price = 0; @endphp @foreach($report_waypoints as $report_waypoint) @php if (!empty($report_waypoint->quantity) && !empty($report_waypoint->unit_price)) { $total_price = $total_price + round($report_waypoint->quantity * $report_waypoint->unit_price); } @endphp @endforeach @php $tax_price = round($total_price * (intval(old('tax', $params['default_tax'])) / 100)); @endphp
@lang('system.command.edit') 日付 @lang('db.report_waypoint.take_up') @lang('db.report_waypoint.take_down') 数量 @lang('db.report_waypoint.unit') @lang('db.report_waypoint.unit_price') 金額
{{ date('n月j日', strtotime($report_waypoint->date)) }} @if(!empty($report_waypoint->emergency))@endif{{ $report_waypoint->take_up }} {{ $report_waypoint->take_down }} @if(!empty($report_waypoint->quantity)){{ number_format($report_waypoint->quantity, 2) }}@endif @if(!empty($report_waypoint->unit)){{ config('const.UNITS.'.$report_waypoint->unit) }}@endif @if(!empty($report_waypoint->unit_price))@lang('system.unit.yen-mark'){{ number_format($report_waypoint->unit_price) }}@endif @if(!empty($report_waypoint->quantity) && !empty($report_waypoint->unit_price))@lang('system.unit.yen-mark'){{ number_format(round($report_waypoint->quantity * $report_waypoint->unit_price)) }}@endif
小計 @lang('system.unit.yen-mark'){{ number_format($total_price) }}
消費税@lang('system.unit.yen-mark'){{ number_format($tax_price) }}
合計 @lang('system.unit.yen-mark'){{ number_format($total_price + $tax_price) }}
@lang('db.pdf_billing') @lang('system.title.information')
@lang('system.unit.yen-mark')
@error('last_month_invoice'){{ $message }}@enderror
@lang('system.unit.yen-mark')
@error('last_month_payment'){{ $message }}@enderror
@lang('system.unit.yen-mark')
@error('this_month_carried'){{ $message }}@enderror
自動計算または直接入力
@lang('system.unit.yen-mark') -
@error('this_month_adjust'){{ $message }}@enderror
%
@error('tax'){{ $message }}@enderror

@lang('system.unit.yen-mark'){{ number_format($total_price) }}

@lang('system.unit.yen-mark'){{ number_format($tax_price) }}

@lang('system.unit.yen-mark'){{ number_format($total_price + $tax_price) }}

{{-- Not Change --}}
@if (session()->has('checkpoint')) @lang('system.command.back') @else @lang('system.command.back') @endif
@endsection