@extends('layouts/base_view') @section('title') {!! $variables['header_routes'] !!} @endsection @section('content')
{{ $data->code }}
{{ $data->name }}
{{ $data->formatted_total_cost ?? 'Rp ' . number_format($data->total_cost, 0, ',', '.') }}
{{ $data->fstrDetails->count() }} item
@if($data->is_active) Aktif @else Nonaktif @endif
Rp {{ $data->fstrDetails->count() > 0 ? number_format($data->total_cost / $data->fstrDetails->count(), 0, ',', '.') : 0 }}
{{ $data->creator->fullname ?? 'System' }}
{{ $data->created_at->format('d M Y, H:i') }}
@if($data->modificator)
{{ $data->modificator->fullname }}
{{ $data->updated_at->format('d M Y, H:i') }}
@endif @if($data->description)
{{ $data->description }}
@endif
@if($data->fstrDetails->count() > 0)
Detail Resep ({{ $data->fstrDetails->count() }} bahan)
@foreach($data->fstrDetails as $index => $detail) @endforeach
No Kode Item Nama Item Jumlah UOM Biaya UOM Total Biaya Catatan
{{ $index + 1 }} {{ $detail->rawMaterial ? $detail->rawMaterial->code : '-' }} {{ $detail->rawMaterial ? $detail->rawMaterial->name : '-' }} {{ number_format($detail->quantity, 4) }} {{ $detail->uom }} Rp {{ number_format($detail->unit_cost, 0, ',', '.') }} Rp {{ number_format($detail->total_cost, 0, ',', '.') }} {{ $detail->notes ?? '-' }}
Total Biaya Resep: {{ $data->formatted_total_cost ?? 'Rp ' . number_format($data->total_cost, 0, ',', '.') }}
@endif
@method('delete') @csrf
@endsection