@extends('layouts.app') @section('content') @php if (!function_exists('extractFileName')) { function extractFileName($filePath) { $fileNameWithExtension = basename($filePath); $fileName = pathinfo($fileNameWithExtension, PATHINFO_FILENAME); return $fileName; } } @endphp
ARCHIVOS DE LA SEDE {{ $customer->name }}
@if (!$customer->files->isEmpty()) @foreach ($customer->files as $file) @endforeach @endif
Nombre Archivo Fecha de vencimiento Fecha de actualización
{{ $file->filename->name }} {{ $file->path ? extractFileName($file->path) : '-' }} {{ $file->expirated_at ? Carbon\Carbon::parse($file->expirated_at)->format('d-m-Y') : '-' }} {{ $file->updated_at ? Carbon\Carbon::parse($file->updated_at)->format('d-m-Y H:i:s') : '-' }}
@include('customer.modals.files') @endsection