@extends('admin.layouts.main') @section('title') Sales List @endsection @section('content')
@include('admin.common.sidebar')
@if (Request::is('branch/*'))

Branch Sales List

@else

HQ Sales List

@endif
search close
Total @{{ total }}
Customer Customer Type Location Agent Product Information Customer Information Branch Information Action
Product Sales Date Sales Amount TIN Number ID Type ID Number Branch Sent Date Branch Submitted By Received Date Received By Submission Status
@{{ item.lead_type == 'business' ? (item.business_name) ? item.business_name[0].toUpperCase() + item.business_name.slice(1) : '-' : (item.kua_customer && item.kua_customer.full_name != null) ? item.kua_customer.full_name[0].toUpperCase() + item.kua_customer.full_name.slice(1) : item.customer_name}}
@{{ (item.kua_customer && item.kua_customer.phone_number) ? item.kua_customer.phone_number : '-' }}
@{{ item.lead_type == 'business' ? (item.business_name) ? item.business_name[0].toUpperCase() + item.business_name.slice(1) : '-' : (item.customer_name) ? item.customer_name[0].toUpperCase() + item.customer_name.slice(1) : '-' }}
@{{ item.phone_number ? item.phone_number : '-' }}
@{{ (item.kua_customer && item.kua_customer.customer_type) ? item.kua_customer.customer_type[0].toUpperCase() + item.kua_customer.customer_type.slice(1) : '-' }} @{{ item.kua_region ? item.kua_region.region_name : '-' }} @{{ (item.kua_agent && item.kua_agent.full_name != null) ? item.kua_agent.full_name[0].toUpperCase() + item.kua_agent.full_name.slice(1) : '-' }} @{{ (item.kua_product && item.kua_product.product_name != null) ? item.kua_product.product_name[0].toUpperCase() + item.kua_product.product_name.slice(1) : '-' }} @{{ getSalesDate(item) }} @{{ item.sales_amount ? item.sales_amount : 0 }} @{{ (item.kua_customer && item.kua_customer.tin != null) ? item.kua_customer.tin : '-' }} @{{ getCustomerIdType(item) }} @{{ getCustomerIdNumber(item) }} @{{ getDispatchBranchDate(item) }} @{{ getDispatchBranchBy(item) }} @{{ getBranchReceivedDate(item) }} @{{ getBranchReceivedBy(item) }} @{{ item.branch_status ? item.branch_status : '-' }} remove_red_eye remove_red_eye
@include('admin.modules.kua_sales.modal') @endsection @push('pageCss') @endpush @push('pageJs') @endpush