@extends('layouts.user_type.auth') @section('content')
{{ $art->title }}

{{ $art->summary }}

{!! $art->description !!}

@if ($art->function == 'files') @php $path = public_path('assets/img/functions/files/'); $imgs = glob($path . '*.{jpg,png,gif}', GLOB_BRACE); @endphp
@foreach ($imgs as $file) @php $fileArr = explode('/', $file); @endphp @endforeach
@endif
@csrf @if ($art->fields != '')
@php $fieldsSelect = explode('|', $art->fields); @endphp
@endif @foreach ($art->allfields as $artField)
@switch($artField->type) @case('text') other !!} {{ $artField->function }} type="{{ $artField->type }}"> @break @case('date') other !!} {{ $artField->function }} type="text" onfocus="focused(this)" onfocusout="defocused(this)"> @break @case('select') @break @case('textarea') @break @endswitch
@endforeach

Acessos Hoje: {{ count($art->read) }}

Downloads Hoje: {{ count($art->download) }}

Criado em: {{ \Carbon\Carbon::parse($art->created_at)->format('d/m/Y') }}

Outras Artes
@foreach ($othersArts as $otherArt)
{{ $otherArt->title }}

{{ $otherArt->summary }}

Acessar

Leituras: {{ count($otherArt->download) }}

Criado em: {{ \Carbon\Carbon::parse($otherArt->created_at)->format('d/m/Y') }}

@endforeach
@endsection @push('dashboard') @endpush @if ($art->function == 'qrcode' || $art->function == 'qrcodebf') @endif @if ($art->function == 'promo') @endif