@extends("agentportal.layouts.layout") @section("title", trans("message_lang.LBL_INACTIVE_LOCATION")) @section("page_style") @endsection @section("content")

{!! trans("message_lang.LBL_INACTIVE_LOCATION") !!}

@csrf
has('from_date') ? $request->from_date : date('Y-m-d',strtotime(now())))) : date('Y-m-d',strtotime($request->has('from_date') ? $request->from_date : date('Y-m-d',strtotime(now())))) }}"> @error('from_date') {{ $message }} @enderror
to_date)) : date('Y-m-d',strtotime($request->to_date)) : date('Y-m-d',strtotime(now())) !!}"> @error('to_date') {{ $message }} @enderror
{!! trans("message_lang.BTN_CLEAR_SEARCH") !!}
@if($locations)
@endif
@forelse ($locations as $key => $location) @php $trx = app('App\Http\Controllers\Agentportal\InactiveAgentLocationController')->getLastTrxDate($location->id) @endphp @empty @endforelse
# {!! trans('message_lang.LBL_CODE') !!} {!! trans('message_lang.LBL_NAME') !!} {!! trans('message_lang.LBL_PHONE_NUMBER') !!} {!! trans('message_lang.LBL_LAST_TRX_DATE') !!} {!! trans('message_lang.LBL_CREATED_AT') !!} {!! trans('message_lang.LBL_BNB_OWNED') !!}
{!! $key + 1 !!} {!! $location->code !!} {!! $location->name ?? '' !!} {!! $location->phone !!}{{ is_null($trx) ? "-" : $trx->created_at }} {!! $location->created_at !!} {!! $location->bnb_owned == 1 ? "Yes" : "No" !!}
{!! trans('message_lang.DATATABLE_LBL_NO_DATA_AVAILABLE') !!}
@endsection @section("page_vendors") @endsection @section("page_script") @endsection