| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/billing/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<!--begin::Wrapper-->
<div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
<!--begin::Header-->
<div id="kt_header" class="header" data-kt-sticky="true" data-kt-sticky-name="header" data-kt-sticky-offset="{default: '200px', lg: '300px'}">
<!--begin::Container-->
<div class="container-xxl d-flex align-items-center justify-content-between" id="kt_header_container">
<!--begin::Page title-->
<div class="page-title d-flex flex-column align-items-start justify-content-center flex-wrap me-lg-2 pb-5 pb-lg-0" data-kt-swapper="true" data-kt-swapper-mode="prepend" data-kt-swapper-parent="{default: '#kt_content_container', lg: '#kt_header_container'}">
<!--begin::Heading-->
<h1 class="text-dark fw-bold my-0 fs-2">Invoices List</h1>
<!--end::Heading-->
<!--begin::Breadcrumb-->
<ul class="breadcrumb breadcrumb-line text-muted fw-bold fs-base my-1">
<li class="breadcrumb-item text-muted">
<a href="<?php echo e(route('home')); ?>" class="text-muted">Dashboard</a>
</li>
<li class="breadcrumb-item text-dark">Invoices List</li>
</ul>
<!--end::Breadcrumb-->
</div>
<!--end::Page title=-->
<!--begin::Toolbar wrapper-->
<div class="d-flex flex-shrink-0">
<!--begin::Create app-->
<div class="d-flex ms-3">
<a href="<?php echo e(route('invoice.create')); ?>" class="btn btn-info" tooltip="Add Invoices" >Add Invoices</a>
</div>
<!--end::Create app-->
</div>
<!--end::Toolbar wrapper-->
<!--begin::Wrapper-->
<div class="d-flex d-lg-none align-items-center ms-n2 me-2">
<!--begin::Aside mobile toggle-->
<div class="btn btn-icon btn-active-icon-primary" id="kt_aside_toggle">
<!--begin::Svg Icon | path: icons/duotune/abstract/abs015.svg-->
<span class="svg-icon svg-icon-2x">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M21 7H3C2.4 7 2 6.6 2 6V4C2 3.4 2.4 3 3 3H21C21.6 3 22 3.4 22 4V6C22 6.6 21.6 7 21 7Z" fill="black" />
<path opacity="0.3" d="M21 14H3C2.4 14 2 13.6 2 13V11C2 10.4 2.4 10 3 10H21C21.6 10 22 10.4 22 11V13C22 13.6 21.6 14 21 14ZM22 20V18C22 17.4 21.6 17 21 17H3C2.4 17 2 17.4 2 18V20C2 20.6 2.4 21 3 21H21C21.6 21 22 20.6 22 20Z" fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
</div>
<!--end::Aside mobile toggle-->
<!--begin::Logo-->
<a href="<?php echo e(route('home')); ?>" class="d-flex align-items-center">
<img alt="Logo" src="assets/media/logos/logo-default.svg" class="h-40px" />
</a>
<!--end::Logo-->
</div>
<!--end::Wrapper-->
<!--begin::Toolbar wrapper-->
<div class="d-flex flex-shrink-0">
</div>
<!--end::Toolbar wrapper-->
</div>
<!--end::Container-->
</div>
<!--end::Header-->
<!--begin::Content-->
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--begin::Container-->
<div class="container-xxl" id="kt_content_container">
<!--begin::details View-->
<div class="card mb-5 mb-xl-10" id="kt_profile_details_view">
<!--begin::Card header-->
<div class="card-header cursor-pointer">
<!--begin::Card title-->
<div class="card-title m-0">
<h3 class="fw-bolder m-0">Invoices List</h3>
</div>
<!--end::Card title-->
<div class="card-title float-right m-0">
<a class="fw-bolder m-0 btn btn-success" href="<?php echo e(route('invoice.export')); ?>">Export Invoices</a>
</div>
</div>
<!--begin::Card header-->
<!--begin::Card body-->
<div class="card-body p-9">
<?php if($msg = Session::get('success')): ?>
<!--begin::Alert-->
<div class="alert alert-dismissible bg-success d-flex flex-column flex-sm-row p-5 mb-10">
<!--begin::Icon-->
<span class="svg-icon svg-icon-2hx svg-icon-light me-4 mb-5 mb-sm-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path opacity="0.3" d="M12 22C13.6569 22 15 20.6569 15 19C15 17.3431 13.6569 16 12 16C10.3431 16 9 17.3431 9 19C9 20.6569 10.3431 22 12 22Z" fill="black"></path>
<path d="M19 15V18C19 18.6 18.6 19 18 19H6C5.4 19 5 18.6 5 18V15C6.1 15 7 14.1 7 13V10C7 7.6 8.7 5.6 11 5.1V3C11 2.4 11.4 2 12 2C12.6 2 13 2.4 13 3V5.1C15.3 5.6 17 7.6 17 10V13C17 14.1 17.9 15 19 15ZM11 10C11 9.4 11.4 9 12 9C12.6 9 13 8.6 13 8C13 7.4 12.6 7 12 7C10.3 7 9 8.3 9 10C9 10.6 9.4 11 10 11C10.6 11 11 10.6 11 10Z" fill="black"></path>
</svg>
</span>
<!--end::Icon-->
<!--begin::Wrapper-->
<div class="d-flex flex-column text-light pe-0 pe-sm-10">
<!--begin::Title-->
<h4 class=" mb-2 text-white">Alert</h4>
<!--end::Title-->
<span class=" text-white"><?php echo e($msg); ?></span>
</div>
<!--end::Wrapper-->
<!--begin::Close-->
<button type="button" class="position-absolute position-sm-relative m-2 m-sm-0 top-0 end-0 btn btn-icon ms-sm-auto" data-bs-dismiss="alert">
<span class="svg-icon svg-icon-2x svg-icon-light">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="black"></rect>
<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="black"></rect>
</svg>
</span>
</button>
<!--end::Close-->
</div>
<!--end::Alert-->
<?php elseif($msg = Session::get('fail')): ?>
<!--begin::Alert-->
<div class="alert alert-dismissible bg-danger d-flex flex-column flex-sm-row p-5 mb-10">
<!--begin::Icon-->
<span class="svg-icon svg-icon-2hx svg-icon-light me-4 mb-5 mb-sm-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path opacity="0.3" d="M12 22C13.6569 22 15 20.6569 15 19C15 17.3431 13.6569 16 12 16C10.3431 16 9 17.3431 9 19C9 20.6569 10.3431 22 12 22Z" fill="black"></path>
<path d="M19 15V18C19 18.6 18.6 19 18 19H6C5.4 19 5 18.6 5 18V15C6.1 15 7 14.1 7 13V10C7 7.6 8.7 5.6 11 5.1V3C11 2.4 11.4 2 12 2C12.6 2 13 2.4 13 3V5.1C15.3 5.6 17 7.6 17 10V13C17 14.1 17.9 15 19 15ZM11 10C11 9.4 11.4 9 12 9C12.6 9 13 8.6 13 8C13 7.4 12.6 7 12 7C10.3 7 9 8.3 9 10C9 10.6 9.4 11 10 11C10.6 11 11 10.6 11 10Z" fill="black"></path>
</svg>
</span>
<!--end::Icon-->
<!--begin::Wrapper-->
<div class="d-flex flex-column text-light pe-0 pe-sm-10">
<!--begin::Title-->
<h4 class=" mb-2 text-white">Alert</h4>
<!--end::Title-->
<span class=" text-white"><?php echo e($msg); ?></span>
</div>
<!--end::Wrapper-->
<!--begin::Close-->
<button type="button" class="position-absolute position-sm-relative m-2 m-sm-0 top-0 end-0 btn btn-icon ms-sm-auto" data-bs-dismiss="alert">
<span class="svg-icon svg-icon-2x svg-icon-light">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="black"></rect>
<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="black"></rect>
</svg>
</span>
</button>
<!--end::Close-->
</div>
<!--end::Alert-->
<?php endif; ?>
<table class="table table-row-dashed table-row-gray-300 gy-7" id="datacustom">
<thead>
<tr class="fw-bolder fs-6 text-gray-800">
<th>S.No.</th>
<th>Customer Name</th>
<th>Product Name</th>
<th>Invoice Type </th>
<th>Created At</th>
<th>Action</th>
</tr>
</thead>
</table>
</div>
<!--end::Container-->
</div>
<!--end::Content-->
<?php echo $__env->make('layouts.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<!--end::Wrapper-->
<?php echo $__env->make('invoices.delete', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<form id="delete-form" action="<?php echo e(route('invoice.destroy')); ?>" method="POST" class="d-none">
<?php echo csrf_field(); ?>
<input type="hidden" name="delete_id" id="delete_id" value=""/>
</form>
<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('assets/js/main.js')); ?>"></script>
<script type="text/javascript">
$(function () {
var table = $('#datacustom').DataTable({
processing: true,
serverSide: true,
pageLength: 10,
// ajax: "<?php echo e(route('invoice.index')); ?>",
"ajax":{
"url":"<?php echo e(route('invoice.index')); ?>",
"type": "GET",
// success:function(data)
// { console.log(data);},
error:function(msg)
{
var errors = msg.responseJSON;
console.log(errors);
},
},
columnDefs: [{
"defaultContent": "-",
"targets": "_all"
}],
columns: [
{data: 'DT_RowIndex', name: 'DT_RowIndex',orderable: false, searchable: false},
{data: 'customer_name', name: 'customer_name',orderable: true,searchable : true},
{data: 'p_name', name: 'p_name',orderable: true,searchable : true},
{data: 'invoice_type', name: 'invoice_type',orderable: true,searchable : true},
{data: 'date', name: 'created_at',orderable: true,searchable : true},
{data: 'action', name: 'action', orderable: true,
searchable: true},
],
searching: true,
});
});
</script>
<?php $__env->stopSection(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.weblayout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\test\resources\views/invoices/index.blade.php ENDPATH**/ ?>