CasperSecurity

Current Path : /var/www/orientalss.com/resources/views/livewire/finance/
Upload File :
Current File : /var/www/orientalss.com/resources/views/livewire/finance/vendor-livewire.blade.php

<div class="row">
    <div class="card z-auto p-[25px]" style="min-height: 690px;">
        <div class="card-header">
            <div class="flex justify-between items-center mb-2">
                <h1 class="heading text-[1.8rem] font-medium uppercase">Vendor</h1>
                <div class="flex items-center">
                    <a class="btn btn-primary duration-500 hover:bg-hover-primary py-[5px] px-3 text-[13px] rounded text-white bg-primary leading-[18px] inline-block border border-primary ml-2 offcanvas-toggle cursor-pointer" wire:click="showmodalclick">Add New Vendor</a>
                </div>
            </div>
        </div>
        <div class="card-body">
            <div class="p-[1.563rem]">
                <div class="flex justify-between">
                    <div class="w-1/4 px-0 py-2">
                        <input wire:model="search" type="text" class="form-control relative text-[13px] text-dark h-[2.813rem] border border-dark block rounded-md py-1.5 px-3 duration-500  dark:hover:border-b-color outline-none w-full" id="search" placeholder="Search ..." autocomplete="off" />
                    </div>
                    <div class="w-1/3 px-1">
                        <div class="row flex justify-between">
                            <div class="w-1/3 px-2 py-2 justify-end">
                                <select name="orderBy" wire:model="orderBy" class="form-select w-full rounded-md style-1 py-1.5 px-3 bg-transparent text-[13px] font-normal outline-none relative focus:ring-0 border border-dark text-dark h-[2.813rem] leading-[1.813rem]">
                                    <option value="id">ID</option>
                                    <option value="vendor_type">Vendor Type</option>
                                </select>
                            </div>
                            <div class="w-1/3 px-2 py-2 justify-end">
                                <select name="orderAsc" wire:model="orderAsc" class="form-select w-full rounded-md style-1 py-1.5 px-3 bg-transparent text-[13px] font-normal outline-none relative focus:ring-0 border border-dark text-dark h-[2.813rem] leading-[1.813rem]">
                                    <option value="1">Ascending</option>
                                    <option value="0">Decending</option>
                                </select>
                            </div>
                            <div class="w-1/3 px-2 py-2 justify-end">
                                <select name="perPage" wire:model="perPage" class="form-select w-full rounded-md style-1 py-1.5 px-3 bg-transparent text-[13px] font-normal outline-none relative focus:ring-0 border border-dark text-dark h-[2.813rem] leading-[1.813rem]">
                                    <option value="10">10</option>
                                    <option value="25">25</option>
                                    <option value="50">50</option>
                                    <option value="100">100</option>
                                    <option value="500">500</option>
                                </select>
                            </div>
                        </div>

                    </div>

                </div>

                <div class="overflow-x-auto table-scroll">
                    <table id="dept_datatable" class="display table w-full" >
                        <thead>
                        <tr class="bg-transparent">
                            <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">Vendor Code</th>
                            <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">Vendor Name</th>
                            <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">Vendor Type </th>
                            <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">Status</th>
                            <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">Action</th>
                        </tr>
                        </thead>
                        <tbody>
                        @if(sizeof($datatable)>0)
                            @foreach($datatable as $data)
                                <tr class="bg-transparent">
                                    <td class="text-black border-2 border-solid border-[#E6E6E6] dark:border-[#444444] bg-transparent xl:py-2 py-2 xl:px-[0.9375rem] px-[0.9375rem] capitalize whitespace-nowrap text-xs font-normal text-center">{{$data->vendor_code}}</td>
                                    <td class="text-black border-2 border-solid border-[#E6E6E6] dark:border-[#444444] bg-transparent xl:py-2 py-2 xl:px-[0.9375rem] px-[0.9375rem] capitalize whitespace-nowrap text-xs font-normal text-center">{{$data->vendor_name}}</td>
                                    <td class="text-black border-2 border-solid border-[#E6E6E6] dark:border-[#444444] bg-transparent xl:py-2 py-2 xl:px-[0.9375rem] px-[0.9375rem] capitalize whitespace-nowrap text-xs font-normal text-center">{{$data->vendor_type_name}}</td>
                                    <td class="text-black border-2 border-solid border-[#E6E6E6] dark:border-[#444444]  bg-transparent xl:py-2 py-2 xl:px-[0.9375rem] px-[0.9375rem] capitalize whitespace-nowrap text-xs font-normal text-center">
                                        @if($data->status == '1')
                                            <span class="text-xs py-[5px] px-3 rounded font-medium leading-[1.5] text-success bg-success-light">Active</span>
                                        @else
                                            <span class="text-xs py-[5px] px-3 rounded font-medium leading-[1.5] text-dark bg-d-light-2">Inactive</span>
                                        @endif
                                    </td>
                                    <td class="bg-transparent border-2 border-solid border-[#E6E6E6] dark:border-[#444444]  py-2 px-[0.9375rem] capitalize whitespace-nowrap text-[15px] font-normal text-center">
                                        <div class="flex justify-center">
                                            <a href="javascript:void(0);" class="btn w-[1.625rem] h-[1.625rem] leading-[1.625rem] rounded-md text-center text-white bg-primary hover:bg-hover-primary duration-300 mr-1 offcanvas-toggle" wire:click="updateclick({{$data->id}})"><i class="fas fa-pencil-alt text-[0.875em]"></i></a>
                                            {{--
                                                                                        <a href="javascript:void(0);" class="btn w-[1.625rem] h-[1.625rem] leading-[1.625rem] rounded-md text-center text-white bg-danger hover:bg-danger-hover duration-300" wire:click="deleteclick({{$data->id}})"><i class="fa fa-trash text-[0.875em]"></i></a>
                                            --}}
                                        </div>
                                    </td>
                                </tr>
                            @endforeach
                        @else
                            <tr class="bg-transparent">
                                <td colspan="5" class="text-danger border-2 border-solid border-[#E6E6E6] dark:border-[#444444]  bg-transparent xl:py-2 py-2 xl:px-[0.9375rem] px-[0.9375rem] capitalize whitespace-nowrap xl:text-[15px] text-[15px] font-bold text-center">No Data Available</td>
                            </tr>
                        @endif
                        </tbody>
                    </table>

                </div>
                <div class="w-full" wire:ignore.self>
                    {{-- {{$datatable->links('livewire.pagination-livewire')}}--}}
                </div>
            </div>
        </div>
        @if(!$showmodal)
            <div wire:ignore.self>
                <x-notify::notify  />
            </div>
        @endif
    </div>
    <div wire:ignore.self>
        <div   class="fixed top-0 right-0 flex flex-col xl:w-[500px] md:w-[500px] max-w-[365px] h-[100vh] z-[1045] bg-white dark:bg-[#1E1E1E] text-body-color duration-500 ease-in-out offcanvas @if($showmodal) @else is-closed @endif" id="offcanvasExample" style="width:950px !important;">
            <div class="ml-4 flex items-center justify-between p-4">
                @if($modelid)
                    <h5 class="modal-title" id="#gridSystemModal">Update Leave</h5>
                @else
                    <h5 class="modal-title" id="#gridSystemModal">Add New  Leave</h5>
                @endif
                <button type="button" class="offcanvas-close h-6 w-6 box-content bg-danger-light rounded-md text-lg mr-4 p-2 opacity-50 hover:opacity-100 text-red" wire:click="closemodalclick">
                    <i class="fa-solid fa-xmark"></i>
                </button>
            </div>
            <div class="p-4 overflow-y-auto overflow-x-hidden dz-scroll">
                <div class="container-fluid px-[15px] py-0">
                    @if($modelid)
                        <div class="flex justify-end mt-3 items-center">
                            <div class="xl:w-full mb-4 flex justify-between">
                                <label for="exampleFormControlInputfirst"
                                       class="form-label mt-4">Status</label>
                                <div class="row">
                                    <div class="flex justify-end w-full px-2 py-2">
                                        <select name="orderAsc" wire:model="status"
                                                class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full">
                                            <option value="1">Active</option>
                                            <option value="0">Inactive</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                    @endif
                        <div class="row">
                            <div class="xl:w-1/3 mb-4">
                                <label class="form-label">Select Vendor Type<span class="text-danger">*</span></label>
                                <select name="vendor_type" wire:model.defer="vendor_type"
                                        class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full">
                                    <option value="">Select</option>
                                    @foreach($vendortype as $vendor)
                                        <option value="{{$vendor->id}}">{{$vendor->vendor_type_name}}</option>
                                    @endforeach
                                </select>
                                @error('vendor_type_name') <span class="error text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4 ">
                                <label for="exampleFormControlInputfirst" class="form-label">Vendor Code<span class="text-danger">*</span></label>
                                <input type="" name="vendor_code" wire:model.defer="vendor_code" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst">
                                @error('vendor_code') <span class="w-full mt-1 text-xs text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4">
                                <label for="exampleFormControlInputfirst" class="form-label">Vendor Logo</label>
                                <input type="file" class="upload-img" name="vendor_logo" wire:model.defer="vendor_logo" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst" placeholder="Enter Vendor logo">
                                @error('vendor_logo') <span class="w-full mt-1 text-xs text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4">
                                <label for="exampleFormControlInputfirst" class="form-label">Enter Vendor Name<span class="text-danger">*</span></label>
                                <input type="text" name="vendor_name" wire:model.defer="vendor_name" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst" placeholder="Enter Vendor Name">
                                @error('vendor_name') <span class="w-full mt-1 text-xs text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4 ">
                                <label class="form-label">Enter Telephone</label>
                                <input onkeypress="return onlyNumberKey(event)" maxlength="10" name="vendor_tele_phone" wire:model.defer="vendor_tele_phone"  class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst" placeholder="Enter Vendor Contact">
                                @error('vendor_tele_phone') <span class="error text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4">
                                <label class="form-label">Enter Address<span class="text-danger">*</span></label>
                                <textarea
                                      class="relative text-[13px] h-auto min-h-auto border border-b-color block rounded-md p-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full resize-y"
                                      rows="4" id="vendor_address" wire:model.defer="vendor_address">
                                </textarea>
                                @error('vendor_address') <span class="error text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4 ">
                                <label class="form-label">Enter Fax</label>
                                <input type="number" name="vendor_fax" wire:model.defer="vendor_fax"  class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst" placeholder="Enter Fax">
                                @error('vendor_fax') <span class="error text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4 ">
                                <label class="form-label">Enter GST No</label>
                                <input oninput="this.value = this.value.toUpperCase()" maxlength="15" type="text" name="vendor_gst" wire:model.defer="vendor_gst"  class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst" placeholder="Enter GST">
                                @error('vendor_gst') <span class="error text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4 ">
                                <label class="form-label">Enter Mail</label>
                                <input type="email" name="vendor_mail" wire:model.defer="vendor_mail"  class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst" placeholder="Enter email">
                                @error('vendor_mail') <span class="error text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4 ">
                                <label class="form-label">Enter Contact Person</label>
                                <input type="text" name="vendor_contact_person" wire:model.defer="vendor_contact_person"  class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst" placeholder="Enter Contact Person">
                                @error('vendor_contact_person') <span class="error text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4 ">
                                <label class="form-label">Enter Contact Person Number</label>
                                <input onkeypress="return onlyNumberKey(event)" maxlength="10" name="vendor_contact_person_mobile" wire:model.defer="vendor_contact_person_mobile"  class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst" placeholder="Enter Person number">
                                @error('vendor_contact_person_mobile') <span class="error text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4 ">
                                <label class="form-label">Enter Contact Person Email</label>
                                <input type="email" name="vendor_contact_person_mail" wire:model.defer="vendor_contact_person_mail"  class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 focus:border-primary dark:hover:border-b-color outline-none w-full" id="exampleFormControlInputfirst" placeholder="Enter Person email">
                                @error('vendor_contact_person_mail') <span class="error text-danger">{{ $message }}</span> @enderror
                            </div>
                            <div class="xl:w-1/3 mb-4 ">
                                <div class="col">
                                    <label class="form-label text-body-color dark:text-white mb-3">Inter State<span
                                            class="text-danger">*</span></label>
                                    <div>
                                        <input type="radio" id="select" name="inter_state" value="1" wire:model="inter_state">
                                        <label for="select" class="1">Yes</label><br>
                                    </div>
                                    <div>
                                        <input type="radio" id="complete" name="inter_state" value="0" wire:model="inter_state" >
                                        <label for="complete" class="0">No</label>
                                    </div>
                                </div>
                                @error('inter_state') <span class="w-full mt-1 text-xs text-danger">{{ $message }}</span> @enderror
                            </div>
                        </div>
                        <div class="flex justify-center">
                            <button class="btn xl:py-[0.719rem] mr-4 py-2.5 xl:px-[1.563rem] px-4 duration-300 xl:text-[15px] text-[13px] font-medium rounded text-danger bg-danger-light leading-5 inline-block border border-danger-light btn-danger light hover:text-white hover:bg-danger offcanvas-close" wire:click="closemodalclick">Cancel</button>

                            @if($modelid)
                                <button class="btn btn-primary xl:py-[0.719rem] py-2.5 xl:px-[1.563rem] px-4 duration-300 xl:text-[15px] text-[13px] font-medium rounded text-white bg-primary leading-5 inline-block border border-primary hover:bg-hover-primary" wire:click="update">Update</button>
                            @else
                                <button class="btn btn-primary xl:py-[0.719rem] py-2.5 xl:px-[1.563rem] px-4 duration-300 xl:text-[15px] text-[13px] font-medium rounded text-white bg-primary leading-5 inline-block border border-primary hover:bg-hover-primary" wire:click="save">Submit</button>
                            @endif
                        </div>
                    </div>
                </div>
            </div>
            @if($showmodal)
                <x-notify::notify />
            @endif
        </div>
    </div>

</div>

@section('externaljs')
    <script>
        function onlyNumberKey(evt) {

            // Only ASCII character in that range allowed
            var ASCIICode = (evt.which) ? evt.which : evt.keyCode
            if (ASCIICode > 31 && (ASCIICode < 48 || ASCIICode > 57))
                return false;
            return true;
        }
    </script>

@endsection

Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY