@extends('backend.layout') @section('content')
{{ __('Transaction ') }}
@if (count($transcations) == 0)

{{ __('NO TRANSACTION FOUND') . '!' }}

@else
@foreach ($transcations as $transcation) @endforeach
{{ __('Transcation Id') }} {{ __('Vendor') }} {{ __('Transcation Type') }} {{ __('Payment Method') }} {{ __('Pre Balance') }} {{ __('Amount') }} {{ __('After Balance') }} {{ __('Total') }} {{ __('Status') }} {{ __('Actions') }}
#{{ $transcation->transcation_id }} @php $vendor = $transcation->vendor()->first(); @endphp @if ($vendor) {{ $vendor->username }} @else {{ __('Admin') }} @endif @if ($transcation->transcation_type == 1) {{ 'Equipment Booking' }} @elseif ($transcation->transcation_type == 2) {{ 'Withdraw' }} @elseif ($transcation->transcation_type == 3) {{ 'Balance Added' }} @elseif ($transcation->transcation_type == 4) {{ 'Balance Subtracted' }} @elseif ($transcation->transcation_type == 5) {{ 'Product Purchase' }} @endif @if ($transcation->transcation_type == 2) @php $method = $transcation->method()->first(); @endphp @if ($method) {{ $method->name }} @else {{ '-' }} @endif @else {{ $transcation->payment_method != null ? $transcation->payment_method : '-' }} @endif @if ($transcation->pre_balance != null) {{ $transcation->currency_symbol_position == 'left' ? $transcation->currency_symbol : '' }} {{ $transcation->pre_balance }} {{ $transcation->currency_symbol_position == 'right' ? $transcation->currency_symbol : '' }} @else {{ '-' }} @endif @if ($transcation->transcation_type == 2 || $transcation->transcation_type == 4) {{ '(-)' }} @else {{ '(+)' }} @endif {{ $transcation->currency_symbol_position == 'left' ? $transcation->currency_symbol : '' }} {{ $transcation->grand_total }} {{ $transcation->currency_symbol_position == 'right' ? $transcation->currency_symbol : '' }} @if ($transcation->after_balance != null) {{ $transcation->currency_symbol_position == 'left' ? $transcation->currency_symbol : '' }} {{ $transcation->after_balance }} {{ $transcation->currency_symbol_position == 'right' ? $transcation->currency_symbol : '' }} @else {{ '-' }} @endif @if ($transcation->transcation_type == 1) {{ $transcation->currency_symbol_position == 'left' ? $transcation->currency_symbol : '' }} {{ $transcation->grand_total + $transcation->tax + $transcation->commission }} {{ $transcation->currency_symbol_position == 'right' ? $transcation->currency_symbol : '' }} @else - @endif @if ($transcation->transcation_type == 2) @if ($transcation->payment_status == 0) Pending @elseif ($transcation->payment_status == 1) Approved @elseif ($transcation->payment_status == 2) Rejected @endif @else @if ($transcation->payment_status == 1) Paid @else Unpaid @endif @endif @if ($transcation->transcation_type == 1) @php $booking = $transcation->booking()->first(); @endphp @if ($booking) @endif @endif
@endif
@endsection