HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //var/www/html/dashboard.orbiwheels.com/resources/views/admin/customer/edit.blade.php
@extends('layout.master')
@section('content')
    <div class="right_col" role="main">
        <div class="">
            {{-- <div class="page-title">
                <div class="title_left">
                    <h3>Staff <small>List</small></h3>
                </div>
            </div> --}}

            <div class="clearfix"></div>

            <div class="row" style="display: block;">
                <div class="col-md-12 col-sm-12 ">
                    <div class="x_panel">
                        <div class="x_title">
                            <h2>Customer <small>Edit</small></h2>
                            <ul class="nav navbar-right panel_toolbox">
                                <li><a href="{{ route('admin.customer.index') }}" class="closeBtn">
                                        <i class="fa fa-arrow-left"></i> Back</a>
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">
                            <form class="form-label-left input_mask"
                                action="{{ route('admin.customer.update', $customer->id) }}" method="POST"
                                enctype="multipart/form-data">
                                @csrf
                                @method('PUT')
                                <span class="section">General Details</span>
                                <div class="row">

                                    <div class="col-md-4 col-sm-6  form-group ">
                                        <label for="heard">First name *:</label>
                                        <input type="text" class="form-control " id="inputSuccess4"
                                            value="{{ old('first_name', $customer->first_name) }}" placeholder="first name "
                                            name="first_name">
                                        @error('first_name')
                                            <label class="text-danger">{{ $message }}</label>
                                        @enderror
                                    </div>
                                    <div class="col-md-4 col-sm-6  form-group ">

                                        <label for="heard">Last name *:</label>
                                        <input type="text" class="form-control " id="inputSuccess4"
                                            value="{{ old('last_name', $customer->last_name) }}" placeholder="last name"
                                            name="last_name">
                                        @error('last_name')
                                            <label class="text-danger">{{ $message }}</label>
                                        @enderror
                                    </div>
                                    <div class="col-md-4 col-sm-6  form-group ">
                                        <label for="heard">Email *:</label>
                                        <input type="text" class="form-control " id="inputSuccess4"
                                            value="{{ old('email', $customer->email) }}" placeholder="Email" name="email">
                                        @error('email')
                                            <label class="text-danger">{{ $message }}</label>
                                        @enderror
                                    </div>

                                    <div class="col-md-4 col-sm-6  form-group ">
                                        <label for="heard">Phone *:</label>
                                        <input type="tel" class="form-control" id="inputSuccess5" placeholder="Phone"
                                            name="phone" value="{{ old('phone', $customer->phone) }}">
                                        @error('phone')
                                            <label class="text-danger">{{ $message }}</label>
                                        @enderror
                                    </div>
                                    <div class="col-md-4 col-sm-6 form-group">
                                        <label for="alternative_phone">Alternative Phone :</label>
                                        <input type="tel" class="form-control" id="alternative_phone"
                                            placeholder="Alternative Phone" name="alternative_phone"
                                            value="{{ old('alternative_phone', $customer->alternative_phone ?? '') }}">
                                        @error('alternative_phone')
                                            <label class="text-danger">{{ $message }}</label>
                                        @enderror
                                    </div>
                                    <div class="col-md-4 col-sm-6 form-group">
                                        <label for="date_of_birth">Date of Birth *:</label>
                                        <input type="date" class="form-control" id="date_of_birth" name="date_of_birth"
                                            value="{{ old('date_of_birth', $customer->date_of_birth ?? '') }}">
                                        @error('date_of_birth')
                                            <label class="text-danger">{{ $message }}</label>
                                        @enderror
                                    </div>

                                    <div class="col-md-4 col-sm-6 form-group">
                                        <label for="gender">Gender *:</label>
                                        <select class="form-control" id="gender" name="gender">
                                            <option value="" disabled
                                                {{ old('gender', $customer->gender ?? '') == '' ? 'selected' : '' }}>Select
                                                Gender</option>
                                            <option value="male"
                                                {{ old('gender', $customer->gender ?? '') == 'male' ? 'selected' : '' }}>
                                                Male
                                            </option>
                                            <option value="female"
                                                {{ old('gender', $customer->gender ?? '') == 'female' ? 'selected' : '' }}>
                                                Female</option>
                                            <option value="other"
                                                {{ old('gender', $customer->gender ?? '') == 'other' ? 'selected' : '' }}>
                                                Other
                                            </option>
                                        </select>
                                        @error('gender')
                                            <label class="text-danger">{{ $message }}</label>
                                        @enderror
                                    </div>
                                </div>

                                <div class="form-group row">
                                    <div class="col-md-12 col-sm-12 offset-md-10">
                                        <button class="btn btn-primary" type="reset">Reset</button>
                                        <button type="submit" class="btn btn-success">Submit</button>
                                    </div>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@push('script')
@endpush