@extends('layouts.app')

@section('title',"Editar cuenta")

@section('content')
<div class="alert alert-secundary p-2 mb-0"><a href="{{ url('accountbanks') }}"><i class="icon-arrow-left13"></i> Volver al listado de Cuentas Bancarias</a></div>
<div class="card">
	<div class="card-body">
		<div class="response-data">
			
		</div>
		<form action="{{ url('accountbanks/'.$item->id) }}" class="form-login" onsubmit="updatingform(this); return false">
			<div class="row">
				<div class="col-12 text-center text-uppercase ">
					<h3 class="font-weight-light">Editar cuenta</h3>
				</div>
			</div>
			<br>
			<div class="row">
				<div class="col-6">
					<input type="text" class="form-control"  id="input-cont" name="nrocuenta" placeholder="numero de cuenta" value="{{ $item->nrocuenta }}" required="">
				</div>
				<div class="col-6">
					<input type="text" class="form-control"  id="input-cont" name="nombre" value="{{ $item->nombre }}" placeholder="nombre de la  entidad" required="">
				</div>
			</div>
			<hr>
			<div class="row">
				<div class="col-4">
					<input type="text" class="form-control" id="input-cont"  name="propietario" placeholder="Propietario" required="" value="{{ $item->propietario }}">
				</div>
				<div class="col-4">
					<select name="tipo" class="form-control" id="input-cont" required="">
						<option value="">Tipo</option>
						<option value="cte" {{($item->tipo == 'cte') ? 'selected' : ''}}>corriente</option>
						<option value="aho" {{($item->tipo == 'aho') ? 'selected' : ''}}>ahorro</option>
					</select>
				</div>
				<div class="col-4">
					<select name="moneda" class="form-control" id="input-cont" required="">
						<option value="">Moneda</option>
						<option value="US" {{($item->moneda == 'US') ? 'selected' : ''}}>US</option>
						<option value="EUR" {{($item->moneda == 'EUR') ? 'selected' : ''}}>EUR</option>
						<option value="SOL" {{($item->moneda == 'SOL') ? 'selected' : ''}} >SOL</option>
					</select>				
				</div>
			</div>
			<hr>
			<div class="row">
				<div class="col-3">
					<select name="tarjeta" class="form-control" id="input-cont">
						<option value="">Tarjeta</option>
						<option value="T" {{($item->tarjeta == 'T') ? 'selected' : ''}}>T</option>
						<option value="D" {{($item->tarjeta == 'D') ? 'selected' : ''}}>D</option>
						<option value="C" {{($item->tarjeta == 'C') ? 'selected' : ''}}>C</option>
					</select>					
				</div>
				<div class="col-3">
					<select name="cobrar" class="form-control" id="input-cont">
						<option value="">Cobrar</option>
						<option value="no" {{($item->cobrar == 'si') ? 'selected' : ''}}>no</option>
						<option value="si" {{($item->cobrar == 'no') ? 'selected' : ''}}>si</option>
					</select>					
				</div>
				<div class="col-3">
					<select name="pagar" class="form-control" id="input-cont">
						<option value="">Pagar</option>
						<option value="si" {{($item->pagar == 'si') ? 'selected' : ''}}>si</option>
						<option value="no" {{($item->pagar == 'no') ? 'selected' : ''}}>no</option>
					</select>	
				</div>
				<div class="col-3">
					<select name="deposito" class="form-control" id="input-cont">
						<option value="">deposito</option>
						<option value="si" {{($item->deposito == 'si') ? 'selected' : ''}}>si</option>
						<option value="no" {{($item->deposito == 'no') ? 'selected' : ''}}>no</option>
					</select>	
				</div>
			</div>
			<hr>
			<div class="row">
				<div class="col-6">
					<input type="text" name="nrcheque" class="form-control" id="input-cont" value="{{ $item->nrcheque }}"  placeholder="numero de cheque">
				</div>
			</div>
			<div class="row">
				<div class="col-12 text-center">
					<br>
					<button class="btn btn-primary"><i class="icon-floppy-disk "></i> Guardar</button>
				</div>
			</div>
		</form>
	</div>
</div>

@endsection