@extends('layouts.app')

@section('content')
<div class="container-fluid">
<h2>Nueva Empresa</h2>

<form action="{{ route('companies.store') }}" method="POST" enctype="multipart/form-data">
@csrf

<div class="mb-3">
    <label>Nombre</label>
    <input name="nombre" class="form-control" required>
</div>

<div class="mb-3">
    <label>RFC</label>
    <input name="rfc" class="form-control" required>
</div>

<div class="mb-3">
    <label>Email</label>
    <input name="email" type="email" class="form-control" required>
</div>

<div class="mb-3">
    <label>Plan</label>
    <select name="plan" class="form-control">
        <option value="basico">Básico</option>
        <option value="pro">Pro</option>
        <option value="premium">Premium</option>
    </select>
</div>

<div class="mb-3">
    <label>Logo (opcional)</label>
    <input type="file" name="logo" class="form-control">
</div>

<button class="btn btn-success">Guardar</button>
<a href="{{ route('companies.index') }}" class="btn btn-secondary">Cancelar</a>

</form>
</div>
@endsection
