@extends('layout.app') @section('title') {{ $estimate->title }} @endsection @section('content')

{{ $estimate->title }}

{{ __('New Estimate') }}
{{ ucfirst($estimate->type) }}
{{ $estimate->created_at->format('Y-m-d') }}
{{ $estimate->unit ? $estimate->unit->name : '-' }}
@foreach($estimate->items as $item) @endforeach
{{ __('Material') }} {{ __('Quantity') }} {{ __('Unit Price (at time of estimate)') }} {{ __('Subtotal') }}
{{ $item->material->name }} {{ $item->quantity }} {{ $item->material->unit }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->subtotal, 2) }}
{{ __('Materials Total') }} {{ number_format($estimate->materials_total, 2) }}
{{ __('Licensing Fees') }} {{ number_format($estimate->licensing_fees, 2) }}
{{ __('Other Fees') }} {{ number_format($estimate->other_fees, 2) }}
{{ __('GRAND TOTAL') }} {{ number_format($estimate->total_cost, 2) }}
@endsection