@extends('layout') @section('css') @endsection @section('content') {{-- --}} @php $asset = null; if (in_array(\Auth::user()->role, [51, 52])) { $asset = 'global_assets/images/bg-dashboard.jpg'; } if (in_array(\Auth::user()->role,[53])) { $asset = 'global_assets/images/bg-dashboard-mte.jpg'; } @endphp
{{-- role customer --}} @if (\Auth::user()->role == 99 && $receipt)
Resi Terakhir
  • No. Resi
    {{$receipt->no_resi}}
  • Tanggal & Waktu dibuat
    {{$receipt->created_at}}
  • No. China Local Express
    {{$receipt->no_local_cina}}
  • Shipping Marks
    {{$receipt->shipping_mark}}
  • Shipping Instruction
    {{$receipt->shipping_to}}
  • Status
    {{config('custom.status_carton.'.$receipt->status_karton)}}
@if (\Auth::user()->coload_id != 3) @endif @endif
{{-- Role Dashboard --}} @if (in_array(\Auth::user()->role,[51, 52, 53]))
@if (in_array(\Auth::user()->role,[51, 52])) @endif @if (in_array(\Auth::user()->role,[53])) @endif

SALES TEAM LEADERBOARD

@if (in_array(\Auth::user()->role,[51, 52])) @if (\Auth::user()->role == 51) JAKARTA @endif @if (\Auth::user()->role == 52) SEMARANG @endif @endif @if (in_array(\Auth::user()->role,[53])) JAKARTA @endif

{{\Carbon\Carbon::now()->locale('id_ID')->translatedFormat('l, j F Y')}}


{{--
--}}
@php $loops = 0; $color = null; $bgcolor = null; if (in_array(\Auth::user()->role,[51, 52])) { $color = '#033060'; $bgcolor = '#0f7afe'; } if (in_array(\Auth::user()->role,[53])) { $color = '#320f3a'; $bgcolor = '#320f3a'; } @endphp @foreach ($dashboards[0] as $key => $dash) {{--hardcode exclude sales --}} @php // restusales // rekkamte // lukaseast // lukaseastexpress // heruexim // hafivahafiva // pittonmarketing // lukasLSP // yogaantara // andrewandrew // Andrewjo // fitrieka // sherinaantara // hendihendi // benonessales // yuliodp // registerantara // registereast $exclude_id = [ 254, 2382, 611, 691, 3809, 7590, 7855, 3, 2980, 44, 2991, 9284, 1435, 1021, 301, 10647, 2001, 2002, 20922, 20923 ]; @endphp @if (in_array($key,$exclude_id)) @continue @endif @if ($loop->iteration == 5) @break @endif @php $loops++; @endphp

{{number_rank($loops)}}

{{config('custom.role.'.$dash['role'])}}
@php $maxLength = 9; // max characters you want to show $name = $dash['nama']; $shortName = substr($name, 0, $maxLength); @endphp

{{$shortName}}

@if ($dash['foto_user'] != null) @else @if (in_array(\Auth::user()->role,[51, 52])) @endif @if (in_array(\Auth::user()->role,[53])) @endif @endif
LAUT / CBM {{$dash['cbm']}}
UDARA / KG {{$dash['kg']}}
ALL JASTIP {{ribuan($dash['all_jastip'])}}
NEW CUSTOMER {{ribuan($dash['new_customer'])}}
@endforeach
@foreach ($dashboards[1] as $key => $dash) @if ($loop->iteration == 5) @break @endif @php $loops++; @endphp

{{number_rank($loops)}}

{{config('custom.role.'.$dash['role'])}}
@php $maxLength = 9; // max characters you want to show $name = $dash['nama']; $shortName = substr($name, 0, $maxLength); @endphp

{{$shortName}}

@if ($dash['foto_user'] != null) @else @if (in_array(\Auth::user()->role,[51, 52])) @endif @if (in_array(\Auth::user()->role,[53])) @endif @endif
LAUT / CBM {{$dash['cbm']}}
UDARA / KG {{$dash['kg']}}
ALL JASTIP {{ribuan($dash['all_jastip'])}}
NEW CUSTOMER {{ribuan($dash['new_customer'])}}
@endforeach
{{--
--}} @endif @if (in_array(\Auth::user()->role,[51, 52, 53]))
@endif
@endsection @section('js') @endsection