@extends('layouts.master') @section('content')
Back to Dashboard
Process Supplier Journal
@csrf
@if(Session::has('success'))

{{ Session('success') }}

@endif @if(Session::has('error'))

{{ Session('error') }}

@endif
@error('date')
{{ $message }}
@enderror
@error('narration')
{{ $message }}
@enderror
@error('supplier_account_id')
{{ $message }}
@enderror
@error('reference')
{{ $message }}
@enderror
@error('tr_code')
{{ $message }}
@enderror
@error('currency_id')
{{ $message }}
@enderror
@error('amount')
{{ $message }}
@enderror
@error('project_id') {{ $message }} @enderror
Journal Entries
@if($tempEntries->isNotEmpty())
@csrf
@endif
@if($tempEntries->isEmpty())

No journal entries available.

@else
@foreach($tempEntries as $entry) @endforeach
Date Supplier Code Supplier Name Narration DR CR Status Action
{{ date('d/m/Y', strtotime($entry->date)) }} {{ $entry->supplier->supplier_code }} {{ $entry->supplier->supplier_account }} {{ $entry->narration }} {{ $entry->tr_code === 'DR' ? number_format($entry->amount, 2) : '' }} {{ $entry->tr_code === 'CR' ? number_format($entry->amount, 2) : '' }} @if($entry->status === 'Processed') Processed @else Open Journal @endif @if($entry->status !== 'Processed')
@csrf
@endif
@endif
@endsection