@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: Arquivos do ' . $corredor->corredor) @section('content')
@php $headLine = " Visite Angra - Corredores Turísticos - Lista de Arquivos do {$corredor->corredor}"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), 'routeBack' => 'admin.visiteAngra.corredores.index', 'routeBackParams' => [], 'nameBack' => __("Voltar"), 'routeAdd' => 'admin.visiteAngra.corredores.arquivos.create', 'routeAddParams' => [$corredor->id], 'nameAdd' => __('Novo arquivo'), 'permission' => 'GERENCIADOR_VISITE_ANGRA', 'routeDeleteAll' => 'admin.visiteAngra.corredores.arquivos.removeAll', 'routeDeleteAllParameters' => [$corredor->id], 'messageDeleteAll' => '* Todos os arquivos deste corredor serão removidos, deseja continuar?', 'nameDeleteAll' => 'Remover todos os arquivos', ])
@include("errors.messageFlash") @php $index = 0 @endphp @foreach($arquivos as $arquivo) @include('components.tables._openPhoto',[ 'asset' => $arquivo->link, 'alt' => $arquivo->nome, 'title' => $arquivo->nome, 'text' => 'Visualizar foto', "permission" => "GERENCIADOR_VISITE_ANGRA", ]) {{ $arquivo->tipo }} {{ date("d/m/Y H:m:s", strtotime($arquivo->created_at)) }} id) }}" class="text-dark"> {{ $arquivo->corredor->corredor }} {{ $arquivo->nome }} @include('components/buttons/_status', [ "index" => $index, "route" => "admin.visiteAngra.corredores.arquivos.status", "id" => [$corredor->id, $arquivo->id], "status" => $arquivo->status, "permission" => "GERENCIADOR_VISITE_ANGRA", ])
@include('components/buttons/_deleteButton', [ "message" => "* Este arquivo será excluído e esta ação não poderá ser desfeita, deseja continuar?", "route" => "admin.visiteAngra.corredores.arquivos.destroy", "id" => [$corredor->id, $arquivo->id], "fontawesome" => null, "title" => "Excluir", "permission" => "GERENCIADOR_VISITE_ANGRA", ])
@php $index++ @endphp @endforeach
@endsection