@extends('layout.default')
{{ /**@var \App\Models\Block $block*/'' }}
@section('title',isset($block)?('Block Height '.$block->Height):'Blocks')
@section('script')
@if(isset($block))
@else
@endif
@endsection
@section('css')
@if(!isset($block))
@endif
@endsection
@section('content')
@include('element.header')
@if(isset($block))
Overview
Block Size (bytes)
Block Time
{{ number_format($block->BlockSize, 0, '', ',') }}
{{ \DateTime::createFromFormat('U', $block->BlockTime)->format('j M Y H:i:s') . ' UTC' }}
Bits
Confirmations
{{ $block->Bits }}
{{ $confirmations }}
Difficulty
Nonce
{{ \App\Helpers\AmountHelper::format($block->Difficulty,'') }}
{{ $block->Nonce }}
Chainwork
{{ $block->Chainwork }}
MerkleRoot
{{ $block->MerkleRoot }}
NameClaimRoot
{{ $block->NameClaimRoot }}
Version
{{ $block->Version }}
{{ count($blockTxs) }} Transaction{{ (count($blockTxs) == 1 ? '' : 's') }}
Hash |
Inputs |
Outputs |
Value |
@if(count($blockTxs) == 0)
There are no transactions to display at this time. |
@endif
@foreach($blockTxs as $tx)
|
{{ $tx->input_count }} |
{{ $tx->output_count }} |
{{ \App\Helpers\AmountHelper::formatCurrency($tx->value) }} LBC |
@endforeach
All Blocks
@if($numRecords > 0)
@php($begin = ($currentPage - 1) * $pageLimit + 1)
Showing {{ number_format($begin, 0, '', ',') }} - {{ number_format(min($numRecords, ($begin + $pageLimit) - 1), 0, '', ',') }} of {{ number_format($numRecords, 0, '', ',') }} block{{ $numRecords == 1 ? '' : 's' }}
@endif
Height |
Difficulty |
Confirmations |
TX Count |
Block Size |
Nonce |
Block Time |
@foreach($blocks as $block)
{{ $block->Height }} |
{{ number_format($block->Difficulty, 8, '.', '') }} |
{{ number_format((($currentBlock->Height - $block->Height) + 1), 0, '', ',') }} |
{{ $block->tx_count }} |
{{ round($block->BlockSize / 1024, 2) . 'KB' }} |
{{ $block->Nonce }} |
{{ \DateTime::createFromFormat('U', $block->BlockTime)->format('d M Y H:i:s') }} UTC |
@endforeach
@include('element.pagination')
@endif
@endsection