@extends('Admin.master_page')

@section('title') <h5 class="m-0 font-weight-bold text-primary" style="float: left;">Financing Add</h5> 

<a href="/Financing" style="float: right;"><i class="fas fa-chevron-circle-left"></i></a>
@endsection

@section('content')

<div class="intro-y box"> 
        
        <form action="{{ route('Financing.store') }}" method="POST">
            @csrf


        <label for="Name" >Domain Name:</label>
        <div class="input-group" style="margin-top: 10px;">
           <select name="domain_sales_id" class="form-control" id="">
               <option value="">Select Domain</option>
               @foreach($domains as $domain)
               <option value="{{ $domain->id }}">{{ $domain->name }}</option>
               @endforeach
           </select>
            @error('domain_sales_id')
            <span class="alert-danger">{{ $message }}</span>
            @enderror
        </div>

        <br>


        <label>From:</label>
        <div class="input-group" style="margin-top: 10px;">
           <input type="text" name="from" class="form-control" placeholder="From $">
            @error('from')
            <span class="alert-danger">{{ $message }}</span>
            @enderror
        </div>

        <br>


        <input type="hidden" value="Month" name="term">
       

        <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </div>



@endsection