@extends('admin.layout.master') @section('title','VOUCHER DETAILS') @section('custom_style') @endsection @section ('content') {{--
--}}
@section('page_title', ucwords(str_replace("_", " ", $voucher_type['name']))) @include('admin.layout.page_title_header_with_print')
{!! $head !!} @if($voucher_type['type']==5)
Doc Type :
{{$voucher_type['name']}}
JV No :
{{$transactions->voucher_no}}
Voucher Date :
{{date('d/m/Y',strtotime($transactions->date))}}
Ref. No :
No Of Attach
Description: {{$transactions->note}}
{{--
--}}
Ben_Name:
{{--
--}}
Rec_name:
{{--
--}} {{--
--}}
@php $amount=0; $camount=0; @endphp @forelse($transactions->journals as $jr) @php $amount+=$jr->type==0?$jr->amount:0; $camount+=$jr->type==1?$jr->amount:0; @endphp @empty @endforelse
Accounts Detail Accounts Account Name Currency Description Local Currency Foreign Currency Center NO
Debit Credit Debit Credit
{{$jr->ledger?$jr->globalLedger->auto_code:''}} {{$jr->ledger?$jr->globalLedger->auto_code:''}} {{$jr->ledger?$jr->globalLedger->name:''}} {{'SAR'}} {{$jr->note}} {{$jr->type==0?number_format($jr->amount,2):''}} {{$jr->type==1?number_format($jr->amount,2):''}} {{''}} {{''}} {{$jr->cost_center_id}}
Total Amount : {{ number_format($amount,2)}} {{ number_format($camount,2)}}
In Words : {{getNumberInWords($amount)}}
@else

{{ucwords(str_replace('_',' ',$voucher_type['name']))}}

     Voucher No :
{{$transactions->voucher_no}}
Cash No :
     Voucher Date :
{{date('d/m/Y',strtotime($transactions->date))}}
Cash Name :
     Ref. No.
        {{$voucher_type['type']<3?'Pay To ':'Receive From '}} {{$transactions->journals->where('type',$voucher_type['type']<3?1:0)->first()->globalLedger->name ?? "" }}
@php $amount=$transactions->journals->where('type',$voucher_type['type']<3?0:1)->sum('amount'); @endphp
  Amount
{{getNumberInWords($amount)}}
{{number_format($amount,2)}}
SAR
To {{$voucher_type['type']<3?'Credit':'Debit'}} With
@php $camount=0; @endphp @forelse($transactions->journals->where('type',$voucher_type['type']<3?0:1) as $jr) @php $camount+=$jr->amount; @endphp @empty @endforelse
Accounts No Currency Detail Accounts Account Name Description Amount Center NO Ref. No. L/C No.
{{$jr->ledger?$jr->globalLedger->auto_code:''}} {{'SAR'}} {{$jr->ledger?$jr->globalLedger->auto_code:''}} {{$jr->ledger?$jr->globalLedger->name:''}} {{$jr->note}} {{number_format($jr->amount,2)}} {{$jr->cost_center_id}} {{''}} {{''}}
@endif {{-- @include("admin.layout.footer_signature") --}} {!! $foot !!}
{{--
--}} @endsection @section('script') @stop