@extends('admin.layout.master') @section('title',_('obs.journal').' '.__('obs.statement')) @section('custom_style') @endsection @section ('content')
@include('admin.layout.title_header', ['title'=>_('obs.journal').' '.__('obs.statement')])
@include('accounts.reports.search_form',['ledger'=>0,'is_user'=>1])
@php $printData['start_date']=Request()->start_date?date('d-M-Y',strtotime(Request()->start_date)):date('d-M-Y'); $printData['end_date']=Request()->end_date?date('d-M-Y',strtotime(Request()->end_date)):date('d-M-Y'); $routeName=Route::currentRouteName(); $printData=getPrintData($routeName,[]); @endphp {!!$printData['head']!!}
@php $amount=0; @endphp @forelse($journals->groupBy('voucher_id') as $journalsEntry) @php $reff=$journalsEntry->first()->voucher->reffInvoice??$journalsEntry->first()->voucher->reffFgInvoice; $printUrlArray=['','purchase-print?id=','purchase-print?id=','sell-print?id=','sell-print?id=','adjustment-print?id=','adjustment-print?id=','adjustment-print?id=','issue-print?id=','issue-print?id=','store_transfer-print?model=0&store_invoice_id=', 'store_transfer-print?model=1&store_invoice_id=', 'production-print?id=', 'opening-print?id=','','','adjustment-print?id=', 'purchase-contract-print?id=', 'sales-contract-print?id=']; @endphp @php $time=strtotime($journalsEntry->first()->voucher->date); $date=date("d-M-Y",$time); $ledger_name=''; $damountHtml=''; $amountHtml=''; $title=''; foreach($journalsEntry->sortBy('group_type')->groupBy('group_type') as $journalsEntryGroup){ foreach($journalsEntryGroup as $jr){ if($jr->type==0){ $title.=''; //$jr->refTransaction; if($jr->refTransaction){ $ledger_name.=''.getNameLedgerName($jr->refTransaction,$jr->type).'
'; }else{ $ledger_name.=($jr->globalLedger ? $jr->globalLedger->name.(($jr->refLedger && ($jr->ledger_id!=$jr->reff_no))? ' [ '.$jr->refLedger->name.' ]':'') : '').'
'; } // $ledger_name.=($jr->ledger ? $jr->ledger->name.(($jr->refLedger && ($jr->ledger_id!=$jr->reff_no))? ' [ '.$jr->refLedger->name.' ]':'') : '').'
'; $damountHtml.=number_format($jr->amount,2).'
'; $amountHtml.='
'; }else{ if($jr->refTransaction){ $ledger_name.='        '.''.getNameLedgerName($jr->refTransaction,$jr->type).'
'; }else{ $ledger_name.='        '.($jr->globalLedger ? $jr->globalLedger->name.(($jr->refLedger && ($jr->ledger_id!=$jr->reff_no))? ' [ '.$jr->refLedger->name.' ]':'') : '').'
'; } // $ledger_name.='        '.($jr->ledger ? $jr->ledger->name.(($jr->refLedger && ($jr->ledger_id!=$jr->reff_no))? ' [ '.$jr->refLedger->name.' ]':'') : '').'
'; $amountHtml.=number_format($jr->amount,2).'
'; $damountHtml.='
'; $amount=$amount+$jr->amount; } } } @endphp @empty @endforelse
{{__('obs.voucher_no')}} {{__('obs.reff_no')}} {{__('obs.date')}} {{__('obs.account_title')}} {{__('obs.description')}} {{__('obs.debit')}} {{__('obs.credit')}}
{{$journalsEntry->first()->voucher->voucher_no}} @if($reff) {{$reff->invoice_no}} ({{strtoupper(getProductLine()[$reff->line])}}) @endif {{$date}} {!!$ledger_name!!} {{$journalsEntry->first()->voucher->note}} {!!$damountHtml!!} {!!$amountHtml!!}
{{__('obs.there_is_no_records_available')}}
{{__('obs.total_transaction')}} : {{ number_format($amount,2) }} {{ number_format($amount,2) }}
{{-- --}}
{{-- --}}
@endsection @section('script') @stop