@extends('layouts.app') @section('stitle', __('messages.journalEntry')) @section('title', __('messages.journalEntry')) @section('content')
@if(session()->get('title') == "success") @elseif (session()->get('title') == "error") @endif
@if(Auth::user()->business->getReceipt) @if(Auth::user()->business->getReceipt->is_logo_used== 1 && Auth::user()->business->getReceipt->logo !=null )
No Company Logo found From Account Settings
@endif @endif

{{ Auth::user()->business->business_name }}

{{ Auth::user()->business->address }}

{{ Auth::user()->business->city }} - {{ Auth::user()->business->country }}

{{__('messages.VATNumber')}}: {{ Auth::user()->business->vat_number }}

{{__('messages.journalEntry')}}

{{--

{{__('messages.PR')}}#:

--}} {{--
--}} {{--

{{__('messages.Destination')}}:

--}} {{--

--}} {{--
--}} {{--
--}} {{--

{{__('messages.DateIssue')}}:

--}} {{--

--}} {{--
--}}

{{__('messages.journalEntryNo')}} : {{$journalEntry->entry_no}}
{{__('messages.DESCRIPTION')}} : {{$journalEntry->description}}
{{__('messages.date')}} : {{$journalEntry->journal_date}}
@php $total_debit = 0; $total_credit = 0; @endphp @foreach($journalEntry->journalEntryList as $jEntry) @if($jEntry->journal_type()->count() > 0) @if($jEntry->journal_type->type == \App\Models\JournalEntryType::IS_SUPPLIER) @elseif($jEntry->journal_type->type == \App\Models\JournalEntryType::IS_USER) @elseif($jEntry->journal_type->type == \App\Models\JournalEntryType::IS_PAYMENT_METHOD) @elseif($jEntry->journal_type->type == \App\Models\JournalEntryType::IS_PURCHASE_TYPE) @elseif($jEntry->journal_type->type == \App\Models\JournalEntryType::VAT_TYPE) @elseif($jEntry->journal_type->type == \App\Models\JournalEntryType::IS_WAREHOUSE) @elseif($jEntry->journal_type->type == \App\Models\JournalEntryType::IS_BRANCH) @else @endif @else @endif @php $total_debit +=$jEntry->debit; $total_credit +=$jEntry->credit; @endphp @endforeach
{{__('messages.account')}} {{__('messages.name')}} {{__('messages.debits')}} {{__('messages.Credit')}} {{__('messages.Branch')}} {{__('messages.comments')}}
{{$jEntry->getChartOfAccount->name}}{{$jEntry->journal_type->supplier->name}}{{$jEntry->journal_type->user->name}}{{$jEntry->journal_type->paymentMethod->name}}{{$jEntry->journal_type->purchaseType->name}}{{$jEntry->journal_type->type_id == \App\Models\JournalEntryType::IS_INPUT ? "VAT - Incoming": "VAT - Outgoing" }}{{$jEntry->journal_type->warehouse->name}}{{ $jEntry->journal_type->branch->name}}{{$jEntry->debit ?? ''}} {{$jEntry->credit ?? ''}} {{$jEntry->getBranch->name ?? ''}} {{$jEntry->comment}}

{{-- {{__('messages.CreatedBy')}}: --}}

{{__('messages.totalDebit')}}:

{{$total_debit}}{{ Auth::user()->business->currency->symbol }}


{{__('messages.totalCredit')}} :

{{$total_credit}}{{ Auth::user()->business->currency->symbol }}


Note: It was a pleasure working with you and your team. We hope you will keep us in mind for future projects. Thank You!
@endsection