@extends('layouts.site') @section('title', $document->title.' | Trading Corporation of Pakistan') @section('description', $document->description ?: 'Official document published by the Trading Corporation of Pakistan.') @section('content')
{{ str($document->category)->replace('-', ' ')->title() }}

Document information

@if(!$document->is_gated)Download file ↓@endif
@if($document->reporting_year)
Reporting year
{{ $document->reporting_year }}
@endif @if($document->publication_date)
Published
{{ $document->publication_date->format('d F Y') }}
@endif
Format
{{ str($document->mime_type)->after('/')->upper() ?: 'Document' }}
@if($document->size)
File size
{{ Number::fileSize($document->size) }}
@endif @if($document->version)
Version
{{ $document->version }}
@endif
@if($document->is_gated)
Registration required

Register to access this file

Provide your contact details to access this tender or employment document.

@include('documents.partials.registration-form')
@elseif($document->mime_type === 'application/pdf')

Document preview

Open full screen ↗

If the preview does not load, download the document.

@else

This format is provided as a verified original download.

Download {{ str($document->mime_type)->after('/')->upper() }} file ↓
@endif @if($document->accessibility_description)

Accessibility description

{{ $document->accessibility_description }}

@endif
@endsection