@extends('backend.layout.app') @section('title','All Technician') @push('css') @endpush @section('main_menu','HOME') @section('active_menu','All Technician') @section('link',route('admin.adminDashboard')) @section('content')

Total Technician: {{$technician->count()}}

Add Technician
@foreach($technician as $key=>$technician_data) @endforeach
Id Name Phone Email Address Stock Device Total Stock Action
{{$technician_data->id}} {{$technician_data->name}} {{$technician_data->phone}} {{$technician_data->email}} {{$technician_data->address}} @php($device = \App\technican_stock::where('technicain_id',$technician_data->id)->get()) @foreach($device as $key=>$device_data) {{$key+1}}. {{$device_data->model}} -> {{$device_data->quantity}} Peace
@endforeach
{{\App\technican_stock::where('technicain_id',$technician_data->id)->sum('quantity')}} {{-- --}} {{-- --}} {{-- --}} {{-- View--}} {{-- --}} Edit {{-- --}} {{-- --}} {{-- --}} {{-- Delete--}} {{-- --}} Details
Id Name Phone Email Address Stock Device Total Stock Action
@endsection @push('js') @endpush