@extends('layouts.admin-simple') @section('title', $standard->name) @section('page-title', $standard->name) @section('breadcrumb') @endsection @section('page-actions')
edit Edit Standard
@endsection @section('content')

Standard Details

{{ $standard->name }}

@if($standard->code)

Code: {{ $standard->code }}

@endif @if($standard->description)

{{ $standard->description }}

@else

No description provided.

@endif
Sort Order: {{ $standard->sort_order }}
Status: @if($standard->is_active) Active @else Inactive @endif

Applications ({{ $standard->applications->count() }})

add Add Application
@if($standard->applications->count() > 0)
@foreach($standard->applications->sortBy('sort_order') as $application) @endforeach
Application Name Products Status Actions
{{ $application->name }} @if($application->description)
{{ Str::limit($application->description, 80) }} @endif
{{ $application->products->count() }} products @if($application->is_active) Active @else Inactive @endif
@else
apps
No Applications

Add applications for this standard to organize products.

add Add First Application
@endif

Standard Hierarchy

standard Standard:
{{ $standard->name }} @if($standard->code) ({{ $standard->code }}) @endif
apps Applications:
@if($standard->applications->count() > 0) @foreach($standard->applications->take(3) as $app) {{ $app->name }} @endforeach @if($standard->applications->count() > 3) ... and {{ $standard->applications->count() - 3 }} more @endif @else No applications yet @endif

Statistics

{{ $standard->applications->count() }}

Applications

{{ $standard->applications->sum(function($app) { return $app->products->count(); }) }}

Total Products

Metadata

Created
{{ $standard->created_at->format('M d, Y g:i A') }}
Last Updated
{{ $standard->updated_at->format('M d, Y g:i A') }}

Quick Actions

edit Edit Standard add Add Application
@csrf @method('DELETE')
list All Standards
@endsection