@extends('layouts.admin')
@section('content')
<div class="main-panel">
    <div class="content">
            <div class="panel-header">
                <div class="page-inner py-5 text-white"  style="background:#313232">
                    <div class="d-flex align-items-left align-items-md-center flex-column flex-md-row">
                        <div><div class="page-header">
                            <h4 class="page-title text-white">Contacts</h4>
                            <ul class="breadcrumbs">
                                    <li class="nav-home">
                                        <a class="text-white" href="{{ route('user-dashboard')}}">
                                            <i class="flaticon-home"></i>
                                        </a>
                                    </li>
                                    <li class="separator">
                                        <i class="flaticon-right-arrow"></i>
                                    </li>
                                    <li class="nav-item">
                                        <a class="text-white" href="{{ route('clients.index') }}">Contacts</a>
                                    </li>
                                    <li class="separator">
                                        <i class="flaticon-right-arrow"></i>
                                    </li>
                                    <li class="nav-item">
                                        <a class="text-white" href="">View Contact</a>
                                    </li>
                                </ul>
                        </div></div>
                        <div class="ml-md-auto py-2 py-md-0">
                            <a href="{{ route('clients.index') }}" class="btn btn-white btn-border btn-round mr-2"><i class="fas fa-arrow-circle-left"></i> Back</a>
                        </div>
                    </div>
                </div>
                <div class="page-category">
                <div class="page-inner mt--5">
                    <div class="row mt--2">
                            <div class="col-md-12">
                                <div class="card full-height">
                                    <div class="card-body">
                                        <div class="card-title">Edit Customer Contact</div>
                                        @if ($errors->any())
                                            <div class="alert alert-danger alert-dismissible" role="alert">
                                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                            <strong>Error! </strong>There were some errors with inputs.
                                            <ul>
                                                @foreach($errors->all() as $error)
                                                <li>{{ $error }}</li>
                                            @endforeach
                                            </ul>
                                            </div>

                                        @endif
                                        @include('layouts.messages')
                                        <div class="panel panel-default bg-light p-3 mb-3">
                                        <div class="panel-body">
                                        <!-- form -->
                                        <form id="add-customer" action="{{ route('clients.update', $CustomerClients->cust_client_id)}}" name="add-customer-form" method="post">
                                                @csrf     
                                                @METHOD('PUT')   
                                        <div class="form-group row">
                                                    <div class="col-md-6">
                                                        <label for=""> Full Name</label>
                                                        <input type="text" name="cust_client_fullname" value="{{ $CustomerClients->cust_client_fullname}}" class="form-control" placeholder="Enter fullname...">
                                                    </div>
                                                    <div class="col-md-6">
                                                        <label for=""> IDNO(s)</label>
                                                        <input type="text" name="admin_othername" value="{{ $CustomerClients->cust_client_idno}}" class="form-control" placeholder="Enter IDNo...">
                                                    </div>
                                                </div>
                                                <div class="form-group row">
                                                    <div class="col-md-6">
                                                     <label for=""> Status </label>
                                                        <input type="text" name="cust_client_status"  value="{{ $CustomerClients->cust_client_status }}" class="form-control" placeholder="Enter  status ...">                                                        
                                                    </div>
                                                    <div class="col-md-6">
                                                        <label for=""></label>
                                                        <input type="text" name="customer_cust_id"  value="{{ $CustomerClients->cust_client_status}}" class="form-control" placeholder="Enter customer_cust_id.">
                                                    </div>


                                                    <div class="form-group row">
                                                    <div class="col-md-12">
                                                        <button type="submit" class="btn btn-success btn-round">Save</button>
                                                        
                                                        <button type="reset" class="btn btn-danger btn-round">Clear</button>
                                                    </div>


                                                    </form><!-- endform -->
                                                    </div>
                                    </div>
                                </div>
                            </div>
                        </div>
            </div>
            </div>
        </div>
    </div>
    @endsection



    