@extends('layouts.admin')
@section('title','Editar cliente')
@section('content')
<h1>Editar cliente</h1>
<form method="POST" action="{{ route('admin.clients.update', $client) }}">@csrf @method('PUT')
<select name="type"><option value="individual" @selected($client->type==='individual')>Pessoa física</option><option value="company" @selected($client->type==='company')>Empresa</option></select>
<input type="text" name="name" value="{{ $client->name }}">
<input type="text" name="document" value="{{ $client->document }}">
<input type="email" name="email" value="{{ $client->email }}">
<input type="text" name="phone" value="{{ $client->phone }}">
<select name="status"><option value="active" @selected($client->status==='active')>Ativo</option><option value="inactive" @selected($client->status==='inactive')>Inativo</option><option value="archived" @selected($client->status==='archived')>Arquivado</option></select>
<button class="btn" type="submit">Atualizar</button></form>
@endsection
