@extends('layout.layout') @section('header') @endsection @section('content')
@if(isset($error))
Error! {{ $error }}
@endif
@if(isset($customers)) @if($customers->count() > 0 )
ร้านค้าทั้งหมด
@foreach ($customers as $customer) @endforeach
ชื่อร้านค้า ชื่อคนติดต่อ เบอร์คนติดต่อ พิกัด ที่อยู่ ค่าคอมมิชชั่น
{{$customer->store_name ?? null}} {{$customer->contacter_name ?? ' - '}} {{$customer->contacter_phone ?? ' - '}} Google Map : {{$customer->store_linkmap ?? ' - '}}
ละติจูด : {{$customer->store_latitude ?? ' - '}}
ลองติจูด : {{$customer->store_longtitude ?? ' - '}}
{{$customer->store_address ?? ' - '}} {{$customer->store_commission ?? ' - '}}
@endif @endif @if(isset($employes)) @if($employes->count() > 0 )
พนักงานทั้งหมด
@foreach ($employes as $empolye) @endforeach
ชื่อ-นามสกุล ประเภทพนักงาน เลขบัครประชาชน/หมายเลขหนังสือเดินทาง เบอร์ติดต่อ วันที่เริ่มทำงาน ใบขับขี่ ทะเบียนรถ ยี่ห้อรถ
{{$empolye->name ?? null}} {{$empolye->surname ?? null}} @if($empolye->type == 'officer') พนักงานทั่วไป @elseif($empolye->type == 'driver') พนักงานส่ง (ชับรถ) @elseif($empolye->type == 'carman') พนักงานส่ง (ติดตาม) @elseif($empolye->type == 'packer') พนักงานบรรจุ @elseif($empolye->type == 'technician') พนักงานช่าง @endif {{$empolye->person_id ?? ' - '}} {{$empolye->contact ?? ' - '}} {{$empolye->start_date ?? ' - '}} @if($empolye->car_license == 'have') มีใบขับขี่ @elseif($empolye->car_license == 'nothave') ไม่มีใบขับขี่ @endif {{$empolye->car_sign_No ?? ' - '}} {{$empolye->car_brand ?? ' - '}}
@endif @endif @if(isset($products)) @if($products->count() > 0 )
สินค้าทั้งหมด
@foreach ($products as $product) @endforeach
ชื่อสินค้า รูปแบบสินค้า รายละเอียด ลักษณะสินค้า ราคา
{{$product->name ?? null}} @if($product->type == 'tiny') จิ๋ว @elseif($product->type == 'tube') หลอด @elseif($product->type == 'sack') กระสอบ @endif @if($product->size == 'tiny') จิ๋ว @elseif($product->size == 'tube') หลอด @elseif($product->size == 'sack') กระสอบ @elseif($product->size == 'bag') ถุง @elseif($product->size == 'tank') น้ำถัง @elseif($product->size == 'bottle') น้ำดื่มเล็ก @elseif($product->size == 'gallon') น้ำดื่มใหญ่ @endif {{$product->detail ?? ' - '}} {{$product->price ?? ' - '}}
@endif @endif
@endsection @push('script-head') @endpush @section('script') @endsection