@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/suppliers/table.view') }} - {{ $supplier->name }} @parent @stop @section('header_right') {{ trans('admin/suppliers/table.update') }} @stop {{-- Page content --}} @section('content')
@if ($supplier->id)

{{ trans('general.assets') }}

@endif

@foreach ($supplier->assets as $supplierassets) @endforeach
Asset Tag Name User Actions
{{ $supplierassets->asset_tag }} {{ $supplierassets->name }} @if ($supplierassets->assigneduser) {!! $supplierassets->assigneduser->present()->nameUrl() !!} @endif @if ($supplierassets->assigned_to != '') Checkin @else Checkout @endif

Contact:

@if ($supplier->id)

Software

@endif
@foreach ($supplier->licenses as $license) @endforeach
Name Serial
{!! $license->present()->nameUrl() !!} {!! $license->present()->serialUrl() !!}
@if ($supplier->id)

Improvements

@endif
@if ($supplier->asset_maintenances) @foreach ($supplier->asset_maintenances as $improvement) @if (is_null($improvement->deleted_at)) cost; ?> @endif @endforeach @endif
{{ trans('admin/asset_maintenances/table.asset_name') }} {{ trans('admin/asset_maintenances/form.asset_maintenance_type') }} {{ trans('admin/asset_maintenances/form.start_date') }} {{ trans('admin/asset_maintenances/form.completion_date') }} {{ trans('admin/asset_maintenances/table.is_warranty') }} {{ trans('admin/asset_maintenances/form.cost') }} {{ trans('table.actions') }}
{{ $improvement->asset->name }} {{ $improvement->improvement_type }} {{ $improvement->start_date }} {{ $improvement->completion_date }} {{ $improvement->is_warranty ? trans('admin/asset_maintenances/message.warranty') : trans('admin/asset_maintenances/message.not_warranty') }} {{ sprintf( trans( 'general.currency' ) . '%01.2f', $improvement->cost) }}
{{sprintf(trans( 'general.currency' ) . '%01.2f', $totalCost)}}
@stop