@extends('layouts.nav') @section('title') Tax Report @endsection @section('content')

Accounting Report

Tax Report
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf
Tax Description
From Period
To Period
Select Currency
From
To

{{$name}} Statement

Date

@php use Carbon\Carbon; $todayLongDate = Carbon::now()->format(' F j, Y'); @endphp

{{$todayLongDate}}

Tax Account

{{$code}}

Currency: {{$currnames}}

From: {{$from}} To: {{$to}}

@php $b = 0; // Initialize $b @endphp @foreach ($trans as $tran) @php $b = $b+ (($tran->Qnty * ($tran->Price - ($tran->Price * ($tran->Discount / 100)))) * ($tran->Tax / 100)); @endphp @endforeach
Description EntryDate Amount Tax % Tax Amount
{{$tran->Narration}} {{$tran->EntryDate}} {{(($tran->Price * $tran->Qnty)-(($tran->Price * ($tran->Discount / 100)) * $tran->Qnty))}} {{$tran->Tax}}{{number_format( (($tran->Qnty * ($tran->Price - ($tran->Price * ($tran->Discount / 100)))) * ($tran->Tax / 100)),2) }}
Total Tax:
@if($b < 0) ({{ number_format(abs($b), 2) }}) @else {{ number_format($b, 2) }} @endif
@endsection