@extends('backend.layouts.main') @section('content')
# | MS | 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á m2 | Hiện trạng | Trạng thái | Ngày tạo | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{++$start}} | @if($_type=='callback') {{number_format($product->id)}} @elseif($_type=='owned') @if(auth()->guard('backend')->user()->can('products.owned.edit')) {{number_format($product->id)}} @endif @else @if(auth()->guard('backend')->user()->can('products.edit')) {{number_format($product->id)}} @else {{number_format($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 | {{isset($product->street_name)?$product->street_name:'n/a'}} | {{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}} | @foreach($home_direction as $st) @if($st['id']==$product->home_direction) {{$st['name']}} @break @endif @endforeach | {{$product->price.' '}} | {{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))}} | ||
- |