<?php $__env->startSection('workspace'); ?>

    <!-- Breadcrumb -->
    <section class="breadcrumb">
        <h1>Company Profile</h1>
        <ul>
            <li><a href="#no-link">Pages</a></li>
            <li class="divider la la-arrow-right"></li>
            <li><a href="#no-link">Company Profile</a></li>
            <li class="divider la la-arrow-right"></li>
            <li>View</li>
        </ul>
    </section>

    <div class="grid lg:grid-cols-4 gap-5">

        <!-- Content -->
        <div class="lg:col-span-2 xl:col-span-3">

            <form method="POST" action="<?php echo e(route('paid-accounts.company-profile.update')); ?>">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>
                <div class="card p-5">

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="company_name">Company Name</label>
                        <input id="company_name" name="company_name" type="text" class="form-control"
                               value="<?php echo e($companyProfile->company_name); ?>" disabled>
                    </div>

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="contact_name">Contact Person Name</label>
                        <input id="contact_name" name="contact_name" type="text" class="form-control"
                               value="<?php echo e($companyProfile->contact_name); ?>" required>
                    </div>

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="contact_number">Contact Number</label>
                        <input id="contact_number" placeholder="60123456789" name="contact_number"
                               value="<?php echo e($companyProfile->contact_number); ?>" type="tel"
                               class="form-control" required>
                    </div>

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="email">Company Email address</label>
                        <input id="email" name="email" placeholder="xxx@xxx.com" type="email"
                               value="<?php echo e($companyProfile->email); ?>" class="form-control" required>
                    </div>

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="roc">ROC</label>
                        <input id="roc" name="roc" type="text" class="form-control" value="<?php echo e($companyProfile->roc); ?>"
                               required>
                    </div>

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="address_1">Address 1</label>
                        <input id="address_1" name="address_1" type="text" class="form-control"
                               value="<?php echo e($companyProfile->address1); ?>" required>
                    </div>

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="address_2">Address 2</label>
                        <input id="address_2" name="address_2" type="text" value="<?php echo e($companyProfile->address2); ?>"
                               class="form-control">
                        <span class="text-xs text-gray-500">Optional</span>
                    </div>

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="address_3">Address 3</label>
                        <input id="address_3" name="address_3" type="text" value="<?php echo e($companyProfile->address3); ?>"
                               class="form-control">
                        <span class="text-xs text-gray-500">Optional</span>
                    </div>

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="address_4">Address 4</label>
                        <input id="address_4" name="address_4" type="text" value="<?php echo e($companyProfile->address4); ?>"
                               class="form-control">
                        <span class="text-xs text-gray-500">Optional</span>
                    </div>


                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="state">State</label>
                        <div class="custom-select">
                            <select name="state" class="form-control">
                                <option <?php echo e($companyProfile->state == 'Johor' ? 'selected' : ''); ?>>Johor</option>
                                <option <?php echo e($companyProfile->state == 'Kedah' ? 'selected' : ''); ?>>Kedah</option>
                                <option <?php echo e($companyProfile->state == 'Kelantan' ? 'selected' : ''); ?>>Kelantan</option>
                                <option <?php echo e($companyProfile->state == 'Kuala Lumpur' ? 'selected' : ''); ?>>Kuala Lumpur
                                </option>
                                <option <?php echo e($companyProfile->state == 'Labuan' ? 'selected' : ''); ?>>Labuan</option>
                                <option <?php echo e($companyProfile->state == 'Melaka' ? 'selected' : ''); ?>>Melaka</option>
                                <option <?php echo e($companyProfile->state == 'Negeri Sembilan' ? 'selected' : ''); ?>>Negeri
                                    Sembilan
                                </option>
                                <option <?php echo e($companyProfile->state == 'Pahang' ? 'selected' : ''); ?>>Pahang</option>
                                <option <?php echo e($companyProfile->state == 'Penang' ? 'selected' : ''); ?>>Penang</option>
                                <option <?php echo e($companyProfile->state == 'Perak' ? 'selected' : ''); ?>>Perak</option>
                                <option <?php echo e($companyProfile->state == 'Perlis' ? 'selected' : ''); ?>>Perlis</option>
                                <option <?php echo e($companyProfile->state == 'Putrajaya' ? 'selected' : ''); ?>>Putrajaya
                                </option>
                                <option <?php echo e($companyProfile->state == 'Sabah' ? 'selected' : ''); ?>>Sabah</option>
                                <option <?php echo e($companyProfile->state == 'Sarawak' ? 'selected' : ''); ?>>Sarawak</option>
                                <option <?php echo e($companyProfile->state == 'Selangor' ? 'selected' : ''); ?>>Selangor</option>
                                <option <?php echo e($companyProfile->state == 'Terengganu' ? 'selected' : ''); ?>>Terengganu
                                </option>
                            </select>
                            <div class="custom-select-icon la la-caret-down"></div>
                        </div>
                    </div>

                    
                    <div class="mb-5 xl:w-1/2">
                        <label class="label block mb-2" for="postcode">Postcode</label>
                        <input id="postcode" placeholder="xxxxx" name="postcode" type="number"
                               value="<?php echo e($companyProfile->postcode); ?>"
                               class="form-control" required>
                    </div>

                    <div class="flex flex-wrap gap-2 mt-5">
                        <button class="btn btn_outlined btn_secondary uppercase"
                                onclick="window.location.href='<?php echo e(route('paid-accounts.dashboard')); ?>';">Cancel
                        </button>
                        <button type="submit" class="btn btn_primary uppercase">Update</button>

                    </div>

                </div>
            </form>


        </div>


    </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', ['title' => 'Add Dealer - Dealer - Pages'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ezyorder/public_html/ezypos.ezyorder.com.my/ezypos-backend/resources/views/pages/paid-account/company-profile.blade.php ENDPATH**/ ?>