@extends('layouts.master') @section('style') @endsection @section('content')
@if ($showButtons) Download PDF {{-- Download Excel --}}
@endif

International Fuel Tax Agreement (IFTA) - Q{{ $data['quarter'] }} {{ $data['year'] }}

{{ getAuthCompanyName() }}

Total Miles: {{ number_format($data['total_miles_start'], 2) }}

Total Gallons: {{ number_format($data['total_gal_start'], 2) }}

Average MPG: {{ number_format($data['mpg'], 2) }}

@php $AMT_DUE = 0; $interest_total = 0; $TAX_DUE = 0; $totalMiles = 0; $totalGallon = 0; @endphp @foreach ($rowData as $row2) @php $TAX_GAL = $row2->totalMiles != 0 && $data['mpg'] != 0 ? round($row2->totalMiles / $data['mpg']) : 0; $NET_TAX_GAL = round($TAX_GAL - $row2->totalGallons); $NET_TAX_GALpr = $NET_TAX_GAL < 0 ? '(' . abs($NET_TAX_GAL) . ')' : $NET_TAX_GAL; $TAX_AMT = round($row2->RATE_US * $NET_TAX_GAL, 2); $AMT_DUE += $TAX_AMT; @endphp @if (in_array($row2->STATE, ['KY', 'VA', 'IN'])) @php $stateSurcharge = ''; $quarter = $data['quarter']; $year = $data['year']; switch ($row2->STATE) { case 'KY': $stateSurcharge = 'KENTUCKY SurChg'; break; case 'IN': $stateSurcharge = 'INDIANA SurChg'; break; case 'VA': $stateSurcharge = 'VIRGINIA SurChg'; break; } $fsc = DB::table('ifta_rates_new') ->where('Quarter', $quarter) ->where('Year', $year) ->where('State', $row2->STATE) ->first(); $TAX_AMT_SRC = !empty($fsc->Surcharge_Rate) ? round($fsc->Surcharge_Rate * $TAX_GAL, 2) : 0; @endphp @php $interest = !empty($data['ifta_tax_rate_interest']) ? $data['ifta_tax_rate_interest']->A2 : 0.0; $interest_months = $data['interest_months']; $interest = str_replace('%', '', $interest); $interest_due = ($interest / 100 / 12) * $interest_months * $TAX_AMT_SRC; $total_due = $TAX_AMT_SRC + $interest_due; $interest_total += $interest_due; $TAX_DUE += $TAX_AMT_SRC; @endphp @php $AMT_DUE += $total_due; @endphp @endif @endforeach
JURISDICTION TOTAL MILES TAX MILES TAX PAID
GALLONS
TAXABLE
GALLONS
NET TAXABLE
GALLONS
FUEL TAX
RATE
TAX DUE /
(REFUND)
INTEREST
DUE
TOTAL DUE
{{ $row2->STATE }} {{ number_format($row2->totalMiles) }} {{ number_format($row2->totalMiles) }} {{ number_format($row2->totalGallons) }} {{ $TAX_GAL }} {{ $NET_TAX_GALpr }}
{{ $row2->RATE_US }}
{{ $TAX_AMT < 0 ? '(' . abs($TAX_AMT) . ')' : $TAX_AMT }} @php $interest = !empty($data['ifta_tax_rate_interest']) ? $data['ifta_tax_rate_interest']->A2 : 0.0; $interest_months = $data['interest_months']; $interest = str_replace('%', '', $interest); $interest_due = ($interest / 100 / 12) * $interest_months * $TAX_AMT; $total_due = $TAX_AMT + $interest_due; $interest_total += $interest_due; $TAX_DUE += $TAX_AMT; $abs = abs($interest_due); echo $interest_due < 0 ? '(' . number_format($abs, 2) . ')' : number_format($interest_due, 2); @endphp {{ $total_due < 0 ? '(' . number_format(abs($total_due), 2) . ')' : number_format($total_due, 2) }}
{{ $row2->STATE }} surcharge {{ number_format($row2->totalMiles) }} mi   0 {{ $TAX_GAL }} {{ $NET_TAX_GALpr }} gal
{{ !empty($fsc->Surcharge_Rate) ? $fsc->Surcharge_Rate : '' }}
{{ $TAX_AMT_SRC < 0 ? '(' . abs($TAX_AMT_SRC) . ')' : $TAX_AMT_SRC }} {{ number_format($interest_due, 2) }} {{ $total_due < 0 ? '(' . number_format(abs($total_due), 2) . ')' : number_format($total_due, 2) }}
TOTALS {{ number_format($data['total_miles_start'], 2) }}   {{ number_format($data['total_gal_start'], 2) }}       {{ number_format($TAX_DUE, 2) }} {{ number_format($interest_total, 2) }}  

Return Information
@php if(date('Y-m-d') < $data['date1']){ $penalty_amt = 0; }else{ $penalty_amt = ($TAX_DUE + $interest_total) * 0.1; $penalty_amt = $penalty_amt < 50 ? 50 : $penalty_amt; } $GRAND_TOTAL = $TAX_DUE + $penalty_amt + $interest_total; @endphp
Total Tax $ {{ number_format($TAX_DUE, 2) }}
Total Interest $ {{ number_format($interest_total, 2) }}
Total Penalties $ {{ number_format($penalty_amt, 2) }}
Total Adjustments  
Total Other

Total Due $ {{ number_format($GRAND_TOTAL, 2) }}

Total Tax Due: $ {{ number_format($GRAND_TOTAL, 2) }}

     

*Interest Charges: For periods on or after {{ $data['due_date'] }}, interest shall be set at an annual rate of {{ !empty($data['ifta_tax_rate_interest']) ? $data['ifta_tax_rate_interest']->A2 : '0.00' }} above the underpayment rate established under Section 6621(a)(2) of the Internal Revenue Code. Unlike penalty charges, interest is computed on the tax due to each member jurisdiction, rather than the net total due with your report.

*IFTA Penalties: IFTA legislation states that a penalty of $50.00 or 10% of the taxes owed (whichever is greater) will be calculated on late-filed reports, failure to file or for underpayment of tax due. If the net tax liability is zero or a credit, you will owe the late filing penalty.

Signature: _______________________________

Name:__________________________________
Title:
Date: {{ date('m/d/Y') }}
@endsection()