@extends('layouts.app') {{-- Important Variable --}} @php $permissionAssignedSale = config('recovery_roles.AssignedSales.All'); @endphp @section('title') {{ $moduleName }} -> {{ $breadcrumbCurrentName }} @stop @section('top-bar') @include('includes.top-bar') @stop @section('left-sidebar') @include('includes.recovery-left-sidebar') @stop @if (!$permissionAssignedSale) @else @section('content')

{{__('lang.search_criteria')}}


{{ csrf_field() }}
{{--
--}}
{{ csrf_field() }} @if (count($sell_assigns) > 0) {{-- --}} @foreach ($sell_assigns as $sell_assign) @php $class = ''; if ($sell_assign->sell->status === 'ACTIVE') { $class = 'label label-success'; } elseif ($sell_assign->sell->status === 'REACTIVATE') { $class = 'label label-warning'; } elseif ($sell_assign->sell->status === 'BLOCKED') { $class = 'label label-info'; } elseif ($sell_assign->sell->status === 'BUY BACK') { $class = 'label label-primary'; } elseif ($sell_assign->sell->status === 'CANCELLATION') { $class = 'label label-warning'; } else { $class = 'label label-danger'; } @endphp @endforeach {{-- --}}
{{__('lang.registration_no')}} {{__('lang.project')}} {{__('lang.customer_name')}} {{__('lang.phones')}} {{__('lang.product')}} {{__('lang.details')}} {{__('lang.payment_in_this_month')}} {{__('lang.total_due_amount')}} {{__('lang.recovery_agent_name')}}{{__('lang.type')}}{{__('lang.sales_status')}} {{__('lang.dues_details')}} {{__('lang.option')}}
{{ $sell_assign->sell->registration_no }} {{ $sell_assign->sell->branch->name }} {{ $sell_assign->sell->customer->name }} {{ !empty($sell_assign->sell->customer->phone) ? $sell_assign->sell->customer->phone : $sell_assign->sell->customer->overseas_phone }} {{ $sell_assign->sell->product->product_unique_id }} @if ($sell_assign->sell->product->block->name) Block : {{ $sell_assign->sell->product->block->name ?? '-' }}
@endif @if ($sell_assign->sell->product->floor->name) Floor : {{ $sell_assign->sell->product->floor->name ?? '-' }}
@endif Size : {{ $sell_assign->sell->product->flat_size }} {{ $sell_assign->sell->product->size_in }}
@php $paid_class = ''; $date_class = 'dis-none'; if ($sell_assign->sell->paidThisMonth > 0) { $paid_class = 'label label-success'; $date_class = 'label label-info'; } @endphp {{ $transaction->convert_money_format($sell_assign->paidThisMonth) ?? '0.00' }}
{{ date('d-M-Y', strtotime($sell_assign->sell->last_date_of_collection)) }}
@php $payable_amount = $sell_assign->sell->due_terms->sum('payable_amount'); $payment_received_amount = $sell_assign->sell->due_terms->sum('payment_received_amount'); $balance_amount = $payable_amount - $payment_received_amount; @endphp {{ $transaction->convert_money_format($balance_amount) ?? '-'}} {{ $sell_assign->sell->SellAssignRecovery->recoveryAgent->name ?? '-' }} {{ $sell_assign->sell->status ?? '-' }} @if(count($sell_assign->CurrentMonthTasks) > 0)

Task Created @endif
{{__('lang.registration_no')}} {{__('lang.project')}} {{__('lang.customer_name')}} {{__('lang.phones')}} {{__('lang.product')}} {{__('lang.details')}} {{__('lang.payment_in_this_month')}} {{__('lang.total_due_amount')}} {{__('lang.recovery_agent_name')}}{{__('lang.type')}}{{__('lang.sales_status')}} {{__('lang.dues_details')}} {{__('lang.option')}}
@else
{{__('lang.there_has_no_data')}}
@endif
{{ $sell_assigns->appends(request()->toArray())->links() }}
{{-- MODAL START --}} {{-- MODAL END --}}
@stop @push('include-css') @endpush @push('include-js') {{-- --}} {{-- All datagrid --}} @endpush @endif