@extends('layouts.nav') @section('title') {{$JournalType}} Journal @endsection @section('content')

{{$JournalType}} Journal

  • Other Accounts
  • Process {{$JournalType}} Journal
    @if (session('success'))
    {{ session('success') }}
    @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
    {{ $error }}
    @endforeach
    @endif
    @csrf
    @if($JournalType != "General")
    @else
    @endif

    @foreach($Jts as $jt) @endforeach
    Date {{ $JournalType == 'General' ? 'GL Name' : $JournalType . ' Name' }} {{ $JournalType == 'General' ? 'GL Code' : $JournalType . ' Code' }} Narration DR CR Status Action
    {{ \Carbon\Carbon::parse($jt->EntryDate)->format('Y-m-d') }} {{ Str::limit($jt->display_name, 12) }} {{ $jt->AccSubCode }} {{ $jt->Narration }} {{-- Assuming DR and CR are mutually exclusive --}} {{ number_format($jt->DR, 2) }} {{-- Assuming DR and CR are mutually exclusive --}} {{ number_format($jt->CR, 2) }} Open Journal
    @csrf
    @csrf
    @csrf @method('DELETE')
    {{-- Process All Button --}}
    @csrf
    @endsection