@extends('layouts.app') @section('content')
@can('write_customer') {{ __('customer.title.create') }} @endcan
@include('layouts.alert')
@php $offset = ($customers->currentPage() - 1) * $customers->perPage(); @endphp @foreach ($customers as $index => $customer) @endforeach
@csrf
# {{ __('customer.data.name') }} {{ __('customer.data.code') }} {{ __('customer.data.phone') }} {{ __('customer.data.email') }} {{ __('customer.data.type') }} Método de contacto {{ __('customer.data.created_at') }}
{{ $offset + $index + 1 }} {{ $customer->name }} {{ $customer->code }} {{ $customer->phone }} {{ $customer->email }} {{ $customer->serviceType->name }} {{ $customer->contactMedium() }} {{ Carbon\Carbon::parse($customer->created_at, 'UTC')->setTimezone('America/Mexico_City')->format('Y-m-d H:i:s') }} {{-- $customer->created_at --}} @can('write_customer') @endcan
{{ $customers->links('pagination::bootstrap-5') }}
@endsection