ultimatepos/Modules/SupplyChain/Resources/views/demand_forecasts/show.blade.php

31 lines
1.7 KiB
PHP

@extends('layouts.app')
@section('title', __('supplychain::lang.demand_forecasts'))
@section('content')
@include('supplychain::layouts.nav')
<section class="content-header">
<h1>@lang('supplychain::lang.demand_forecasts') {{ $forecast->product?->name ?? '—' }}</h1>
</section>
<section class="content">
<div class="box box-primary">
<div class="box-body">
<table class="table table-bordered">
<tr><th>@lang('supplychain::lang.product')</th><td>{{ $forecast->product?->name ?? '—' }}</td></tr>
<tr><th>@lang('supplychain::lang.variation')</th><td>{{ $forecast->variation?->sub_sku ?? '—' }}</td></tr>
<tr><th>@lang('supplychain::lang.forecast_month')</th><td>{{ $forecast->forecast_month->format('Y-m') }}</td></tr>
<tr><th>@lang('supplychain::lang.forecast_qty')</th><td>{{ number_format($forecast->forecast_qty, 4) }}</td></tr>
<tr><th>@lang('supplychain::lang.method')</th><td>{{ $forecast->method }}</td></tr>
<tr><th>@lang('supplychain::lang.confidence')</th><td>{{ number_format($forecast->confidence, 1) }}%</td></tr>
<tr><th>@lang('supplychain::lang.source')</th><td>{{ $forecast->source }}</td></tr>
</table>
@if(!empty($forecast->meta))
<hr>
<pre style="background:#f9f9f9;padding:10px;">{{ json_encode($forecast->meta, JSON_PRETTY_PRINT) }}</pre>
@endif
</div>
<div class="box-footer">
<a href="{{ action([\Modules\SupplyChain\Http\Controllers\DemandForecastController::class, 'index']) }}" class="btn btn-default">@lang('messages.back')</a>
</div>
</div>
</section>
@endsection