@include('app.includes.alerts')
@csrf @method('PUT')
@error('invoice')
{{ $message }}
@enderror

Lojas(s) adicionais do cliente: {{ $customer->fantasy_name }}

@foreach($stores as $store) @endforeach
Fantasia Editar Excluir
{{ $store->fantasy_name }}
@method('DELETE') @csrf

Contato(s)

@foreach($customer->contacts as $contact) @endforeach
Nome Setor E-mail 1 E-mail 2 Telefone 1 Telefone 2 Editar Excluir
{{ $contact->name }} {{ $contact->sector }} {{ $contact->email }} {{ $contact->secondary_email }} {{ $contact->phone_one }} {{ $contact->phone_two }}
@method('DELETE') @csrf

Material(s)

@foreach($customer->materialcustomers as $materialcustomer) @endforeach
Data Material Milheiro Editar Excluir
{{ date('d/m/Y', strtotime($materialcustomer->created_at)) }} {{ $materialcustomer->material }} R$ {{ number_format($materialcustomer->value_granted, 2, ',', '.') }}
@method('DELETE') @csrf

Mapa(s)

@foreach($maps as $map) @endforeach
Data Nome Ver Mapa PDF Excluir
{{ date('d/m/Y', strtotime($map->created_at)) }} {{ $map->name }} pdf}") }}" class="btn btn-warning" target="_blank" title="Ver mapa PDF">
@method('DELETE') @csrf

Setor(s) para distribuição do cliente: {{ $customer->fantasy_name }}

* Para editar um setor do cliente, primeiro delete o setor que não deseja e clique em Inserir Setores, selecione a região e o setor desejado para atualizar!

@foreach($customer->sectors->sortBy(function($sector) { return optional($sector->region)->name; }) as $sector) @endforeach
Setor Região Excluir
{{ $sector->code }} - {{ $sector->name }} @if ($sector->region) {{ $sector->region->name }} @else Nenhuma região associada @endif
@method('DELETE') @csrf