@extends('layouts.admin.theme') @section("title", env("APP_NAME") . " :: Importação de Planilhas da Dívida Ativa") @section('content')
@include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __("Importação de Planilhas da Dívida Ativa"), 'routeBack' => 'admin.dividaAtiva.index', 'routeBackParams' => [], 'nameBack' => __("Voltar"), ])
@csrf @method('POST') @include("errors.messageFlash")
@error('tipo') {{ $message }} @enderror
@error('nome') {{ $message }} @enderror
@error('link') {{ $message }} @enderror
@error('status') {{ $message }} @enderror
@include('components.buttons._backAndSend', [ // 'textBack' => 'Voltar', // 'routeBack' => 'admin.dividaAtiva.index' 'textSend' => 'Importar', ])
@include('components.tables._thead', ['thead' => [ 'Criado em', 'Tipo de arquivo', 'Nome do arquivo', 'Arquivo', 'Status', 'Ações', ]]) @php $index = 0; @endphp @forelse($planilhas as $planilha) @php $index++; @endphp @empty @endforelse
{{ date("d/m/Y H:m", strtotime($planilha->created_at)) }} {{ $planilha->tipo ?? "Não informado" }} {{ $planilha->nome ?? "Não informado" }} @include('components.tables._downloadFile',[ 'url' => $planilha->link, 'text' => 'Baixar planilha', 'fontawesome' => null, ]) @include('components/buttons/_status', [ "index" => $index, "route" => "admin.dividaAtiva.planilhas.status", "id" => $planilha->id, "status" => $planilha->status, ])
@if(!$planilha->importada) @include('components/buttons/_editButton', [ "route" => "admin.dividaAtiva.planilhas.dados", "id" => $planilha->id, "fontawesome" => '', "title" => "Importar dados", ]) @endif @include('components/buttons/_deleteButton', [ "message" => __("* Este registro será excluído e esta ação não poderá ser desfeita, deseja continuar?"), "route" => "admin.dividaAtiva.planilhas.destroy", "id" => $planilha->id, "fontawesome" => null, "title" => "Excluir", "permission" => "GERENCIADOR_REGISTROS_DE_DIVIDA_ATIVA", ])
* Nenhum registro encontrado
{!! $planilhas->links() !!}
@endsection