@if($_type=='request_update') @endif @if($_type=='update.image') @endif @forelse($products as $key => $product) @if($_type=='request_update') @endif @if($_type=='update.image') @endif @empty {{----}} {{----}} {{----}} @endforelse
# Y/c sửaMS    Số nhà    Tên đường    {{----}} {{----}} Phường/Xã    {{----}} {{----}} Quận/Huyện    {{----}} {{----}} Tỉnh/TP Ghi chú Ngang Dài DT Kết cấu Hướng Giá    Giá m2Anh hiện trạng Giấy tờ chủ quyềnHiện trạng Trạng thái Ngày tạo
{{++$start}} @if($product->request_update) @if(auth()->guard('backend')->user()->can('products.request.update.detail')) {{$product->request_update}} @endif @else - @endif @if($_type=='callback') {{$product->id}} @elseif($_type=='owned') @if(auth()->guard('backend')->user()->can('products.owned.edit')) {{$product->id}} @endif @else @if(auth()->guard('backend')->user()->can('products.edit')) {{$product->id}} @else {{$product->id}} @endif @endif @if(auth()->guard('backend')->user()->account_position==\App\Models\CoreUsers::ACCOUNT_POSITION_SECRETARY&&$_type=='callback') {{$product->home_number?$product->home_number:'n/a'}} @else {{$product->home_number?$product->home_number:'n/a'}} @endif
@if($product->home_number_note) (số cũ {{$product->home_number_note}}) @endif
{{isset($product->street->name)?$product->street->name:'n/a'}}
@if($product->old_street) {{$product->old_street->name}} @endif
{{isset($product->ward->name)?str_replace('Phường','P.', $product->ward->name):'n/a'}} {{isset($product->district->name)?str_replace('Quận','Q.', $product->district->name):'n/a'}} {{isset($product->province->name)?str_replace('Thành phố','TP.',$product->province->name):'n/a'}} {{-- ...--}} ... {{(float)$product->horizontal}} {{(float)$product->vertical}} {{(float)$product->area}} {{$product->home_structure_text}} @foreach($home_direction as $st) @if($st['id']==$product->home_direction) {{$st['name']}} @break @endif @endforeach {{$product->price.' '.$product->price_type_name}} {{number_format($product->price_per_square_meters)}}

@foreach($status as $st) @if($st['id']==$product->status) {{$st['name']}} @break @endif @endforeach @foreach($censorship as $st) @if($st['id']==$product->status_censorship) {{$st['name']}} @break @endif @endforeach {{date('H:i d/m/Y',strtotime($product->created_at))}}
-
{{--@if($_type=='all')--}} {{----}} {{--@endif--}}
@if(auth()->guard('backend')->user()->can('products.callback.request')) @endif @if(auth()->guard('backend')->user()->can('products.merge.index')) @endif @if(auth()->guard('backend')->user()->can('products.censorship.index')) @endif

{{ $products->links() }}