@extends('layouts/pos_layout') @section('title', '| Installment Package List') @section('content') @include('successMsg')

Installment Package

{{ csrf_field() }} @if (!empty($installmentPackagesMethodDetails)) @foreach ($installmentPackagesMethodDetails as $installmentPackage) @php $isDeletedOrEdited = App\Models\pos\Transaction\PosSale::where('sales_date','>=',date('Y-m-d',strtotime($installmentPackage->effected_date)))->count(); @endphp @endforeach @endif
SL# Method Effected Date Down Payment & Security Money(%) Applicable For Installment Config Action
Brand Group Category Sub Category Model Product
{{ ++$no }} {{ $installmentPackage->name ?? 'N/A' }} {{ date('d-m-Y',strtotime($installmentPackage->effected_date)) }} @php $downPaymentSecurityMoneyConfig = json_decode($installmentPackage->config_details); @endphp
  1. is Take Down Payment : {{ $downPaymentSecurityMoneyConfig->isTakeDownPayment }}
    is Count First Installment : {{ $downPaymentSecurityMoneyConfig->isCountAsFirstInstallment }}
    Down Payment Type : {{ $downPaymentSecurityMoneyConfig->downPaymentType }}
    @if($downPaymentSecurityMoneyConfig->downPaymentType == 'percentageType') Down Payment : {{ $installmentPackage->down_payment_percentage }}% @endif
  2. is Take Security Money : {{ $downPaymentSecurityMoneyConfig->isTakeSecurityMoney }}
    Security Money Type : {{ $downPaymentSecurityMoneyConfig->securityMoneyType }}
    @if($downPaymentSecurityMoneyConfig->securityMoneyType == 'percentageType') Security Money : {{ $installmentPackage->security_money_percentage }}% @endif
@php $brands = App\Models\pos\ProductConfig\PosProductBrand::select('id', 'name')->whereIn('id',json_decode($installmentPackage->brand_id))->orderBy('name','ASC')->get(); @endphp @if (count($brands) > 0)
    @foreach ($brands as $brand)
  1. {{ $brand->name }}
  2. @endforeach
@else All @endif
@php $groups = App\Models\pos\ProductConfig\PosProductGroup::select('id', 'name')->whereIn('id',json_decode($installmentPackage->group_id))->orderBy('name','ASC')->get(); @endphp @if (count($groups) > 0)
    @foreach ($groups as $group)
  1. {{ $group->name }}
  2. @endforeach
@else All @endif
@php $categories = App\Models\pos\ProductConfig\PosProductCategory::select('id', 'name')->whereIn('id',json_decode($installmentPackage->category_id))->orderBy('name','ASC')->get(); @endphp @if (count($categories) > 0)
    @foreach ($categories as $category)
  1. {{ $category->name }}
  2. @endforeach
@else All @endif
@php $subCategories = App\Models\pos\ProductConfig\PosProductSubCategory::select('id', 'name')->whereIn('id',json_decode($installmentPackage->sub_category_id))->orderBy('name','ASC')->get(); @endphp @if (count($subCategories) > 0)
    @foreach ($subCategories as $subCategory)
  1. {{ $subCategory->name }}
  2. @endforeach
@else All @endif
@php $models = App\Models\pos\ProductConfig\PosProductModel::select('id', 'name')->whereIn('id',json_decode($installmentPackage->model_id))->orderBy('name','ASC')->get(); @endphp @if (count($models) > 0)
    @foreach ($models as $model)
  1. {{ $model->name }}
  2. @endforeach
@else All @endif
@php $products = App\Models\pos\ProductConfig\PosProduct::select('id', 'name', 'barcode')->whereIn('id',json_decode($installmentPackage->product_id))->orderBy('name','ASC')->get(); @endphp @if (count($products) > 0)
    @foreach ($products as $product)
  1. {{ $product->name }}
    {{ $product->barcode }}
  2. @endforeach
@else All @endif
@php $installmentConfig = json_decode($installmentPackage->month_profit_installment_type); @endphp @if (!empty($installmentConfig))
    @foreach ($installmentConfig as $itemInsConfig)
  1. {{ $itemInsConfig->month }} ({{ $itemInsConfig->installment_type }}) = {{ $itemInsConfig->profit }}%
  2. @endforeach
@endif
@if($isDeletedOrEdited == 0) @endif
@include('dataTableScript') @endsection