@extends('layouts.admin_master')
@section('page-title')
    Admin | {{ $page_title }}
@endsection

@section('page-css')
@endsection
@section('page-content')
<div class="row">
    <!-- <form action="{{ url('admin/organisation/store') }}" method="POST" > -->
    <form action="{{ route('admin.organisation.userupdate', $dealer->id) }}" method="POST">
        <!-- @csrf -->
        @method('PUT') 
        {{ csrf_field() }}
        <div class="col-md-12">
            @include('commons.notifications')
        </div>
        <div class="col-md-6">
            <div class="hpanel">
                <div class="panel-heading">Dealer User Account</div>
                <div class="panel-body">
                <div class="form-group">
                    <label class="col-sm-2 control-label">Username</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="user_name" value="{{ $dealer->email }}" placeholder="Full Name" required>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group"><label class="col-sm-2 control-label">Email</label>
                    <div class="col-sm-10">
                        <input type="email"  name="user_email" class="form-control" value="{{ $dealer->email }}" id="userEmail" placeholder="Enter User Email" required>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group"><label class="col-sm-2 control-label">Phone</label>
                    <div class="col-sm-10">
                    <input type="text"  name="user_phone" class="form-control" value="{{ $dealer->phone }}" id="userPhone" placeholder="Enter User Phone number " required >
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                </div>
            </div>
        </div>
        
        <div class="com-md-12">
            <div class="form-group">
                <div class="col-sm-12 ">
                    <button class="btn btn-primary btn-block" type="submit">Submit</button>
                    <button class="btn btn-default btn-block" type="button">Cancel</button> <br>
                    
                </div>
            </div>
        </div>
    </form>
</div>
@endsection