⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
makarnacimmix.xyz
/
resources
/
views
/
pdf
/
Edit File: invoices.blade.php
@extends('pdf') @section('content-area') <h3>@lang('All invoices')</h3> <div class="table-responsive"> <table class="table-listing table table-bordered table-striped table-sm"> <thead class="thead-light"> <tr> <th>@lang('#')</th> <th>@lang('Invoice No')</th> <th>@lang('Invoice Date')</th> <th>@lang('Client')</th> <th>@lang('Subtotal')</th> <th>@lang('Transport')</th> <th>@lang('Discount')</th> <th>@lang('Tax')</th> <th>@lang('Net Total')</th> <th>@lang('Due')</th> <th>@lang('Status')</th> </tr> </thead> <tbody> @foreach ($invoices as $key => $invoice) <tr> <td>{{ ++$key }}</td> <td>{{ config('config.invoicePrefix') . '-' . $invoice['invoice_no'] }}</td> <td> {{ \Carbon\Carbon::parse($invoice['invoice_date'])->format('d-M-Y') }} </td> <td>{{ $invoice['client']['name'] }}</td> <td> @if(config('config.currencyPosition') == 'left') {{ config('config.currencySymbol') . $invoice['sub_total'] }} @else {{ $invoice['sub_total'] . config('config.currencySymbol') }} @endif </td> <td> @if(config('config.currencyPosition') == 'left') {{ config('config.currencySymbol') }} {{ $invoice['transport'] > 0 ? $invoice['transport'] : 0 }} @else {{ $invoice['transport'] > 0 ? $invoice['transport'] : 0 }} {{ config('config.currencySymbol') }} @endif </td> <td> @if(config('config.currencyPosition') == 'left') {{ config('config.currencySymbol') }} {{ $invoice['discount'] > 0 ? $invoice['discount'] : 0 }} @else {{ $invoice['discount'] > 0 ? $invoice['discount'] : 0 }} {{ config('config.currencySymbol') }} @endif </td> <td> @if(config('config.currencyPosition') == 'left') {{ config('config.currencySymbol') }} {{ $invoice['calculated_tax'] > 0 ? $invoice['calculated_tax'] : 0 }} @else {{ $invoice['calculated_tax'] > 0 ? $invoice->total_tax : 0 }} {{ config('config.currencySymbol') }} @endif </td> <td> @if(config('config.currencyPosition') == 'left') {{ config('config.currencySymbol') . $invoice['calculated_total'] }} @else {{ $invoice['calculated_total'] . config('config.currencySymbol') }} @endif </td> <td> @if(config('config.currencyPosition') == 'left') {{ config('config.currencySymbol') }} {{ $invoice['calculated_due'] > 0 ? $invoice['calculated_due'] : 0 }} @else {{ $invoice['calculated_due'] > 0 ? $invoice['calculated_due'] : 0 }} {{ config('config.currencySymbol') }} @endif </td> <td> @if ($invoice['status']) @lang('Active') @else @lang('Inactive') @endif </td> </tr> @endforeach </tbody> </table> </div> @endsection
Simpan