@extends('admin.layouts.app') @section('title', 'View Statistic') @section('content')

Statistic: {{ $statistic->title }}

Statistic Details
@if($statistic->is_active) Active @else Inactive @endif
Title:
{{ $statistic->title }}
Value:
{{ number_format($statistic->value) }}
Suffix:
@if($statistic->suffix) {{ $statistic->suffix }} @else No suffix @endif
Icon:
@if($statistic->icon) {{ $statistic->icon }} @else No icon specified @endif
Sort Order:
{{ $statistic->sort_order }}
Formatted Display:
{{ $statistic->formatted_value }} (This is how it appears with formatting)
Created:
{{ $statistic->created_at->format('F d, Y \a\t H:i') }}
Last Updated:
{{ $statistic->updated_at->format('F d, Y \a\t H:i') }}
Website Preview
@if($statistic->icon) @endif

{{ number_format($statistic->value) }}{{ $statistic->suffix }}

{{ $statistic->title }}

This is how the statistic will appear on your website
Quick Actions
Edit Statistic @if($statistic->is_active)
@csrf @method('PUT')
@else
@csrf @method('PUT')
@endif
@csrf @method('DELETE')
Alternative Previews
Card Style:
@if($statistic->icon) @endif

{{ number_format($statistic->value) }}{{ $statistic->suffix }}

{{ $statistic->title }}

Minimal Style:

{{ number_format($statistic->value) }}{{ $statistic->suffix }}

{{ $statistic->title }}
Badge Style:
@if($statistic->icon) @endif {{ number_format($statistic->value) }}{{ $statistic->suffix }}
{{ $statistic->title }}
Usage Information
Template Usage:

To use this statistic in your Blade templates:

$statistic = Statistic::find({{ $statistic->id }});
echo $statistic->formatted_value;
Display Value:
{{ '{' }}{{ '{' }} $statistic->formatted_value {{ '}' }}{{ '}' }}
@endsection