@extends('layouts.app', ['title' => 'Empresas']) @section('content')
@if(!__isSuporte()) @endif
{!!Form::open()->fill(request()->all()) ->get() !!}
{!!Form::text('nome', 'Pesquisar por nome') !!}
{!!Form::tel('cpf_cnpj', 'Pesquisar por documento') !!}
{!!Form::date('start_date', 'Data inicial') !!}
{!!Form::date('end_date', 'Data final') !!}
{!!Form::select('contador_id', 'Representante/Contador', ['' => 'Selecione'] + $contadores->pluck('nome', 'id')->all()) ->attrs(['class' => 'form-select select2']) !!}
{!!Form::select('status', 'Ativo', ['' => 'Todos', 1 => 'Sim', 0 => 'Não']) ->attrs(['class' => 'form-select']) !!}

Limpar
{!!Form::close()!!}
Total de empresas: {{ $data->total() }}
@foreach($data as $item) @endforeach
Razão social Nome fantasia CNPJ/CPF IE/RG Tributação Ambiente Certificado Ativa Plano Data de cadastro Ações
{{ $item->nome }} {{ $item->nome_fantasia }} {{ $item->cpf_cnpj }} {{ $item->ie }} {{ $item->tributacao }} {{ $item->ambiente == 1 ? 'Produção' : 'Homologação' }} @if($item->arquivo) @else @endif @if($item->status) @else @endif @if($item->plano) {{ $item->plano->plano->nome }} @else @endif {{ __data_pt($item->created_at) }}
@if(!__isSuporte()) @method('delete') @csrf @endif
{!! $data->appends(request()->all())->links() !!}
@endsection @section('js') @endsection