@extends('template') @section('content') @if (Session::has('message')) @endif

Cadastro de Motoristas

@csrf
@if (count($dados) > 0) @foreach ($dados as $return) @endforeach @endif
Nome/Doc Cidade/Cep Contato/Cel. Status Ações
{{ @$return->nome_motorista }}
{{ (strlen(@$return->cpf) > 11) ? "CNPJ: ".@$return->cpf : "CPF: ".@$return->cpf }}
{{ @$return->cidade }} - {{ @$return->uf }}
{{ @$return->cep }}
{{ @$return->contato }}
{{ @$return->celular }}
@if ($return->status == 'NULL' || $return->status == '' || $return->status == '0') INATIVO
{{ @$return->forma_pagamento }} @elseif($return->status == '2') BLOQUEADO
{{ @$return->forma_pagamento }} @else ATIVO
{{ @$return->forma_pagamento }} @endif
@csrf @method('DELETE')
@endsection